@@ -0,0 +1,1583 @@
+package io.dropwizard.testing.junit;%0A%0Aimport com.google.common.collect.ImmutableMap;%0Aimport com.sun.jersey.api.client.Client;%0Aimport io.dropwizard.Application;%0Aimport io.dropwizard.Configuration;%0Aimport io.dropwizard.setup.Bootstrap;%0Aimport io.dropwizard.setup.Environment;%0Aimport org.junit.Assert;%0Aimport org.junit.ClassRule;%0Aimport org.junit.Test;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0Aimport java.util.Map;%0A%0Apublic class DropwizardAppRuleWithoutConfigTest %7B%0A%0A    @ClassRule%0A    public static final DropwizardAppRule%3CConfiguration%3E RULE = new DropwizardAppRule%3C%3E(TestApplication.class, null);%0A%0A    Client client = new Client();%0A%0A    @Test%0A    public void runWithoutConfigFile() %7B%0A        Map response = client.resource(%22http://localhost:%22 + RULE.getLocalPort() + %22/test%22).get(Map.class);%0A        Assert.assertEquals(ImmutableMap.of(%22color%22, %22orange%22), response);%0A    %7D%0A%0A    static class TestApplication extends Application%3CConfiguration%3E %7B%0A        @Override%0A        public void initialize(Bootstrap%3CConfiguration%3E bootstrap) %7B%0A        %7D%0A%0A        @Override%0A        public void run(Configuration configuration, Environment environment) throws Exception %7B%0A            environment.jersey().register(new TestResource());%0A        %7D%0A    %7D%0A%0A    @Path(%22test%22)%0A    @Produces(MediaType.APPLICATION_JSON)%0A    public static class TestResource %7B%0A        @GET%0A        public Response get() %7B%0A            return Response.ok(ImmutableMap.of(%22color%22, %22orange%22)).build();%0A        %7D%0A    %7D%0A%7D%0A

Test for DropwizardAppRule with no (null) configPath