Formatted project
Change-Id: I6993ddfab02e06541b4138040280a4777c719562
diff --git a/full/src/test/java/de/ids_mannheim/korap/config/SpringJerseyTest.java b/full/src/test/java/de/ids_mannheim/korap/config/SpringJerseyTest.java
index 1fca983..a1baccb 100644
--- a/full/src/test/java/de/ids_mannheim/korap/config/SpringJerseyTest.java
+++ b/full/src/test/java/de/ids_mannheim/korap/config/SpringJerseyTest.java
@@ -28,16 +28,19 @@
@Autowired
protected GenericApplicationContext applicationContext;
- public static String[] classPackages = new String[]{"de.ids_mannheim.korap.web", "de.ids_mannheim.korap.core.web", "de.ids_mannheim.korap.test", "com.fasterxml.jackson.jaxrs.json"};
+ public static String[] classPackages = new String[] {
+ "de.ids_mannheim.korap.web", "de.ids_mannheim.korap.core.web",
+ "de.ids_mannheim.korap.test", "com.fasterxml.jackson.jaxrs.json" };
@Override
- protected TestContainerFactory getTestContainerFactory() throws TestContainerException {
+ protected TestContainerFactory getTestContainerFactory ()
+ throws TestContainerException {
return new GrizzlyWebTestContainerFactory();
}
@BeforeEach
@Override
- public void setUp() throws Exception {
+ public void setUp () throws Exception {
GenericWebApplicationContext genericContext = new GenericWebApplicationContext();
genericContext.setParent(this.applicationContext);
genericContext.setClassLoader(this.applicationContext.getClassLoader());
@@ -46,7 +49,11 @@
}
@Override
- protected DeploymentContext configureDeployment() {
- return ServletDeploymentContext.forServlet(new ServletContainer(new ResourceConfig().packages(classPackages))).addListener(StaticContextLoaderListener.class).contextParam("adminToken", "secret").build();
+ protected DeploymentContext configureDeployment () {
+ return ServletDeploymentContext
+ .forServlet(new ServletContainer(
+ new ResourceConfig().packages(classPackages)))
+ .addListener(StaticContextLoaderListener.class)
+ .contextParam("adminToken", "secret").build();
}
}