| | |
| | | assertPermission("endReception", "@ss.hasPermi('system:test:stop')", Long.class); |
| | | assertEquals("/{testId}/reception/end", TTestController.class.getMethod("endReception", Long.class) |
| | | .getAnnotation(PostMapping.class).value()[0]); |
| | | assertPermission("persistedRecords", "@ss.hasPermi('system:test:query')", Long.class); |
| | | assertEquals("/{testId}/data/records", TTestController.class.getMethod("persistedRecords", Long.class) |
| | | .getAnnotation(org.springframework.web.bind.annotation.GetMapping.class).value()[0]); |
| | | assertPermission("persistedSteps", "@ss.hasPermi('system:test:query')", Long.class); |
| | | assertEquals("/{testId}/data/steps", TTestController.class.getMethod("persistedSteps", Long.class) |
| | | .getAnnotation(org.springframework.web.bind.annotation.GetMapping.class).value()[0]); |
| | | assertPermission("persistedCycles", "@ss.hasPermi('system:test:query')", Long.class); |
| | | assertEquals("/{testId}/data/cycles", TTestController.class.getMethod("persistedCycles", Long.class) |
| | | .getAnnotation(org.springframework.web.bind.annotation.GetMapping.class).value()[0]); |
| | | } |
| | | |
| | | private void assertPermission(String methodName, String permission, Class<?>... parameterTypes) throws Exception |