### Question:
DataType { public static boolean isSingleValueType(Class<?> clazz) { boolean ret; if (isNumber(clazz) || isBoolean(clazz) || isString(clazz) || isEnum(clazz) || isDate(clazz) || isCalendar(clazz) || isCurrency(clazz) ) { ret = true; } else { ret = false; } return ret; }  static boolean isSingleValueType(Class<?> clazz); static boolean isArrayOrCollection(Class<?> parameterType); static boolean isNumber(Class<?> clazz); static boolean isInteger(Class<?> clazz); static boolean isLong(Class<?> clazz); static boolean isFloat(Class<?> clazz); static boolean isDouble(Class<?> clazz); static boolean isByte(Class<?> clazz); static boolean isShort(Class<?> clazz); static boolean isBoolean(Class<?> clazz); static boolean isEnum(Class<?> clazz); static boolean isString(Class<?> parameterType); static boolean isBigInteger(Class<?> clazz); static boolean isBigDecimal(Class<?> clazz); static boolean isDate(Class<?> clazz); static boolean isCalendar(Class<?> clazz); static boolean isCurrency(Class<?> clazz); static Object asScalarValue(Object bean); static Object asType(Class<?> type, String string); static boolean isIsoLatin1Number(String str);  }### Answer:
@Test public void testIsSingleValueTypeInt() throws Exception { Assert.assertTrue(DataType.isSingleValueType(int.class)); }
@Test public void testIsSingleValueType() throws Exception { Assert.assertTrue(DataType.isSingleValueType(int.class)); Assert.assertTrue(DataType.isSingleValueType(Integer.class)); Assert.assertTrue(DataType.isSingleValueType(BigInteger.class)); Assert.assertTrue(DataType.isSingleValueType(BigDecimal.class)); Assert.assertTrue(DataType.isSingleValueType(boolean.class)); Assert.assertTrue(DataType.isSingleValueType(Boolean.class)); Assert.assertTrue(DataType.isSingleValueType(EventStatusType.class)); Assert.assertTrue(DataType.isSingleValueType(Date.class)); Assert.assertTrue(DataType.isSingleValueType(Calendar.class)); Assert.assertTrue(DataType.isSingleValueType(Currency.class)); Assert.assertFalse(DataType.isSingleValueType(Object.class)); }