| | |
| | | .contains("system:test:query")); |
| | | } |
| | | |
| | | @Test |
| | | void integrityMappingIsAuthenticatedSurface() |
| | | { |
| | | Method integrity = method("integrity", Long.class); |
| | | assertArrayEquals(new String[] { "/{testId}/integrity" }, integrity.getAnnotation(GetMapping.class).value()); |
| | | assertTrue(integrity.getAnnotation(org.springframework.security.access.prepost.PreAuthorize.class).value() |
| | | .contains("system:test:query")); |
| | | } |
| | | |
| | | private Method method(String name, Class<?>... types) |
| | | { |
| | | try { return TTestLiveController.class.getDeclaredMethod(name, types); } |