@Test public void testConfigString() { assertThat(platform.getConfigInfoImpl()).contains(DefaultPlatform.class.getName()); assertThat(platform.getConfigInfoImpl()).contains("Clock: Mock Clock"); assertThat(platform.getConfigInfoImpl()).contains("BackendFactory: Mock Backend Factory"); assertThat(platform.getConfigInfoImpl()).contains("LoggingContext: Mock Logging Context"); assertThat(platform.getConfigInfoImpl()).contains("LogCallerFinder: Mock Caller Finder"); }
@Override protected String getConfigInfoImpl() { return "Platform: " + getClass().getName() + "\n" + "BackendFactory: " + backendFactory + "\n" + "Clock: " + clock + "\n" + "LoggingContext: " + context + "\n" + "LogCallerFinder: " + callerFinder + "\n"; }
DefaultPlatform extends Platform { @Override protected String getConfigInfoImpl() { return "Platform: " + getClass().getName() + "\n" + "BackendFactory: " + backendFactory + "\n" + "Clock: " + clock + "\n" + "LoggingContext: " + context + "\n" + "LogCallerFinder: " + callerFinder + "\n"; } }
DefaultPlatform extends Platform { @Override protected String getConfigInfoImpl() { return "Platform: " + getClass().getName() + "\n" + "BackendFactory: " + backendFactory + "\n" + "Clock: " + clock + "\n" + "LoggingContext: " + context + "\n" + "LogCallerFinder: " + callerFinder + "\n"; } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder); }
DefaultPlatform extends Platform { @Override protected String getConfigInfoImpl() { return "Platform: " + getClass().getName() + "\n" + "BackendFactory: " + backendFactory + "\n" + "Clock: " + clock + "\n" + "LoggingContext: " + context + "\n" + "LogCallerFinder: " + callerFinder + "\n"; } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder);  }
DefaultPlatform extends Platform { @Override protected String getConfigInfoImpl() { return "Platform: " + getClass().getName() + "\n" + "BackendFactory: " + backendFactory + "\n" + "Clock: " + clock + "\n" + "LoggingContext: " + context + "\n" + "LogCallerFinder: " + callerFinder + "\n"; } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder);   }