We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55fa89 commit 97a11feCopy full SHA for 97a11fe
parse/src/test/java/com/parse/ParseCorePluginsTest.java
@@ -33,7 +33,14 @@ public void setUp() throws Exception {
33
@Test
34
public void testQueryControllerDefaultImpl() {
35
ParseQueryController controller = ParseCorePlugins.getInstance().getQueryController();
36
- assertThat(controller, instanceOf(CacheQueryController.class));
+ Class<?> clz;
37
+ // Check for offline access of Parse.
38
+ if (Parse.isLocalDatastoreEnabled()) {
39
+ clz = ParseQueryController.class;
40
+ } else {
41
+ clz = OfflineQueryController.class;
42
+ }
43
+ org.hamcrest.MatcherAssert.assertThat(controller, instanceOf(clz));
44
}
45
46
0 commit comments