AnnotationUtils { public static List<String> allDBAndOpNames() { List<String> result = new ArrayList<>(); result.addAll(DB_CLASSES.keySet()); result.addAll(IO_OP_CLASSES.rowKeySet()); return result; }  static String annotatedName(Class<?> clazz); static String annotatedAlias(Class<? extends BaseDB> cls); static String annotatedAlias(String name); static IOType annotatedIoType(Class<? extends AlgoOperator> cls); static ParamInfo<String> tableAliasParamKey(String name); static ParamInfo<String> tableAliasParamKey(Class<? extends BaseDB> dbClazz); static ParamInfo<String> dynamicParamKey(String key); static List<String> allDBAndOpNames(); static List<String> allFileSystemNames(); static BaseDB createDB(String name, Params parameter); static BaseFileSystem<?> createFileSystem(String name, Params parameter); static boolean isDB(String name); static boolean isDBHasTimestamp(String name); static boolean isIoOpHasTimestamp(String name, IOType type); static boolean isFileSystem(String name); static AlgoOperator createOp(String name, IOType type, Params parameter);  }
@Test public void testAllDBAndOpNames() { List<String> names = AnnotationUtils.allDBAndOpNames(); Assert.assertTrue(names.contains("test_fake_db_1")); Assert.assertTrue(names.contains("test_fake_db_2")); Assert.assertTrue(names.contains("test_fake_op_1")); Assert.assertTrue(names.contains("test_fake_op_2")); Assert.assertFalse(names.contains("dummy1")); Assert.assertFalse(names.contains("dummy2")); }