Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,28 @@
import javax.persistence.Id;


import org.hibernate.reactive.testing.DatabaseSelectionRule;

import org.junit.Rule;
import org.junit.Test;

import io.vertx.ext.unit.TestContext;

import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
import static org.hibernate.reactive.testing.DatabaseSelectionRule.skipTestsFor;

/**
* Check that the generated id can be of a specific type
*
* @see org.hibernate.reactive.id.impl.IdentifierGeneration
*/
public class IdentifierGenerationTypeTest extends BaseReactiveTest {

// Vertx DB2 client is throwing "java.lang.IllegalStateException: Needed to have 6 in buffer but only had 0."
// TODO: remove rule when https://github.com/eclipse-vertx/vertx-sql-client/issues/1208 is resolved
@Rule
public DatabaseSelectionRule skip = skipTestsFor( DB2 );

@Override
protected Collection<Class<?>> annotatedEntities() {
return List.of( LongEntity.class, IntegerEntity.class, ShortEntity.class );
Expand Down