convert build.gradle to build.gradle.kts (#171)
Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/171 Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
		| @@ -14,7 +14,6 @@ import net.hostsharing.hsadminng.config.DisableSecurityConfig; | ||||
| import org.junit.jupiter.api.BeforeEach; | ||||
| import org.junit.jupiter.api.Nested; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.boot.test.context.TestConfiguration; | ||||
| @@ -23,7 +22,6 @@ import org.springframework.context.annotation.Bean; | ||||
| import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -47,7 +45,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
|  | ||||
| @WebMvcTest(HsBookingItemController.class) | ||||
| @Import({StrictMapper.class, JsonObjectMapperConfiguration.class, DisableSecurityConfig.class, MessageTranslator.class}) | ||||
| @RunWith(SpringRunner.class) | ||||
| @ActiveProfiles("test") | ||||
| class HsBookingItemControllerRestTest { | ||||
|  | ||||
|   | ||||
| @@ -17,7 +17,6 @@ import org.junit.jupiter.api.BeforeEach; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.junit.jupiter.params.ParameterizedTest; | ||||
| import org.junit.jupiter.params.provider.EnumSource; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.boot.test.context.TestConfiguration; | ||||
| @@ -26,7 +25,6 @@ import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.bean.override.mockito.MockitoBean; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -57,7 +55,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
|  | ||||
| @WebMvcTest(HsHostingAssetController.class) | ||||
| @Import({ StrictMapper.class, JsonObjectMapperConfiguration.class, DisableSecurityConfig.class, MessageTranslator.class }) | ||||
| @RunWith(SpringRunner.class) | ||||
| @ActiveProfiles("test") | ||||
| public class HsHostingAssetControllerRestTest { | ||||
|  | ||||
|   | ||||
| @@ -16,14 +16,12 @@ import org.junit.jupiter.api.BeforeEach; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.junit.jupiter.params.ParameterizedTest; | ||||
| import org.junit.jupiter.params.provider.EnumSource; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.bean.override.mockito.MockitoBean; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -58,7 +56,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
|           JsonObjectMapperConfiguration.class, | ||||
|           DisableSecurityConfig.class }) | ||||
| @ActiveProfiles("test") | ||||
| @RunWith(SpringRunner.class) | ||||
| class HsOfficeCoopAssetsTransactionControllerRestTest { | ||||
|  | ||||
|     // If you need to run just a single test-case in this data-driven test-method, set SINGLE_TEST_CASE_EXECUTION to true! | ||||
|   | ||||
| @@ -8,14 +8,12 @@ import net.hostsharing.hsadminng.config.MessagesResourceConfig; | ||||
| import net.hostsharing.hsadminng.context.Context; | ||||
| import org.junit.jupiter.params.ParameterizedTest; | ||||
| import org.junit.jupiter.params.provider.EnumSource; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.bean.override.mockito.MockitoBean; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -29,7 +27,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
|           MessageTranslator.class, | ||||
|           JsonObjectMapperConfiguration.class, | ||||
|           DisableSecurityConfig.class }) | ||||
| @RunWith(SpringRunner.class) | ||||
| @ActiveProfiles("test") | ||||
| class PingControllerRestTest { | ||||
|  | ||||
|   | ||||
| @@ -7,14 +7,12 @@ import net.hostsharing.hsadminng.persistence.EntityManagerWrapper; | ||||
| import net.hostsharing.hsadminng.config.DisableSecurityConfig; | ||||
| import org.junit.jupiter.api.BeforeEach; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.test.context.bean.override.mockito.MockitoBean; | ||||
| import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -34,7 +32,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
| @WebMvcTest(RbacRoleController.class) | ||||
| @Import({StrictMapper.class, DisableSecurityConfig.class, MessageTranslator.class}) | ||||
| @ActiveProfiles("test") | ||||
| @RunWith(SpringRunner.class) | ||||
| class RbacRoleControllerRestTest { | ||||
|  | ||||
|     @Autowired | ||||
|   | ||||
| @@ -6,14 +6,12 @@ import net.hostsharing.hsadminng.mapper.StrictMapper; | ||||
| import net.hostsharing.hsadminng.persistence.EntityManagerWrapper; | ||||
| import net.hostsharing.hsadminng.config.DisableSecurityConfig; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.junit.runner.RunWith; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | ||||
| import org.springframework.test.context.bean.override.mockito.MockitoBean; | ||||
| import org.springframework.context.annotation.Import; | ||||
| import org.springframework.http.MediaType; | ||||
| import org.springframework.test.context.ActiveProfiles; | ||||
| import org.springframework.test.context.junit4.SpringRunner; | ||||
| import org.springframework.test.web.servlet.MockMvc; | ||||
| import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; | ||||
|  | ||||
| @@ -30,7 +28,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. | ||||
| @WebMvcTest(RbacSubjectController.class) | ||||
| @Import({StrictMapper.class, DisableSecurityConfig.class, MessageTranslator.class}) | ||||
| @ActiveProfiles("test") | ||||
| @RunWith(SpringRunner.class) | ||||
| class RbacSubjectControllerRestTest { | ||||
|  | ||||
|     @Autowired | ||||
|   | ||||
		Reference in New Issue
	
	Block a user