* Deleted md file as a conflict * [BAEL-4461] - Fixed PMD violation * [BAEL-4461] - Fixed PMD violation * [BAEL-4461] - Ignore empty TC * Fix Spring 5 tests
28 lines
712 B
Java
28 lines
712 B
Java
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
|
|
public class SpringSecurityThymeleafApplicationIntegrationTest {
|
|
|
|
@Autowired
|
|
ViewController viewController;
|
|
@Autowired
|
|
WebApplicationContext wac;
|
|
|
|
@Test
|
|
public void whenConfigured_thenLoadsContext() {
|
|
assertNotNull(viewController);
|
|
assertNotNull(wac);
|
|
}
|
|
|
|
}
|