HHH-6834 skip test BasicOperationsTest on oracle due to a oracle jdbc driver issue
This commit is contained in:
parent
a250fd6513
commit
b2ba384254
|
@ -33,7 +33,10 @@ import java.util.Date;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.dialect.Dialect;
|
||||||
|
import org.hibernate.dialect.Oracle8iDialect;
|
||||||
import org.hibernate.jdbc.Work;
|
import org.hibernate.jdbc.Work;
|
||||||
|
import org.hibernate.testing.DialectCheck;
|
||||||
import org.hibernate.testing.DialectChecks;
|
import org.hibernate.testing.DialectChecks;
|
||||||
import org.hibernate.testing.RequiresDialectFeature;
|
import org.hibernate.testing.RequiresDialectFeature;
|
||||||
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
||||||
|
@ -45,7 +48,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@RequiresDialectFeature(DialectChecks.SupportsExpectedLobUsagePattern.class)
|
@RequiresDialectFeature(value = {DialectChecks.SupportsExpectedLobUsagePattern.class, BasicOperationsTest.OracleDialectChecker.class}, jiraKey = "HHH-6834")
|
||||||
public class BasicOperationsTest extends BaseCoreFunctionalTestCase {
|
public class BasicOperationsTest extends BaseCoreFunctionalTestCase {
|
||||||
|
|
||||||
private static final String SOME_ENTITY_TABLE_NAME = "SOMEENTITY";
|
private static final String SOME_ENTITY_TABLE_NAME = "SOMEENTITY";
|
||||||
|
@ -55,6 +58,12 @@ public class BasicOperationsTest extends BaseCoreFunctionalTestCase {
|
||||||
protected Class<?>[] getAnnotatedClasses() {
|
protected Class<?>[] getAnnotatedClasses() {
|
||||||
return new Class[] { SomeEntity.class, SomeOtherEntity.class };
|
return new Class[] { SomeEntity.class, SomeOtherEntity.class };
|
||||||
}
|
}
|
||||||
|
public static class OracleDialectChecker implements DialectCheck{
|
||||||
|
@Override
|
||||||
|
public boolean isMatch(Dialect dialect) {
|
||||||
|
return ! (dialect instanceof Oracle8iDialect);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreateAndDelete() {
|
public void testCreateAndDelete() {
|
||||||
|
|
Loading…
Reference in New Issue