| | |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.battery.business.test.dto.TestConfigurationDto; |
| | | |
| | | class TTestControllerContractTest |
| | | { |
| | |
| | | { |
| | | assertPermission("options", "@ss.hasAnyPermi('system:test:add,system:test:edit')"); |
| | | assertPermission("getInfo", "@ss.hasPermi('system:test:query')", Long.class); |
| | | assertPermission("add", "@ss.hasPermi('system:test:add')", com.ruoyi.system.domain.TTest.class); |
| | | assertPermission("edit", "@ss.hasPermi('system:test:edit')", com.ruoyi.system.domain.TTest.class); |
| | | assertPermission("add", "@ss.hasPermi('system:test:add')", TestConfigurationDto.class); |
| | | assertPermission("edit", "@ss.hasPermi('system:test:edit')", TestConfigurationDto.class); |
| | | assertPermission("startReception", "@ss.hasPermi('system:test:start')", Long.class); |
| | | Method startReception = TTestController.class.getMethod("startReception", Long.class); |
| | | assertEquals("/{testId}/reception/start", startReception.getAnnotation(PostMapping.class).value()[0]); |