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:
Oliver Gierke
2012-05-15 17:58:25 +02:00
parent f466744acd
commit 72da417171
5 changed files with 9 additions and 7 deletions

View File

@@ -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;

View File

@@ -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"));
}
}

View File

@@ -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)

View File

@@ -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;