@@ -50,12 +50,13 @@ public void testToFromJson1() {
5050 .tollCollection (TollCollection .builder ().type ("toll_gantry" ).build ())
5151 .adminIndex (2 )
5252 .mapboxStreetsV8 (MapboxStreetsV8 .builder ().roadClass ("street" ).build ())
53+ .tunnelName ("tunnel_name" )
5354 .build ();
5455
5556 String jsonString = intersection .toJson ();
5657 StepIntersection intersectionFromJson = StepIntersection .fromJson (jsonString );
5758
58- Assert . assertEquals (intersection , intersectionFromJson );
59+ assertEquals (intersection , intersectionFromJson );
5960 }
6061
6162 @ Test
@@ -67,12 +68,13 @@ public void testToFromJson2() {
6768 .bearings (Arrays .asList (120 , 210 , 300 ))
6869 .rawLocation (new double []{13.424671 , 52.508812 })
6970 .mapboxStreetsV8 (MapboxStreetsV8 .builder ().roadClass ("street" ).build ())
71+ .tunnelName ("tunnel_name" )
7072 .build ();
7173
7274 String jsonString = intersection .toJson ();
7375 StepIntersection intersectionFromJson = StepIntersection .fromJson (jsonString );
7476
75- Assert . assertEquals (intersection , intersectionFromJson );
77+ assertEquals (intersection , intersectionFromJson );
7678 }
7779
7880
@@ -85,17 +87,19 @@ public void testFromJson() {
8587 + "\" out\" : 0, "
8688 + "\" geometry_index\" : 123,"
8789 + "\" is_urban\" : true,"
88- + "\" mapbox_streets_v8\" : {\" class\" : \" street\" }"
90+ + "\" mapbox_streets_v8\" : {\" class\" : \" street\" },"
91+ + "\" tunnel_name\" : \" test tunnel name\" "
8992 + "}" ;
9093
9194 StepIntersection stepIntersection = StepIntersection .fromJson (stepIntersectionJsonString );
92- Assert . assertEquals (123 , stepIntersection .geometryIndex ().intValue ());
95+ assertEquals (123 , stepIntersection .geometryIndex ().intValue ());
9396 assertTrue (stepIntersection .isUrban ());
9497 assertEquals ("street" , stepIntersection .mapboxStreetsV8 ().roadClass ());
98+ assertEquals ("test tunnel name" , stepIntersection .tunnelName ());
9599
96100 Point location = stepIntersection .location ();
97- Assert . assertEquals (13.426579 , location .longitude (), 0.0001 );
98- Assert . assertEquals (52.508068 , location .latitude (), 0.0001 );
101+ assertEquals (13.426579 , location .longitude (), 0.0001 );
102+ assertEquals (52.508068 , location .latitude (), 0.0001 );
99103
100104 String jsonStr = stepIntersection .toJson ();
101105
0 commit comments