Search in sources :

Example 1 with StringType

use of org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.StringType in project jbosstools-hibernate by jbosstools.

the class TypeFacadeTest method testIsInstanceOfPrimitiveType.

// TODO JBIDE-28154: Investigate failure
@Disabled
@Test
public void testIsInstanceOfPrimitiveType() {
    IType typeFacade = null;
    ClassType classType = new ClassType();
    typeFacade = new TypeFacadeImpl(FACADE_FACTORY, classType) {
    };
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    StringType stringType = new StringType();
    typeFacade = new TypeFacadeImpl(FACADE_FACTORY, stringType) {
    };
    assertFalse(typeFacade.isInstanceOfPrimitiveType());
    IntegerType integerType = new IntegerType();
    typeFacade = new TypeFacadeImpl(FACADE_FACTORY, integerType) {
    };
    assertTrue(typeFacade.isInstanceOfPrimitiveType());
}
Also used : IntegerType(org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.IntegerType) StringType(org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.StringType) ClassType(org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.ClassType) IType(org.jboss.tools.hibernate.runtime.spi.IType) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

IType (org.jboss.tools.hibernate.runtime.spi.IType)1 ClassType (org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.ClassType)1 IntegerType (org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.IntegerType)1 StringType (org.jboss.tools.hibernate.runtime.v_6_0.internal.legacy.StringType)1 Disabled (org.junit.jupiter.api.Disabled)1 Test (org.junit.jupiter.api.Test)1