summaryrefslogtreecommitdiff
path: root/TAO/tests/Portable_Interceptors/PolicyFactory/README
blob: 609e69cd8f5d8805c24db3c246ed5f9be04fdb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


This test verifies that PolicyFactory support is working properly.
Working PolicyFactory support requires the following on the server side:

1) Ability to register a PolicyFactory through the
   ORBInitInfo::register_policy_factory() method.
2) Ability to create a policy through that PolicyFactory.
3) Ability to create a POA containing that policy, even if the policy
   is not meant to be used by the POA.
4) Retrieve the created policy from the POA's policy list via the
   IORInfo::get_effective_policy() method.

The client side only requires a subset of this list, i.e. items (1)
and (2), for working PolicyFactory support, so testing the server side
is enough.

Run the test as follows:

	$ perl run_test.pl

Output should be very similar to the following:

==== Running PolicyFactory test

PolicyFactory test succeeded.