Skip to content

Commit 0b67cc5

Browse files
committed
Fixed #126
1 parent 1d44d0b commit 0b67cc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import lombok.extern.slf4j.Slf4j;
44
import org.junit.Before;
55
import org.junit.jupiter.api.*;
6+
import org.junit.runner.RunWith;
67
import org.springframework.beans.factory.annotation.Autowired;
78
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
89
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@@ -14,6 +15,7 @@
1415
import org.springframework.security.core.context.SecurityContextHolder;
1516
import org.springframework.security.core.userdetails.UsernameNotFoundException;
1617
import org.springframework.security.test.context.support.WithMockUser;
18+
import org.springframework.test.context.junit4.SpringRunner;
1719
import org.springframework.test.web.servlet.MockMvc;
1820
import org.springframework.test.web.servlet.ResultActions;
1921
import org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder;
@@ -38,6 +40,7 @@
3840
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
3941
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
4042
@AutoConfigureMockMvc
43+
@RunWith(SpringRunner.class)
4144
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
4245
@Import(SimpleworklistApplication.class)
4346
public class SmokeTests {

0 commit comments

Comments
 (0)