@@ -110,15 +110,15 @@ public void testCurrency() {
110110 @ Test
111111 @ SneakyThrows
112112 public void testFieldSelection () {
113- IpdataModel ipdataModel = ipdataService .getFields ("8.8.8.8 " , IpdataField .ASN , IpdataField .CURRENCY );
113+ IpdataModel ipdataModel = ipdataService .getFields ("41.128.21.123 " , IpdataField .ASN , IpdataField .CURRENCY );
114114 String serialized = MAPPER .writeValueAsString (ipdataModel );
115- String expected = TestUtils .get (HTTP_CLIENT , "/8.8.8.8 " , ImmutableMap .of ("fields" , "asn,currency" ));
115+ String expected = TestUtils .get (HTTP_CLIENT , "/41.128.21.123 " , ImmutableMap .of ("fields" , "asn,currency" ));
116116 expected = MAPPER .writeValueAsString (MAPPER .readValue (expected , IpdataModel .class ));
117117 assertEquals (serialized , expected , false );
118118 Assert .assertNull (ipdataModel .threat ());
119119 if (ipdataService == CACHING_IPDATA_SERVICE ) {
120120 //value will be returned from cache now
121- ipdataModel = ipdataService .getFields ("8.8.8.8 " , IpdataField .ASN , IpdataField .CURRENCY );
121+ ipdataModel = ipdataService .getFields ("41.128.21.123 " , IpdataField .ASN , IpdataField .CURRENCY , IpdataField . CARRIER );
122122 serialized = MAPPER .writeValueAsString (ipdataModel );
123123 assertEquals (serialized , expected , false );
124124 }
0 commit comments