higher performance implementation for rewrite handler, test suite for rest functions, fast jersey junit tester, rewrite test suite
diff --git a/src/test/java/ClassLoaderTest.java b/src/test/java/ClassLoaderTest.java
new file mode 100644
index 0000000..4f9e455
--- /dev/null
+++ b/src/test/java/ClassLoaderTest.java
@@ -0,0 +1,41 @@
+import de.ids_mannheim.korap.config.BeanConfiguration;
+import de.ids_mannheim.korap.config.PluginHandler;
+import de.ids_mannheim.korap.interfaces.AuditingIface;
+import de.ids_mannheim.korap.interfaces.defaults.DefaultAuditing;
+import org.junit.Test;
+
+/**
+ * @author hanl
+ * @date 27/07/2015
+ */
+public class ClassLoaderTest {
+
+ @Test
+ public void testBeanConfigurationLoaderThrowsNoException() {
+ BeanConfiguration.loadClasspathContext("classpath-config.xml");
+ assert BeanConfiguration.getBeans() != null;
+ }
+
+ @Test
+ public void testDefaultCreationThrowsNoException() {
+ PluginHandler pl = new PluginHandler();
+ Object o = pl.getDefault(BeanConfiguration.KUSTVAKT_AUDITING);
+ assert o != null;
+ }
+
+ @Test(expected = RuntimeException.class)
+ public void testDefaultCreationThrowsException() {
+ BeanConfiguration.loadClasspathContext();
+ BeanConfiguration.getBeans().getAuthenticationManager();
+ }
+
+ @Test
+ public void testDefaultInterfaceMatchThrowsNoException() {
+ BeanConfiguration.loadClasspathContext();
+ AuditingIface iface = BeanConfiguration.getBeans()
+ .getAuditingProvider();
+ assert iface != null;
+ assert iface instanceof DefaultAuditing;
+ }
+
+}