@Test public void testGetInstance() { assertNotNull(DummyMessagePrinter.getInstance()); }
public static MessagePrinter getInstance() { if (null == instance) { synchronized (DummyMessagePrinter.class) { if (null == instance) { instance = new DummyMessagePrinter(); } return instance; } } return instance; }
DummyMessagePrinter implements MessagePrinter { public static MessagePrinter getInstance() { if (null == instance) { synchronized (DummyMessagePrinter.class) { if (null == instance) { instance = new DummyMessagePrinter(); } return instance; } } return instance; } }
DummyMessagePrinter implements MessagePrinter { public static MessagePrinter getInstance() { if (null == instance) { synchronized (DummyMessagePrinter.class) { if (null == instance) { instance = new DummyMessagePrinter(); } return instance; } } return instance; }  }
DummyMessagePrinter implements MessagePrinter { public static MessagePrinter getInstance() { if (null == instance) { synchronized (DummyMessagePrinter.class) { if (null == instance) { instance = new DummyMessagePrinter(); } return instance; } } return instance; }  static MessagePrinter getInstance(); @Override void print(String format, Object... args); @Override void println(); @Override void println(String format, Object... args); @Override void flush(); }
DummyMessagePrinter implements MessagePrinter { public static MessagePrinter getInstance() { if (null == instance) { synchronized (DummyMessagePrinter.class) { if (null == instance) { instance = new DummyMessagePrinter(); } return instance; } } return instance; }  static MessagePrinter getInstance(); @Override void print(String format, Object... args); @Override void println(); @Override void println(String format, Object... args); @Override void flush();  }