2018-02-16 22:31:53 +01:00
|
|
|
package com.baeldung.springsecuritythymeleaf;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertNotNull;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
import org.springframework.web.context.WebApplicationContext;
|
|
|
|
|
|
|
|
@RunWith(SpringRunner.class)
|
|
|
|
@SpringBootTest
|
2018-06-05 17:05:55 +05:30
|
|
|
public class SpringSecurityThymeleafApplicationIntegrationTest {
|
2018-02-16 22:31:53 +01:00
|
|
|
|
|
|
|
@Autowired
|
|
|
|
ViewController viewController;
|
|
|
|
@Autowired
|
|
|
|
WebApplicationContext wac;
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void whenConfigured_thenLoadsContext() {
|
|
|
|
assertNotNull(viewController);
|
|
|
|
assertNotNull(wac);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|