@Test public void testBackendFactory() { LoggerBackend mockBackend = Mockito.mock(LoggerBackend.class); Mockito.when(mockBackendFactory.create("logger.name")).thenReturn(mockBackend); assertThat(platform.getBackendImpl("logger.name")).isEqualTo(mockBackend); }
@Override protected LoggerBackend getBackendImpl(String className) { return backendFactory.create(className); }
DefaultPlatform extends Platform { @Override protected LoggerBackend getBackendImpl(String className) { return backendFactory.create(className); } }
DefaultPlatform extends Platform { @Override protected LoggerBackend getBackendImpl(String className) { return backendFactory.create(className); } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder); }
DefaultPlatform extends Platform { @Override protected LoggerBackend getBackendImpl(String className) { return backendFactory.create(className); } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder);  }
DefaultPlatform extends Platform { @Override protected LoggerBackend getBackendImpl(String className) { return backendFactory.create(className); } DefaultPlatform();   DefaultPlatform(
      BackendFactory factory, LoggingContext context, Clock clock, LogCallerFinder callerFinder);   }