@Test public void testSingletonAsserterMixed2() { Assert.assertTrue(SingletonAsserter.assertSingleton(Mixed2.class)); Assert.assertFalse(SingletonAsserter.assertSingleton("A", Mixed2.class)); }
public static synchronized boolean assertSingleton(final Class clazz) { return SINGLETONS_GLOBAL.add(clazz) && ALL_CLASSES.add(clazz); }
SingletonAsserter { public static synchronized boolean assertSingleton(final Class clazz) { return SINGLETONS_GLOBAL.add(clazz) && ALL_CLASSES.add(clazz); } }
SingletonAsserter { public static synchronized boolean assertSingleton(final Class clazz) { return SINGLETONS_GLOBAL.add(clazz) && ALL_CLASSES.add(clazz); } private  SingletonAsserter(); }
SingletonAsserter { public static synchronized boolean assertSingleton(final Class clazz) { return SINGLETONS_GLOBAL.add(clazz) && ALL_CLASSES.add(clazz); } private  SingletonAsserter(); static synchronized boolean assertSingleton(final Class clazz); static synchronized boolean assertSingleton(final String scopeId, final Class clazz); }
SingletonAsserter { public static synchronized boolean assertSingleton(final Class clazz) { return SINGLETONS_GLOBAL.add(clazz) && ALL_CLASSES.add(clazz); } private  SingletonAsserter(); static synchronized boolean assertSingleton(final Class clazz); static synchronized boolean assertSingleton(final String scopeId, final Class clazz);  }