}, filter);
String string = "SomeObject"; //$NON-NLS-1$
assertEquals(LazyOpFilter.DEFAULT_RETURN_VALUE, lazy.accept(string));
UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){
public boolean isTrue() {
return value[1];
}
}, false);
assertFalse(value[0]);
filter.result=true;
value[0]=true;
value[1]=false;
assertEquals(false, lazy.accept(string));
UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){
public boolean isTrue() {
return value[1];
}
}, false);
assertTrue(value[0]);
value[0]=false;
value[1]=false;
filter.result=true;
filter.notifyListeners(string);
UDIGTestUtil.inDisplayThreadWait(2000, new WaitCondition(){
public boolean isTrue() {
return value[1];
}