Small fixes
This commit is contained in:
1 parent
1e9d7e69aa
commit
51d4b5d603
2 files changed
+4
-6
No files matched your search
@@ -3,8 +3,6 @@ package edu.allegro.exercise;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
|
||||
import edu.allegro.exercise.handlers.GetUserRepoInfoService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import ratpack.error.ClientErrorHandler;
|
||||
import ratpack.error.ServerErrorHandler;
|
||||
import ratpack.error.internal.DefaultProductionErrorHandler;
|
||||
@@ -14,8 +12,6 @@ import ratpack.server.RatpackServer;
|
||||
import ratpack.server.ServerConfig;
|
||||
|
||||
public class Server {
|
||||
private static final Logger log = LoggerFactory.getLogger(Server.class);
|
||||
|
||||
static void start(ServerConfig config, GetUserRepoInfoService userRepoInfo) throws Exception {
|
||||
RatpackServer.start(
|
||||
ratpackServerSpec -> ratpackServerSpec
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package edu.allegro.exercise.handlers;
|
||||
|
||||
import com.github.tomakehurst.wiremock.junit.WireMockRule;
|
||||
import io.netty.handler.codec.http.HttpResponseStatus;
|
||||
import org.junit.*;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import ratpack.http.client.ReceivedResponse;
|
||||
import ratpack.server.RatpackServer;
|
||||
import ratpack.server.ServerConfigBuilder;
|
||||
|
||||
Reference in new issue
Block a user