diff src/test/java/de/intevation/lada/BaseTest.java @ 1233:6ef05e62e3b3

Cleanup GeoTools dependencies, add missing library for tests.
author Tom Gottfried <tom@intevation.de>
date Tue, 13 Dec 2016 16:42:41 +0100
parents de7184e1370d
children 59bdb52bac1c
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/BaseTest.java	Tue Dec 13 16:21:12 2016 +0100
+++ b/src/test/java/de/intevation/lada/BaseTest.java	Tue Dec 13 16:42:41 2016 +0100
@@ -46,21 +46,21 @@
     public static WebArchive createDeployment() throws Exception {
         File[] files = Maven.resolver().loadPomFromFile("pom.xml")
             .importRuntimeAndTestDependencies().resolve().withTransitivity().asFile();
-        File antlr = null;
-        for (File f : files) {
-            logger.debug(f.getName());
-            if (f.getName().contains("antlr4")) {
-                antlr = f;
-            }
-        }
+
         WebArchive archive = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME)
             .addPackages(true, Package.getPackage("de.intevation.lada"))
             .addAsResource("log4j.properties", "log4j.properties")
             .addAsResource("shibboleth.properties", "shibboleth.properties")
             .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
-            .addAsLibrary(antlr)
             .addAsResource("META-INF/test-persistence.xml",
                 "META-INF/persistence.xml");
+        for (File f : files) {
+            if (f.getName().contains("antlr4")
+                || f.getName().contains("gt-opengis")
+            ) {
+                archive.addAsLibrary(f);
+            }
+        }
         return archive;
     }
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)