2020-03-19 21:20:39 +01:00
|
|
|
package com.baeldung;
|
2019-10-31 20:43:47 -05:00
|
|
|
|
2024-02-20 01:19:05 +01:00
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
import org.junit.jupiter.api.extension.ExtendWith;
|
2019-10-31 20:43:47 -05:00
|
|
|
import org.springframework.test.context.ContextConfiguration;
|
2024-02-20 01:19:05 +01:00
|
|
|
import org.springframework.test.context.junit.jupiter.SpringExtension;
|
2020-01-26 23:43:19 +01:00
|
|
|
import org.springframework.test.context.web.WebAppConfiguration;
|
2019-10-31 20:43:47 -05:00
|
|
|
|
2024-02-20 01:19:05 +01:00
|
|
|
import com.baeldung.spring.MvcConfig;
|
|
|
|
|
import com.baeldung.spring.SecSecurityConfig;
|
|
|
|
|
|
2020-01-26 23:43:19 +01:00
|
|
|
@WebAppConfiguration
|
2019-10-31 20:43:47 -05:00
|
|
|
@ContextConfiguration(classes = { MvcConfig.class, SecSecurityConfig.class })
|
2024-02-20 01:19:05 +01:00
|
|
|
@ExtendWith(SpringExtension.class)
|
|
|
|
|
class SpringContextTest {
|
2019-10-31 20:43:47 -05:00
|
|
|
|
|
|
|
|
@Test
|
2024-02-20 01:19:05 +01:00
|
|
|
void whenSpringContextIsBootstrapped_thenNoExceptions() {
|
2019-10-31 20:43:47 -05:00
|
|
|
}
|
|
|
|
|
}
|
2024-02-20 01:19:05 +01:00
|
|
|
|
|
|
|
|
|