// Set Expectations
// =====================================================================
// The different parts of the "b c" selector can be created in any
// order but that must be before the composite matcher is created.
final Expectations bcParts = new UnorderedExpectations() {
public void add() {
expectTypeSelectorWithDefaultNamespace("b", blocal, bsequence);
expectTypeSelectorWithDefaultNamespace("c", clocal, csequence);
}
};
final Expectations bcComposite = new OrderedExpectations() {
public void add() {
add(bcParts);
factoryMock.expects.createCompositeMatcher(bsequence, csequence,
Operator.DESCENDANT, matcherBuilderContextMock)
.returns(b_cMatcher);
}
};
// The different parts of the "a > (b c)" selector can be created in
// any order but that must be before the composite matcher is created.
final Expectations a_bcParts = new UnorderedExpectations() {
public void add() {
add(bcComposite);
expectTypeSelectorWithDefaultNamespace("a", alocal, asequence);
}
};
final Expectations a_bcComposite = new OrderedExpectations() {
public void add() {
add(a_bcParts);
factoryMock.expects.createCompositeMatcher(