userdata bean configuration
diff --git a/src/test/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandlerTest.java b/src/test/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandlerTest.java
index eff4638..059329c 100644
--- a/src/test/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandlerTest.java
+++ b/src/test/java/de/ids_mannheim/korap/resource/rewrite/RewriteHandlerTest.java
@@ -6,6 +6,7 @@
import de.ids_mannheim.korap.config.TestHelper;
import de.ids_mannheim.korap.query.serialize.QuerySerializer;
import de.ids_mannheim.korap.utils.JsonUtils;
+import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -21,7 +22,7 @@
TestHelper.setupAccount();
}
- // @AfterClass
+ @AfterClass
public static void close() {
TestHelper.dropUser();
BeanConfiguration.closeApplication();
@@ -30,7 +31,7 @@
@Test
public void initHandler() {
RewriteHandler handler = new RewriteHandler(null);
- handler.add(FoundryInject.class);
+ assert handler.add(FoundryInject.class);
}
@Test
diff --git a/src/test/resources/default-config.xml b/src/test/resources/default-config.xml
index b325134..ce2dc35 100644
--- a/src/test/resources/default-config.xml
+++ b/src/test/resources/default-config.xml
@@ -93,6 +93,16 @@
<property name="database" value="${jdbc.database}"/>
</bean>
+ <bean id="kustvakt_userdetails"
+ class="de.ids_mannheim.korap.handlers.UserDetailsDao">
+ <constructor-arg ref="kustvakt_db"/>
+ </bean>
+
+ <bean id="kustvakt_usersettings"
+ class="de.ids_mannheim.korap.handlers.UserSettingsDao">
+ <constructor-arg ref="kustvakt_db"/>
+ </bean>
+
<bean id="kustvakt_auditing"
class="de.ids_mannheim.korap.handlers.JDBCAuditing">
<constructor-arg ref="kustvakt_db"/>