Methods Summary |
---|
protected void | setUp()
|
protected void | tearDown()
|
public void | testMergeEmtpyNonEmptyPolicies()
Collection<Policy> policies = new LinkedList<Policy>();
policies.add(PolicyResourceLoader.loadPolicy("merge/policy1.xml"));
policies.add(PolicyResourceLoader.loadPolicy("merge/policy-empty-alt.xml"));
Policy result = merger.merge(policies);
Policy expected = PolicyResourceLoader.loadPolicy("merge/policy1.xml");
assertEquals(expected, result);
|
public void | testMergeNoAltPolicies()
Collection<Policy> policies = new LinkedList<Policy>();
policies.add(PolicyResourceLoader.loadPolicy("merge/policy1.xml"));
policies.add(PolicyResourceLoader.loadPolicy("merge/policy-no-alt.xml"));
Policy result = merger.merge(policies);
Policy expected = PolicyResourceLoader.loadPolicy("merge/policy-no-alt.xml");
assertEquals(expected, result);
|
public void | testMergeTwoPolicies()
Collection<Policy> policies = new LinkedList<Policy>();
policies.add(PolicyResourceLoader.loadPolicy("merge/policy1.xml"));
policies.add(PolicyResourceLoader.loadPolicy("merge/policy2.xml"));
policies.add(PolicyResourceLoader.loadPolicy("merge/policy3.xml"));
Policy result = merger.merge(policies);
Policy expected = PolicyResourceLoader.loadPolicy("merge/merge_1-2-3.xml");
assertEquals(expected, result);
|