File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
java/com/maxmind/geoip2/model Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 33import com .github .tomakehurst .wiremock .junit .WireMockRule ;
44import com .maxmind .geoip2 .WebServiceClient ;
55import com .maxmind .geoip2 .exception .GeoIp2Exception ;
6+ import com .maxmind .geoip2 .model .ConnectionTypeResponse .ConnectionType ;
67import com .maxmind .geoip2 .record .*;
78import org .junit .Before ;
89import org .junit .Rule ;
@@ -87,6 +88,9 @@ public void testTraits() {
8788 assertEquals (
8889 "traits.getAutonomousSystemOrganization() does not return example.com" ,
8990 "example.com" , traits .getDomain ());
91+ assertEquals (
92+ "traits.getConnectionType() does not return satellite" ,
93+ ConnectionType .SATELLITE , traits .getConnectionType ());
9094 assertEquals ("traits.getIpAddress() does not return 1.2.3.4" ,
9195 "1.2.3.4" , traits .getIpAddress ());
9296 assertTrue ("traits.isAnonymous() returns true" , traits .isAnonymous ());
Original file line number Diff line number Diff line change 6969 "traits" : {
7070 "autonomous_system_number" : 1234 ,
7171 "autonomous_system_organization" : " AS Organization" ,
72+ "connection_type" : " Satellite" ,
7273 "domain" : " example.com" ,
7374 "ip_address" : " 1.2.3.4" ,
7475 "isp" : " Comcast" ,
8586 "user_count" : 2 ,
8687 "user_type" : " college"
8788 }
88- }
89+ }
Original file line number Diff line number Diff line change 8585 "traits" : {
8686 "autonomous_system_number" : 1234 ,
8787 "autonomous_system_organization" : " AS Organization" ,
88+ "connection_type" : " Satellite" ,
8889 "domain" : " example.com" ,
8990 "ip_address" : " 1.2.3.4" ,
9091 "isp" : " Comcast" ,
100101 "user_count" : 2 ,
101102 "user_type" : " college"
102103 }
103- }
104+ }
You can’t perform that action at this time.
0 commit comments