fail("should complain");
} catch (IllegalArgumentException iae) {
// ok
}
final DefaultInstanceDescriptionImpl id = TopologyTestHelper
.createAndAddInstanceDescription(newView, newView
.getClusterViews().iterator().next());
TopologyTestHelper.createAndAddInstanceDescription(newView, newView
.getClusterViews().iterator().next());
assertEquals(4, newView.findInstances(new InstanceFilter() {
public boolean accept(InstanceDescription instance) {
return true;
}
}).size());
assertEquals(1, newView.findInstances(new InstanceFilter() {
public boolean accept(InstanceDescription instance) {
return instance.getSlingId().equals(id.getSlingId());
}
}).size());
assertEquals(1, newView.findInstances(new InstanceFilter() {
public boolean accept(InstanceDescription instance) {