| |
|
| java.lang.Object org.eclipse.jface.tests.databinding.RealmTester
RealmTester | public class RealmTester (Code) | | Aids in the testing of Realms.
since: 3.2 |
Inner Class :public static class DelegatingRealm extends CurrentRealm | |
Inner Class :public static class CurrentRealm extends Realm | |
Method Summary | |
public static void | exerciseCurrent(Runnable runnable) Runs the provided runnable when the realm is both current
and not current. | public static void | exerciseCurrent(Runnable runnable, CurrentRealm realm) Runs the provided runnable when the realm is both current
and not current. | public static void | setDefault(Realm realm) Sets the default realm without using Realm.runWithDefault() for testing
purposes. |
exerciseCurrent | public static void exerciseCurrent(Runnable runnable)(Code) | | Runs the provided runnable when the realm is both current
and not current. It checks for AssertionFailedExceptions and if an
exception occurs or doesn't occur as expected the test fails. The realm
of an observable created before the method was invoked must be of type
CurrentRealm . The default realm during the runnable invocation
is set to an instance of
CurrentRealm when the runnable is
invoked.
Parameters: runnable - |
exerciseCurrent | public static void exerciseCurrent(Runnable runnable, CurrentRealm realm)(Code) | | Runs the provided runnable when the realm is both current
and not current. It checks for AssertionFailedExceptions and if an
exception occurs or doesn't occur as expected the test fails.
Parameters: runnable - Parameters: realm - |
setDefault | public static void setDefault(Realm realm)(Code) | | Sets the default realm without using Realm.runWithDefault() for testing
purposes.
Parameters: realm - |
|
|
|