Search in sources :

Example 11 with Environment

use of com.spotify.apollo.Environment in project apollo by spotify.

the class EnvironmentFactoryTest method verifyDummyConfig.

@Test
public void verifyDummyConfig() {
    final Environment environment = sut.build().create(SERVICE_NAME, routingContext);
    final Config config = environment.config();
    assertNotNull(config);
    assertEquals("propertyBiValue", config.getString("propertyBi"));
}
Also used : Config(com.typesafe.config.Config) Environment(com.spotify.apollo.Environment) Test(org.junit.Test)

Aggregations

Environment (com.spotify.apollo.Environment)11 Test (org.junit.Test)10 Service (com.spotify.apollo.core.Service)5 IOException (java.io.IOException)5 ByteString (okio.ByteString)5 RequestHandler (com.spotify.apollo.request.RequestHandler)4 AtomicReference (java.util.concurrent.atomic.AtomicReference)4 RoutingContext (com.spotify.apollo.environment.EnvironmentFactory.RoutingContext)2 AsyncHandler (com.spotify.apollo.route.AsyncHandler)2 Config (com.typesafe.config.Config)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 AppInit (com.spotify.apollo.AppInit)1 Request (com.spotify.apollo.Request)1 RequestMetadata (com.spotify.apollo.RequestMetadata)1 Response (com.spotify.apollo.Response)1 Status (com.spotify.apollo.Status)1 Services (com.spotify.apollo.core.Services)1 HttpService (com.spotify.apollo.httpservice.HttpService)1 LoadingException (com.spotify.apollo.httpservice.LoadingException)1 MetaModule (com.spotify.apollo.meta.MetaModule)1