Improve project setup.
Reactivated test cases that were not executed because they were named *Test, not *Tests. Upgraded to Maven Surefire Plugin 2.12 and activated parallel test execution per method. Upgraded Maven Compiler Plugin to 2.4.
This commit is contained in:
@@ -41,7 +41,7 @@ import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class LockIntegrationTest {
|
||||
public class LockIntegrationTests {
|
||||
|
||||
@Mock
|
||||
EntityManager em;
|
||||
@@ -33,7 +33,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration("classpath:config/namespace-application-context.xml")
|
||||
public class SPR8954 {
|
||||
public class SPR8954Tests {
|
||||
|
||||
@Autowired
|
||||
ApplicationContext context;
|
||||
@@ -47,7 +47,7 @@ public class SPR8954 {
|
||||
|
||||
assertThat(repoFactories.size(), is(greaterThan(0)));
|
||||
assertThat(repoFactories.keySet(), hasItem("&userRepository"));
|
||||
assertThat(repoFactories.get("&userRepository"), is(JpaRepositoryFactoryBean.class));
|
||||
assertThat(repoFactories.get("&userRepository"), is(instanceOf(JpaRepositoryFactoryBean.class)));
|
||||
assertThat(Arrays.asList(context.getBeanNamesForType(UserRepository.class)), hasItem("userRepository"));
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@ContextConfiguration(locations = "classpath:config/namespace-autoconfig-typefilter-context.xml")
|
||||
public class TypeFilterConfigTest extends AbstractRepositoryConfigTests {
|
||||
public class TypeFilterConfigTests extends AbstractRepositoryConfigTests {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
@@ -43,7 +43,7 @@ import org.springframework.data.jpa.domain.sample.SampleWithIdClassPK;
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class JpaMetamodelEntityInformationUnitTest {
|
||||
public class JpaMetamodelEntityInformationUnitTests {
|
||||
|
||||
@Mock
|
||||
Metamodel metamodel;
|
||||
Reference in New Issue
Block a user