Skip to content

Commit 187b88e

Browse files
committed
URL PATH of Actions - Controller Methods Refactoring
1 parent 5703335 commit 187b88e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/test/java/org/woehlke/simpleworklist/AbstractTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
package org.woehlke.simpleworklist;
22

33
import lombok.extern.slf4j.Slf4j;
4-
import org.junit.AfterClass;
5-
import org.junit.BeforeClass;
64
import org.junit.jupiter.api.BeforeEach;
75
import org.springframework.beans.factory.annotation.Autowired;
8-
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
9-
import org.springframework.boot.context.properties.EnableConfigurationProperties;
10-
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
116
import org.springframework.boot.test.context.SpringBootTest;
12-
import org.springframework.boot.test.web.client.TestRestTemplate;
137
import org.springframework.boot.web.server.LocalServerPort;
148
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
159
import org.springframework.security.core.Authentication;
@@ -20,8 +14,6 @@
2014
import org.springframework.test.web.servlet.MockMvc;
2115
import org.springframework.web.context.WebApplicationContext;
2216
import org.woehlke.simpleworklist.config.ApplicationProperties;
23-
import org.woehlke.simpleworklist.config.di.WebMvcConfig;
24-
import org.woehlke.simpleworklist.config.di.WebSecurityConfig;
2517
import org.woehlke.simpleworklist.helper.TestHelperService;
2618
import org.woehlke.simpleworklist.user.account.UserAccount;
2719
import org.woehlke.simpleworklist.user.account.UserAccountService;
@@ -34,17 +26,8 @@
3426

3527
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;
3628

37-
3829
@Slf4j
39-
@AutoConfigureMockMvc
4030
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
41-
@ImportAutoConfiguration({
42-
WebMvcConfig.class,
43-
WebSecurityConfig.class
44-
})
45-
@EnableConfigurationProperties({
46-
ApplicationProperties.class
47-
})
4831
public abstract class AbstractTest {
4932

5033
@LocalServerPort

0 commit comments

Comments
 (0)