Skip to content

Commit

Permalink
Add local configuration to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld committed Jun 3, 2015
1 parent 8f3b241 commit 9ea5fe5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import io.gravitee.gateway.platforms.jetty.servlet.ApiServlet;
import org.junit.*;

import java.net.URL;

/**
* @author David BRASSELY (brasseld at gmail.com)
*/
Expand All @@ -28,7 +30,9 @@ public void setUp() throws Exception {
}

private PlatformContext prepareContext() {
Registry registry = new FileRegistry();
URL url = JettyEmbeddedContainerTest.class.getResource("/conf/test01");

Registry registry = new FileRegistry(url.getPath());
Reactor reactor = new DefaultReactor();

return new JettyPlatformContext(registry, reactor);
Expand Down

0 comments on commit 9ea5fe5

Please sign in to comment.