@Test public void TestGetAllInterfaces2 (){ List<Class<?>> interfaces = RegisterUtil.getAllInterfaces(DummyClass2.class); assertTrue(interfaces.contains(DummyInterface.class)); assertTrue(interfaces.contains(DummyInterface2.class)); }
public static List<Class<?>> getAllInterfaces(Class<?> clazz) { Set<Class<?>> interfaces = new HashSet<Class<?>>(); addAllInterfaces(interfaces, clazz); return new ArrayList<Class<?>>(interfaces); }
RegisterUtil { public static List<Class<?>> getAllInterfaces(Class<?> clazz) { Set<Class<?>> interfaces = new HashSet<Class<?>>(); addAllInterfaces(interfaces, clazz); return new ArrayList<Class<?>>(interfaces); } }
RegisterUtil { public static List<Class<?>> getAllInterfaces(Class<?> clazz) { Set<Class<?>> interfaces = new HashSet<Class<?>>(); addAllInterfaces(interfaces, clazz); return new ArrayList<Class<?>>(interfaces); }  }
RegisterUtil { public static List<Class<?>> getAllInterfaces(Class<?> clazz) { Set<Class<?>> interfaces = new HashSet<Class<?>>(); addAllInterfaces(interfaces, clazz); return new ArrayList<Class<?>>(interfaces); }  static List<Class<?>> getAllInterfaces(Class<?> clazz); }
RegisterUtil { public static List<Class<?>> getAllInterfaces(Class<?> clazz) { Set<Class<?>> interfaces = new HashSet<Class<?>>(); addAllInterfaces(interfaces, clazz); return new ArrayList<Class<?>>(interfaces); }  static List<Class<?>> getAllInterfaces(Class<?> clazz);  }