minor fixes:

fixed method naming
added dirtiesContext annotation to classes that shouldnt share the app context state
using SpringApplication instead of unnecessary SpringApplicationBuilder
This commit is contained in:
geroza
2018-12-22 11:05:38 -02:00
parent 832a3dc176
commit cb259f6f6c
5 changed files with 18 additions and 14 deletions

View File

@@ -3,10 +3,12 @@ package org.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
import com.baeldung.protobuf.Application;
@DirtiesContext
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class SpringContextIntegrationTest {