### Question:
AuthService implements IAuthService { @Override public boolean ignoreAuthentication(String url) { return Stream.of(this.ignoreUrls.split(",")).anyMatch(ignoreUrl -> url.startsWith(StringUtils.trim(ignoreUrl))); }  @Override Result authenticate(String authentication, String url, String method); @Override boolean ignoreAuthentication(String url); @Override boolean hasPermission(Result authResult); @Override boolean hasPermission(String authentication, String url, String method); @Override boolean invalidJwtAccessToken(String authentication); @Override Jwt getJwt(String authentication);  }### Answer:
@Test public void testIgnoreAuthentication_假如配置的忽略前缀为oauth和open_当用户请求以oauth开头的url_那么返回返回true() { Assert.assertTrue(authService.ignoreAuthentication("/oauth/token?test=123")); }
@Test public void testIgnoreAuthentication_假如配置的忽略前缀为oauth和open_当用户请求以open开头的url_那么返回返回true() { Assert.assertTrue(authService.ignoreAuthentication("/open/")); }
@Test public void testIgnoreAuthentication_假如配置的忽略前缀为oauth和open_当用户请求以test开头的url_那么返回返回true() { Assert.assertFalse(authService.ignoreAuthentication("/test")); }
@Test public void testIgnoreAuthentication_假如配置的忽略前缀为oauth和open_当用户请求以open结尾的url_那么返回返回true() { Assert.assertFalse(authService.ignoreAuthentication("/test/open")); }