Skip to content

Commit

Permalink
HHH-6841 Applied @SkipForDialects to a couple of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Feb 14, 2013
1 parent 6b4b6cc commit 3797e21
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
*/
package org.hibernate.test.annotations.manytoonewithformula;

import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.hibernate.Session;
import org.hibernate.Transaction;
Expand All @@ -36,10 +37,9 @@
import org.hibernate.dialect.SQLServer2005Dialect;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.SkipForDialects;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;

/**
* @author Sharath Reddy
Expand Down Expand Up @@ -155,8 +155,11 @@ public void testReferencedColumnNameBelongsToEmbeddedIdOfReferencedEntity() thro
}

@Test
@SkipForDialect(value = { HSQLDialect.class, SQLServer2005Dialect.class, Oracle8iDialect.class, DB2Dialect.class },
comment = "The used join conditions does not work in HSQLDB. See HHH-4497. And oracle/db2 do not support 'substring' function")
@SkipForDialects( {
@SkipForDialect( value = { HSQLDialect.class }, comment = "The used join conditions does not work in HSQLDB. See HHH-4497." ),
@SkipForDialect( value = { SQLServer2005Dialect.class } ),
@SkipForDialect( value = { Oracle8iDialect.class }, comment = "Oracle/DB2 do not support 'substring' function" ),
@SkipForDialect( value = { DB2Dialect.class }, comment = "Oracle/DB2 do not support 'substring' function" ) } )
public void testManyToOneFromNonPkToNonPk() throws Exception {
// also tests usage of the stand-alone @JoinFormula annotation (i.e. not wrapped within @JoinColumnsOrFormulas)
Session s = openSession();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
* Boston, MA 02110-1301 USA
*/
package org.hibernate.test.cut;
import static org.junit.Assert.assertEquals;

import java.math.BigDecimal;
import java.util.Currency;
import java.util.List;

import org.junit.Test;

import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.hibernate.dialect.DB2Dialect;
import org.hibernate.dialect.HSQLDialect;
import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.SkipForDialects;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
* @author Gavin King
Expand Down Expand Up @@ -78,7 +78,9 @@ public void testCompositeUserType() {
}

@Test
@SkipForDialect( value = {SybaseASE15Dialect.class, DB2Dialect.class}, jiraKey = "HHH-6788,HHH-6867")
@SkipForDialects( {
@SkipForDialect ( value = { SybaseASE15Dialect.class }, jiraKey = "HHH-6788" ),
@SkipForDialect ( value = { DB2Dialect.class }, jiraKey = "HHH-6867" ) } )
public void testCustomColumnReadAndWrite() {
Session s = openSession();
org.hibernate.Transaction t = s.beginTransaction();
Expand Down

0 comments on commit 3797e21

Please sign in to comment.