Fix test names (#1853)
* upgrade to spring boot 1.5.2 * add full update to REST API * modify ratings controller * upgrade herold * fix integration test * fix integration test * minor fix * fix integration test * fix integration test * minor cleanup * minor cleanup * remove log4j properties * use standard logbook.xml * remove log4j dependencies * remove commons-logging * merge * fix conflict * exclude commons-logging dependency * cleanup * minor fix * minor fix * fix dependency issues * Revert "fix dependency issues" This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec. * fix dependency issues * minor fix * minor fix * minor fix * cleanup generated files * fix commons-logging issue * add parent to pom * cleanup parent dependencies * cleanup pom * cleanup pom * add missing parent * fix logging issue * fix test names
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import org.springframework.core.io.Resource;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class BeanFactoryWithClassPathResourceTest {
|
||||
public class BeanFactoryWithClassPathResourceIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void createBeanFactoryAndCheckEmployeeBean() {
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(locations = { "classpath:factorybean-abstract-spring-ctx.xml" })
|
||||
public class AbstractFactoryBeanTest {
|
||||
public class AbstractFactoryBeanIntegrationTest {
|
||||
|
||||
@Resource(name = "singleTool")
|
||||
private Tool tool1;
|
||||
+1
-1
@@ -13,7 +13,7 @@ import static org.junit.Assert.assertThat;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = FactoryBeanAppConfig.class)
|
||||
public class FactoryBeanJavaConfigTest {
|
||||
public class FactoryBeanJavaConfigIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private Tool tool;
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(locations = { "classpath:factorybean-spring-ctx.xml" })
|
||||
public class FactoryBeanXmlConfigTest {
|
||||
public class FactoryBeanXmlConfigIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private Tool tool;
|
||||
+1
-1
@@ -14,7 +14,7 @@ import static org.mockito.Mockito.when;
|
||||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = TestConfig.class)
|
||||
public class ApologizeServiceAutowiringTest {
|
||||
public class ApologizeServiceAutowiringIntegrationTest {
|
||||
|
||||
private final static String TRANSLATED = "TRANSLATED";
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class ApologizeServiceTest {
|
||||
public class ApologizeServiceIntegrationTest {
|
||||
|
||||
private final static String MESSAGE = "MESSAGE";
|
||||
private final static String TRANSLATED = "TRANSLATED";
|
||||
+1
-1
@@ -14,7 +14,7 @@ import static org.mockito.Mockito.when;
|
||||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = TestConfig.class)
|
||||
public class FarewellAutowiringTest {
|
||||
public class FarewellAutowiringIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private FarewellService farewellService;
|
||||
+1
-1
@@ -6,7 +6,7 @@ import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class FarewellServiceTest {
|
||||
public class FarewellServiceIntegrationTest {
|
||||
|
||||
private final static String TRANSLATED = "TRANSLATED";
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import static org.mockito.Mockito.when;
|
||||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = TestConfig.class)
|
||||
public class GreetingServiceTest {
|
||||
public class GreetingServiceIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private GreetingService greetingService;
|
||||
+1
-1
@@ -14,7 +14,7 @@ import static org.mockito.Mockito.when;
|
||||
@ContextConfiguration(
|
||||
loader = AnnotationConfigContextLoader.class,
|
||||
classes = TestConfig.class)
|
||||
public class ThankingServiceAutowiringTest {
|
||||
public class ThankingServiceAutowiringIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private ThankingService thankingService;
|
||||
+1
-1
@@ -6,7 +6,7 @@ import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class ThankingServiceTest {
|
||||
public class ThankingServiceIntegrationTest {
|
||||
|
||||
private final static String TRANSLATED = "TRANSLATED";
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import com.baeldung.configuration.ApplicationContextTestBeanInjectionTypes;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = ApplicationContextTestBeanInjectionTypes.class)
|
||||
public class BeanInjectionJavaConfigTest implements ApplicationContextAware {
|
||||
public class BeanInjectionJavaConfigIntegrationTest implements ApplicationContextAware {
|
||||
|
||||
private ApplicationContext beanInjectedContext;
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import com.baeldung.beaninjection.ExampleServiceBean;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(locations = "classpath:beaninjectiontypes-context.xml")
|
||||
public class BeanInjectionXMLConfigTest implements ApplicationContextAware {
|
||||
public class BeanInjectionXMLConfigIntegrationTest implements ApplicationContextAware {
|
||||
|
||||
private ApplicationContext beanInjectedContext;
|
||||
|
||||
Reference in New Issue
Block a user