Skip to content

Commit 37bd41e

Browse files
committed
fix tests: this will change very soon in the API.
1 parent c9cb60d commit 37bd41e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/io/ipinfo/IPinfoTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void testGoogleDNS() {
3939
() -> assertFalse(response.getPrivacy().getTor()),
4040
() -> assertFalse(response.getPrivacy().getRelay()),
4141
() -> assertFalse(response.getPrivacy().getHosting()),
42-
() -> assertEquals(response.getPrivacy().getService(), null),
42+
() -> assertEquals(response.getPrivacy().getService(), ""),
4343
() -> assertEquals(response.getDomains().getDomains().size(), 5)
4444
);
4545
} catch (RateLimitedException e) {
@@ -107,7 +107,7 @@ public void testGetBatch() {
107107
() -> assertFalse(ipResp.getPrivacy().getTor()),
108108
() -> assertFalse(ipResp.getPrivacy().getRelay()),
109109
() -> assertFalse(ipResp.getPrivacy().getHosting()),
110-
() -> assertEquals(ipResp.getPrivacy().getService(), null),
110+
() -> assertEquals(ipResp.getPrivacy().getService(), ""),
111111
() -> assertEquals(ipResp.getDomains().getDomains().size(), 5)
112112
);
113113

@@ -152,7 +152,7 @@ public void testGetBatchIps() {
152152
() -> assertFalse(res1.getPrivacy().getTor()),
153153
() -> assertFalse(res1.getPrivacy().getRelay()),
154154
() -> assertTrue(res1.getPrivacy().getHosting()),
155-
() -> assertEquals(res1.getPrivacy().getService(), null),
155+
() -> assertEquals(res1.getPrivacy().getService(), ""),
156156
() -> assertEquals(res1.getDomains().getDomains().size(), 5)
157157
);
158158

@@ -171,7 +171,7 @@ public void testGetBatchIps() {
171171
() -> assertFalse(res2.getPrivacy().getTor()),
172172
() -> assertFalse(res2.getPrivacy().getRelay()),
173173
() -> assertFalse(res2.getPrivacy().getHosting()),
174-
() -> assertEquals(res2.getPrivacy().getService(), null),
174+
() -> assertEquals(res2.getPrivacy().getService(), ""),
175175
() -> assertEquals(res2.getDomains().getDomains().size(), 5)
176176
);
177177

@@ -190,7 +190,7 @@ public void testGetBatchIps() {
190190
() -> assertFalse(res3.getPrivacy().getTor()),
191191
() -> assertFalse(res3.getPrivacy().getRelay()),
192192
() -> assertFalse(res3.getPrivacy().getHosting()),
193-
() -> assertEquals(res3.getPrivacy().getService(), null),
193+
() -> assertEquals(res3.getPrivacy().getService(), ""),
194194
() -> assertEquals(res3.getDomains().getDomains().size(), 5)
195195
);
196196
} catch (RateLimitedException e) {

0 commit comments

Comments
 (0)