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());
}
Aggregations