DATAJPA-288 - Separate test execution for different persistence providers.

Re-enabled more integration tests integration tests.
This commit is contained in:
Oliver Gierke
2013-01-25 18:15:17 +01:00
parent a74fadd234
commit 943be87908
5 changed files with 125 additions and 17 deletions

View File

@@ -16,7 +16,6 @@
package org.springframework.data.jpa.repository;
import org.springframework.data.jpa.repository.sample.UserRepository;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
/**
@@ -24,8 +23,7 @@ import org.springframework.test.context.ContextConfiguration;
*
* @author Oliver Gierke
*/
@DirtiesContext
@ContextConfiguration(value = "classpath:eclipselink.xml", inheritLocations = true)
@ContextConfiguration(value = "classpath:eclipselink.xml")
public class EclipseLinkNamespaceUserRepositoryTests extends NamespaceUserRepositoryTests {
/**

View File

@@ -16,7 +16,6 @@
package org.springframework.data.jpa.repository;
import org.junit.Ignore;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
/**
@@ -25,8 +24,16 @@ import org.springframework.test.context.ContextConfiguration;
*
* @author Oliver Gierke
*/
@Ignore
@DirtiesContext
@ContextConfiguration(value = "classpath:eclipselink.xml", inheritLocations = true)
@ContextConfiguration("classpath:eclipselink.xml")
public class EclipseLinkUserRepositoryFinderTests extends UserRepositoryFinderTests {
@Ignore
@Override
public void executesNotInQueryCorrectly() throws Exception {
}
@Ignore
@Override
public void executesInKeywordForPageCorrectly() {
}
}

View File

@@ -41,7 +41,7 @@ import org.springframework.test.context.ContextConfiguration;
*
* @author Oliver Gierke
*/
@ContextConfiguration(value = "classpath:openjpa.xml", inheritLocations = true)
@ContextConfiguration("classpath:openjpa.xml")
public class OpenJpaNamespaceUserRepositoryTests extends NamespaceUserRepositoryTests {
@PersistenceContext

View File

@@ -0,0 +1,39 @@
/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.jpa.repository;
import org.junit.Ignore;
import org.springframework.test.context.ContextConfiguration;
/**
* Ignores some test cases using IN queries as long as we wait for fix for
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=349477.
*
* @author Oliver Gierke
*/
@ContextConfiguration("classpath:openjpa.xml")
public class OpenJpaUserRepositoryFinderTests extends UserRepositoryFinderTests {
@Ignore
@Override
public void findsByLastnameIgnoringCase() throws Exception {
}
@Ignore
@Override
public void findsByLastnameIgnoringCaseLike() throws Exception {
}
}