test_02(FilterSettings.DEFAULT_SAX);
}
public void test_02(FilterSettings filterSettings) {
Smooks smooks = new Smooks();
MockVisitBefore visitor1 = new MockVisitBefore();
MockVisitBefore visitor2 = new MockVisitBefore();
smooks.setFilterSettings(filterSettings);
smooks.addVisitor(visitor1, "order-item/*");
smooks.addVisitor(visitor2, "order-item/price");
smooks.filterSource(new StreamSource(getClass().getResourceAsStream("order.xml")));
assertEquals("[product, quantity, price]", visitor1.getElements().toString());
assertEquals("[price]", visitor2.getElements().toString());
}