use of com.cubrid.cubridmanager.core.monstatistic.model.StatisticParamUtil.TimeType in project cubrid-manager by CUBRID.
the class StatisticParamUtilTest method testTimeType.
public void testTimeType() {
for (TimeType type : TimeType.values()) {
assertNotNull(type.getMessage());
assertNotNull(type.getType());
switch(type) {
case DAILY:
assertEquals(TimeType.getEnumByMessage(type.getMessage()), type);
assertEquals(TimeType.getEnumByMessage(type.getType()), type);
break;
case WEEKLY:
assertEquals(TimeType.getEnumByMessage(type.getMessage()), type);
assertEquals(TimeType.getEnumByMessage(type.getType()), type);
break;
case MONTHLY:
assertEquals(TimeType.getEnumByMessage(type.getMessage()), type);
assertEquals(TimeType.getEnumByMessage(type.getType()), type);
break;
case YEARLY:
assertEquals(TimeType.getEnumByMessage(type.getMessage()), type);
assertEquals(TimeType.getEnumByMessage(type.getType()), type);
break;
default:
}
}
}
Aggregations