Search in sources :

Example 6 with ClassType

use of com.cubrid.cubridmanager.core.utils.ModelUtil.ClassType in project cubrid-manager by CUBRID.

the class ClassInfoTest method testClassInfo.

/**
	 * test ClassInfo
	 * 
	 */
public void testClassInfo() {
    String className = "className";
    String ownerName = "ownerName";
    ClassType classType = ClassType.NORMAL;
    ;
    boolean isSystemClass = true;
    boolean isPartitionedClass = true;
    //test constructor
    ClassInfo classInfo = new ClassInfo(className, ownerName, classType, isSystemClass, isPartitionedClass);
    assertNotNull(classInfo);
    //test 	getters and setters	
    classInfo.setClassName(className);
    classInfo.setOwnerName(ownerName);
    classInfo.setClassType(classType);
    classInfo.setSystemClass(isSystemClass);
    classInfo.setPartitionedClass(isPartitionedClass);
    assertEquals(classInfo.getClassName(), className);
    assertEquals(classInfo.getOwnerName(), ownerName);
    assertEquals(classInfo.getClassType(), classType);
    assertTrue(classInfo.isSystemClass());
    assertTrue(classInfo.isPartitionedClass());
}
Also used : ClassType(com.cubrid.cubridmanager.core.utils.ModelUtil.ClassType)

Aggregations

ClassType (com.cubrid.cubridmanager.core.utils.ModelUtil.ClassType)6 ClassInfo (com.cubrid.cubridmanager.core.cubrid.table.model.ClassInfo)4 SQLException (java.sql.SQLException)4 ArrayList (java.util.ArrayList)3 PreparedStatement (java.sql.PreparedStatement)2