/**
*/
@org.junit.Test
public void
testMixedOrder() throws Exception {
CustomHandler handler = new CustomHandler();
java.util.List<WSSecurityEngineResult> results =
new java.util.ArrayList<WSSecurityEngineResult>();
results.add(
new WSSecurityEngineResult(WSConstants.TS)
);
results.add(
new WSSecurityEngineResult(WSConstants.SIGN)
);
results.add(
new WSSecurityEngineResult(WSConstants.SC)
);
results.add(
new WSSecurityEngineResult(WSConstants.UT)
);
java.util.List<Integer> actions = new java.util.ArrayList<Integer>();
actions.add(new Integer(WSConstants.UT));
actions.add(new Integer(WSConstants.TS));
actions.add(new Integer(WSConstants.SIGN));
assertFalse (handler.checkResults(results, actions));
assertTrue (handler.checkResultsAnyOrder(results, actions));
assertFalse (actions.isEmpty());
}