Create new AbstractDSpaceTest to initialize Kernel separate from Database. Some tests ONLY need the Kernel for configs, and not the full DB.

This commit is contained in:
Tim Donohue
2015-10-15 13:24:53 -05:00
parent 44a6baa0e8
commit ed25cc0afe
11 changed files with 152 additions and 150 deletions

View File

@@ -8,7 +8,6 @@
package org.dspace.content;
import java.util.Locale;
import org.dspace.AbstractUnitTest;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -20,7 +19,7 @@ import static org.hamcrest.CoreMatchers.*;
* Tests DCLanguageTest class
* @author pvillega
*/
public class DCLanguageTest extends AbstractUnitTest
public class DCLanguageTest
{
/**
@@ -37,10 +36,8 @@ public class DCLanguageTest extends AbstractUnitTest
* but no execution order is guaranteed
*/
@Before
@Override
public void init()
{
super.init();
dc = new DCLanguage("");
}
@@ -52,11 +49,9 @@ public class DCLanguageTest extends AbstractUnitTest
* but no execution order is guaranteed
*/
@After
@Override
public void destroy()
{
dc = null;
super.destroy();
}
/**