@@ -182,33 +182,6 @@ public void apiFilterEqualTest() {
182182 Assert .assertEquals (filter1 , filter2 , "Both filters should be equal" );
183183 }
184184
185- @ Test
186- public void apiFilterNotEqualForDifferentPathTest () {
187- APIFilter filter1 = new APIFilter .Builder ()
188- .hasApiPath ("/api/one" )
189- .build ();
190-
191- APIFilter filter2 = new APIFilter .Builder ()
192- .hasApiPath ("/api/two" )
193- .build ();
194-
195- Assert .assertNotEquals (filter1 , filter2 , "Filters with different apiPath must not be equal" );
196- Assert .assertNotEquals (filter1 .hashCode (), filter2 .hashCode (), "Filters with different apiPath should have different hashcode" );
197- }
198-
199- @ Test
200- public void testApiPathFilterMatchAndMismatch () {
201- APIFilter filter = new APIFilter .Builder ().hasApiPath ("/test/path/*" ).build ();
202-
203- API matchingApi = new API ();
204- matchingApi .setPath ("/test/path/v1" );
205- assertFalse (filter .filter (matchingApi ), "API path /test/path/v1 should match /test/path/*" );
206-
207- API nonMatchingApi = new API ();
208- nonMatchingApi .setPath ("/other/path/v1" );
209- assertTrue (filter .filter (nonMatchingApi ), "API path /other/path/v1 should not match /test/path/*" );
210- }
211-
212185 @ Test
213186 public void testBackendBasepathFilter () {
214187 APIFilter filter = new APIFilter .Builder ()
@@ -430,7 +403,7 @@ private API getAPIWithBackendBasepath(String basePath) {
430403 return api ;
431404 }
432405
433- private void addPolicy (API api , String policyName , PolicyType type ) {
406+ private void addPolicy (API api , String policyName , PolicyType type ) throws AppException {
434407 OutboundProfile outboundProfile = new OutboundProfile ();
435408 Policy policy = new Policy (policyName );
436409 switch (type ) {
@@ -496,7 +469,7 @@ private void addInboundSecurityToAPI(API api, DeviceType deviceType) {
496469 api .setInboundProfiles (inboundProfiles );
497470 }
498471
499- private void addOutboundSecurityToAPI (API api , AuthType authType ) {
472+ private void addOutboundSecurityToAPI (API api , AuthType authType ) throws AppException {
500473 List <AuthenticationProfile > authnProfiles = new ArrayList <>();
501474 AuthenticationProfile authNProfile = new AuthenticationProfile ();
502475 authNProfile .setName ("_default" );
@@ -512,4 +485,3 @@ private void addOutboundSecurityToAPI(API api, AuthType authType) {
512485 api .setOutboundProfiles (outboundProfiles );
513486 }
514487}
515-
0 commit comments