File tree Expand file tree Collapse file tree
main/java/com/mapbox/api/matching/v5
test/java/com/mapbox/api/matching/v5 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -697,10 +697,6 @@ public MapboxMapMatching build() {
697697 + " request." );
698698 }
699699
700- if (coordinates .size () > 100 ) {
701- throw new ServicesException ("Maximum of 100 coordinates are allowed for this API." );
702- }
703-
704700 if (radiuses != null && radiuses .length != coordinates .size ()) {
705701 throw new ServicesException (
706702 "There must be as many radiuses as there are coordinates." );
Original file line number Diff line number Diff line change @@ -116,23 +116,6 @@ public void build_exceptionThrownWhenLessThanTwoCoordsProvided() throws Exceptio
116116 mapMatching .executeCall ();
117117 }
118118
119- @ Test
120- public void build_throwsExceptionWhenCoordsOverOneHundred () throws Exception {
121- thrown .expect (ServicesException .class );
122- thrown .expectMessage (
123- startsWith ("Maximum of 100 coordinates are allowed for this API." ));
124- List <Point > coordinates = new ArrayList <>();
125- for (int i = 0 ; i < 101 ; i ++) {
126- coordinates .add (Point .fromLngLat (1.0 + i , 2.0 + i ));
127- }
128- MapboxMapMatching mapMatching = MapboxMapMatching .builder ()
129- .coordinates (coordinates )
130- .baseUrl ("https://foobar.com" )
131- .accessToken (ACCESS_TOKEN )
132- .build ();
133- mapMatching .executeCall ();
134- }
135-
136119 @ Test
137120 public void build_throwsExceptionWhenNotMatchingRadiusesForEachCoord () throws Exception {
138121 thrown .expect (ServicesException .class );
You can’t perform that action at this time.
0 commit comments