Story/bael 14304 (#7311)
* BAEL-15951 Moved vavr, JHipster to default profiles * BAEL-14304 Include the SpringContextIntegrationTest in the default build - Added SpringContextTest.java in all the modules where SpringContextIntegrationTest already exists * BAEL-14304 Changes in pmd rule and pom.xml to run UnitTest and SpringContextTest additionally in default profiles * BAEL-14304 Minor changes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.custom.CustomApplication;
|
||||
import com.baeldung.produceimage.ImageApplication;
|
||||
import com.baeldung.propertyeditor.PropertyEditorApplication;
|
||||
import com.baeldung.responseheaders.ResponseHeadersApplication;
|
||||
import com.baeldung.sampleapp.config.MainApplication;
|
||||
import com.baeldung.web.log.app.Application;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = { CustomApplication.class, ImageApplication.class, PropertyEditorApplication.class,
|
||||
ResponseHeadersApplication.class, Application.class, com.baeldung.web.upload.app.UploadApplication.class,
|
||||
MainApplication.class})
|
||||
public class SpringContextTest {
|
||||
|
||||
@Test
|
||||
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user