File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
objectbox-java/src/main/java/io/objectbox/sync
tests/objectbox-java-test/src/test/java/io/objectbox/sync Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ public static boolean isAvailable() {
19
19
return BoxStore .isSyncAvailable ();
20
20
}
21
21
22
+ /**
23
+ * Returns true if the included native (JNI) ObjectBox library supports Sync server.
24
+ */
25
+ public static boolean isServerAvailable () {
26
+ return BoxStore .isSyncServerAvailable ();
27
+ }
28
+
22
29
/**
23
30
* Start building a sync client. Requires the BoxStore that should be synced with the server,
24
31
* the URL and port of the server to connect to and credentials to authenticate against the server.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public void clientIsNotAvailable() {
29
29
*/
30
30
@ Test
31
31
public void serverIsNotAvailable () {
32
- assertFalse (BoxStore . isSyncServerAvailable ());
32
+ assertFalse (Sync . isServerAvailable ());
33
33
}
34
34
35
35
@ Test
You can’t perform that action at this time.
0 commit comments