File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public static final class Builder {
50
50
private Context context ;
51
51
private String applicationId ;
52
52
private String clientKey ;
53
- private String server = "https://api.parse.com/1" ;
53
+ private String server = "https://api.parse.com/1/ " ;
54
54
private boolean localDataStoreEnabled ;
55
55
private List <ParseNetworkInterceptor > interceptors ;
56
56
Original file line number Diff line number Diff line change @@ -80,6 +80,17 @@ public void tearDown() throws Exception {
80
80
ParseRESTCommand .server = null ;
81
81
}
82
82
83
+
84
+ @ Test
85
+ public void testInitializationWithDefaultParseServerURL () throws Exception {
86
+ ParseRESTCommand .server = new URL ("https://api.parse.com/1/" );
87
+ ParseRESTCommand command = new ParseRESTCommand .Builder ()
88
+ .httpPath ("events/Appopened" )
89
+ .build ();
90
+
91
+ assertEquals ("https://api.parse.com/1/events/Appopened" , command .url );
92
+ }
93
+
83
94
@ Test
84
95
public void testPermanentFailures () throws Exception {
85
96
JSONObject json = new JSONObject ();
You can’t perform that action at this time.
0 commit comments