renaming tests

This commit is contained in:
Eugen Paraschiv 2018-12-18 23:50:20 +02:00
parent 1bb238b908
commit 8411df4e6b
5 changed files with 12 additions and 31 deletions

View File

@ -7,9 +7,8 @@
http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo
http://www.springframework.org/schema/data/mongo/spring-mongo.xsd http://www.springframework.org/schema/data/mongo/spring-mongo.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd" http://www.springframework.org/schema/context/spring-context.xsd">
> <context:annotation-config />
<context:annotation-config/>
<mongo:mongo-client id="mongoClient" host="localhost" /> <mongo:mongo-client id="mongoClient" host="localhost" />
@ -21,19 +20,19 @@
</bean> </bean>
<bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate"> <bean id="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTemplate">
<constructor-arg ref="mongoDbFactory"/> <constructor-arg ref="mongoDbFactory" />
<constructor-arg ref="mongoConverter" /> <constructor-arg ref="mongoConverter" />
</bean> </bean>
<bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/> <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
<mongo:repositories base-package="com.baeldung.repository" mongo-template-ref="mongoTemplate"/> <mongo:repositories base-package="com.baeldung.repository" mongo-template-ref="mongoTemplate" />
<bean class="com.baeldung.event.CascadeSaveMongoEventListener"> <bean class="com.baeldung.event.CascadeSaveMongoEventListener">
</bean> </bean>
<mongo:mapping-converter id="mongoConverter" base-package="com.baeldung.converter"> <mongo:mapping-converter id="mongoConverter" base-package="com.baeldung.converter">
<mongo:custom-converters base-package="org.baeldung.converter"/> <mongo:custom-converters base-package="com.baeldung.converter" />
</mongo:mapping-converter> </mongo:mapping-converter>
</beans> </beans>

View File

@ -14,7 +14,7 @@ import com.baeldung.model.User;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoReactiveConfig.class) @ContextConfiguration(classes = MongoReactiveConfig.class)
public class MongoTransactionReactiveIntegrationTest { public class MongoTransactionReactiveLiveTest {
@Autowired @Autowired
private ReactiveMongoOperations reactiveOps; private ReactiveMongoOperations reactiveOps;

View File

@ -26,7 +26,7 @@ import com.baeldung.model.User;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class) @ContextConfiguration(classes = MongoConfig.class)
public class MongoTransactionTemplateIntegrationTest { public class MongoTransactionTemplateLiveTest {
@Autowired @Autowired
private MongoTemplate mongoTemplate; private MongoTemplate mongoTemplate;

View File

@ -27,7 +27,7 @@ import com.mongodb.MongoCommandException;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = MongoConfig.class) @ContextConfiguration(classes = MongoConfig.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING) @FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class MongoTransactionalIntegrationTest { public class MongoTransactionalLiveTest {
@Autowired @Autowired
private MongoTemplate mongoTemplate; private MongoTemplate mongoTemplate;

View File

@ -1,18 +0,0 @@
package org.baeldung;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.baeldung.config.MongoConfig;
import com.baeldung.config.SimpleMongoConfig;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { MongoConfig.class, SimpleMongoConfig.class })
public class SpringContextIntegrationTest {
@Test
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
}
}