コード例 #1
0
  @Test
  public void testNullFactory() {
    final IFactory<?> aFactory = FactoryNull.getInstance();
    assertNotNull(aFactory);
    assertNull(aFactory.create());
    assertNull(aFactory.create());
    assertNull(aFactory.create());
    assertNull(aFactory.create());

    assertSame(aFactory, FactoryNull.getInstance());
  }