configs update
diff --git a/src/test/java/CollectionRewriteTest.java b/src/test/java/CollectionRewriteTest.java
index d115455..2db2838 100644
--- a/src/test/java/CollectionRewriteTest.java
+++ b/src/test/java/CollectionRewriteTest.java
@@ -27,7 +27,7 @@
@BeforeClass
public static void init() {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
config = BeanConfiguration.getBeans().getConfiguration();
}
diff --git a/src/test/java/de/ids_mannheim/korap/config/ClassLoaderTest.java b/src/test/java/de/ids_mannheim/korap/config/ClassLoaderTest.java
index 3c18c93..edee50d 100644
--- a/src/test/java/de/ids_mannheim/korap/config/ClassLoaderTest.java
+++ b/src/test/java/de/ids_mannheim/korap/config/ClassLoaderTest.java
@@ -20,7 +20,7 @@
@Test
public void testBeanConfigurationLoaderThrowsNoException() {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
assert BeanConfiguration.hasContext();
}
diff --git a/src/test/java/de/ids_mannheim/korap/config/ConfigTest.java b/src/test/java/de/ids_mannheim/korap/config/ConfigTest.java
index b86699c..8703687 100644
--- a/src/test/java/de/ids_mannheim/korap/config/ConfigTest.java
+++ b/src/test/java/de/ids_mannheim/korap/config/ConfigTest.java
@@ -21,7 +21,7 @@
@Test
public void create() {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
}
@Test
@@ -50,20 +50,20 @@
BeanConfiguration.getBeans().getConfiguration()
.getDefault_token());
Assert.assertEquals("token expiration does not match",
- TimeUtils.convertTimeToSeconds("230D"),
+ TimeUtils.convertTimeToSeconds("1D"),
BeanConfiguration.getBeans().getConfiguration()
.getLongTokenTTL());
}
@Test(expected = KustvaktException.class)
public void testBeanOverrideInjection() throws KustvaktException {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
BeanConfiguration.getBeans().getConfiguration().setPropertiesAsStream(
ConfigTest.class.getClassLoader()
.getResourceAsStream("kustvakt.conf"));
- String v = "testmail@ids-mannheim.de";
+ String v = "testmail_&234@ids-mannheim.de";
BeanConfiguration.getBeans().getEncryption().validateEmail(v);
}
}
diff --git a/src/test/java/de/ids_mannheim/korap/web/service/OAuth2EndpointTest.java b/src/test/java/de/ids_mannheim/korap/web/service/OAuth2EndpointTest.java
index 1d2f68a..0afd8ee 100644
--- a/src/test/java/de/ids_mannheim/korap/web/service/OAuth2EndpointTest.java
+++ b/src/test/java/de/ids_mannheim/korap/web/service/OAuth2EndpointTest.java
@@ -27,7 +27,7 @@
@BeforeClass
public static void configure() {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
setPackages("de.ids_mannheim.korap.web.service",
"de.ids_mannheim.korap.web.filter",
"de.ids_mannheim.korap.web.utils");
diff --git a/src/test/java/de/ids_mannheim/korap/web/service/OAuth2HandlerTest.java b/src/test/java/de/ids_mannheim/korap/web/service/OAuth2HandlerTest.java
index f0411f7..f0d3d2a 100644
--- a/src/test/java/de/ids_mannheim/korap/web/service/OAuth2HandlerTest.java
+++ b/src/test/java/de/ids_mannheim/korap/web/service/OAuth2HandlerTest.java
@@ -29,7 +29,7 @@
@BeforeClass
public static void setup() throws KustvaktException {
- BeanConfiguration.loadClasspathContext("test-config.xml");
+ BeanConfiguration.loadClasspathContext("default-config.xml");
handler = new OAuth2Handler(
BeanConfiguration.getBeans().getPersistenceClient());
crypto = BeanConfiguration.getBeans().getEncryption();