@Test public void create_returnCCTBackend_WhenBackendNameIsCCT() throws MalformedURLException { CctBackendFactory cctBackendFactory = new CctBackendFactory(); CreationContext creationContext = CreationContext.create( RuntimeEnvironment.application, wallClock, uptimeClock, CCTDestination.DESTINATION_NAME); CctTransportBackend backend = (CctTransportBackend) cctBackendFactory.create(creationContext); assertThat(backend.endPoint).isEqualTo(new URL(CCTDestination.DEFAULT_END_POINT)); }
@Override public TransportBackend create(CreationContext creationContext) { return new CctTransportBackend( creationContext.getApplicationContext(), creationContext.getWallClock(), creationContext.getMonotonicClock()); }
CctBackendFactory implements BackendFactory { @Override public TransportBackend create(CreationContext creationContext) { return new CctTransportBackend( creationContext.getApplicationContext(), creationContext.getWallClock(), creationContext.getMonotonicClock()); } }
CctBackendFactory implements BackendFactory { @Override public TransportBackend create(CreationContext creationContext) { return new CctTransportBackend( creationContext.getApplicationContext(), creationContext.getWallClock(), creationContext.getMonotonicClock()); }  }
CctBackendFactory implements BackendFactory { @Override public TransportBackend create(CreationContext creationContext) { return new CctTransportBackend( creationContext.getApplicationContext(), creationContext.getWallClock(), creationContext.getMonotonicClock()); }  @Override TransportBackend create(CreationContext creationContext); }
CctBackendFactory implements BackendFactory { @Override public TransportBackend create(CreationContext creationContext) { return new CctTransportBackend( creationContext.getApplicationContext(), creationContext.getWallClock(), creationContext.getMonotonicClock()); }  @Override TransportBackend create(CreationContext creationContext);  }