Re-enabled additional documentation tests

This commit is contained in:
Andrea Boriero 2021-08-23 17:23:12 +02:00 committed by Andrea Boriero
parent f507c3a00e
commit 64c331150b
3 changed files with 11 additions and 1 deletions

View File

@ -291,7 +291,10 @@ tasks.withType(AsciidoctorTask).all {
// Testing
test {
include '**/mapping/basic/**'
include '**/**'
exclude '**/HQLTest**'
exclude '**/SQLTest**' //derby failures
exclude '**/PostgreSQLFunctionWhereClauseTest**'
}
// resources inherently exclude sources

View File

@ -15,11 +15,13 @@ import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.annotations.ValueGenerationType;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.tuple.AnnotationValueGeneration;
import org.hibernate.tuple.GenerationTiming;
import org.hibernate.tuple.ValueGenerator;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
@ -27,6 +29,7 @@ import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
/**
* @author Vlad Mihalcea
*/
@SkipForDialect( value = SybaseDialect.class, comment = "Sybase doesn't seem to support current_timestamp")
public class DatabaseValueGenerationTest extends BaseEntityManagerFunctionalTestCase {
@Override

View File

@ -1,5 +1,6 @@
package org.hibernate.userguide.pc;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
@ -10,6 +11,8 @@ import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.junit.Test;
import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
@ -17,6 +20,7 @@ import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
/**
* @author Vlad Mihalcea
*/
@RequiresDialectFeature(DialectChecks.SupportsCascadeDeleteCheck.class)
public class CascadeOnDeleteTest extends BaseEntityManagerFunctionalTestCase {
@Override