@Override protected void setUp() throws Exception { super.setUp(); target = new ObservableValueStub(Realm.getDefault()); oldValue = new Object(); newValue = new Object(); target.setValue(oldValue); delayed = Observables.observeDelayedValue(1, target); }
@Override protected void setUp() throws Exception { super.setUp(); propertyName = "list"; propertyDescriptor = ((IBeanProperty) BeanProperties.list(Bean.class, propertyName)).getPropertyDescriptor(); bean = new Bean(new ArrayList()); list = BeansObservables.observeList( DisplayRealm.getRealm(Display.getDefault()), bean, propertyName); beanObservable = (IBeanObservable) list; }
@Override protected void tearDown() throws Exception { target.dispose(); target = null; super.tearDown(); }