DATAES-3 - Moved to Spring Data build system.

Updated pom to use Spring Data build parent file. Renamed Test files to …Tests for the Surefire plugin be able to find it. Added data folder to .gitignore. Added template.mf for Bundlor to create an OSGi MANIFEST.MF.
This commit is contained in:
Oliver Gierke
2013-04-30 12:36:35 +02:00
parent 03e3b5973e
commit a8aca3e21b
17 changed files with 101 additions and 313 deletions

View File

@@ -35,7 +35,7 @@ import static org.junit.Assert.assertThat;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/repository-test-nested-object.xml")
public class NestedObjectTest{
public class NestedObjectTests{
@Resource
private SampleElasticSearchBookRepository repository;

View File

@@ -24,7 +24,7 @@ import org.springframework.data.elasticsearch.repositories.NonDocumentEntityRepo
* @author Rizwan Idrees
* @author Mohsin Husen
*/
public class NonDocumentEntityTest {
public class NonDocumentEntityTests {
@Test(expected = BeanCreationException.class)

View File

@@ -37,7 +37,7 @@ import static org.junit.Assert.assertThat;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("namespace.xml")
public class ElasticsearchNamespaceHandlerTest {
public class ElasticsearchNamespaceHandlerTests {
@Autowired
private ApplicationContext context;

View File

@@ -39,7 +39,7 @@ import static org.junit.Assert.assertThat;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class EnableElasticsearchRepositoriesTest {
public class EnableElasticsearchRepositoriesTests {
@Configuration
@EnableElasticsearchRepositories(basePackages = "org.springframework.data.elasticsearch.repositories")

View File

@@ -51,7 +51,7 @@ import static org.junit.Assert.*;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:elasticsearch-template-test.xml")
public class ElasticsearchTemplateTest {
public class ElasticsearchTemplateTests {
@Autowired
private ElasticsearchTemplate elasticsearchTemplate;

View File

@@ -30,7 +30,7 @@ import java.util.TimeZone;
* @author Rizwan Idrees
* @author Mohsin Husen
*/
public class DateTimeConvertersTest {
public class DateTimeConvertersTests {
@Test
public void testJodaDateTimeConverterWithNullValue() {
Assert.assertNull(DateTimeConverters.JodaDateTimeConverter.INSTANCE.convert(null));

View File

@@ -27,7 +27,7 @@ import static org.junit.Assert.assertThat;
* @author Rizwan Idrees
* @author Mohsin Husen
*/
public class MappingElasticsearchConverterTest {
public class MappingElasticsearchConverterTests {
@Test(expected = IllegalArgumentException.class)
public void shouldFailToInitializeGivenMappingContextIsNull(){

View File

@@ -28,7 +28,7 @@ import java.beans.PropertyDescriptor;
* @author Rizwan Idrees
* @author Mohsin Husen
*/
public class SimpleElasticsearchPersistentEntityTest {
public class SimpleElasticsearchPersistentEntityTests {
@Test(expected = IllegalArgumentException.class)
public void shouldThrowExceptionGivenVersionPropertyIsNotLong() throws NoSuchFieldException, IntrospectionException {

View File

@@ -42,7 +42,7 @@ import static org.junit.Assert.assertTrue;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:elasticsearch-template-test.xml")
public class CriteriaQueryTest {
public class CriteriaQueryTests {
@Resource
private ElasticsearchTemplate elasticsearchTemplate;

View File

@@ -44,7 +44,7 @@ import static org.junit.Assert.assertThat;
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:custom-method-repository-test.xml")
public class CustomMethodRepositoryTest {
public class CustomMethodRepositoryTests {
@Resource
private SampleCustomMethodRepository repository;

View File

@@ -50,7 +50,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/simple-repository-test.xml")
public class DoubleIDRepositoryTest {
public class DoubleIDRepositoryTests {
@Resource

View File

@@ -38,7 +38,7 @@ import static org.mockito.Mockito.when;
* @author Mohsin Husen
*/
@RunWith(MockitoJUnitRunner.class)
public class ElasticsearchRepositoryFactoryTest {
public class ElasticsearchRepositoryFactoryTests {
@Mock
private ElasticsearchOperations operations;

View File

@@ -50,7 +50,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/simple-repository-test.xml")
public class IntegerIDRepositoryTest {
public class IntegerIDRepositoryTests {
@Resource

View File

@@ -47,7 +47,7 @@ import static org.junit.Assert.*;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:/simple-repository-test.xml")
public class SimpleElasticsearchRepositoryTest {
public class SimpleElasticsearchRepositoryTests {
@Resource
private SampleElasticsearchRepository repository;