annotate unit tests so they can be run directly from eclipse junit4 runner

This commit is contained in:
Colin Delacroix
2017-01-09 14:39:00 +01:00
parent 305cd55f25
commit a17bf59b9d
3 changed files with 10 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ import org.dspace.servicemanager.DSpaceKernelInit;
import org.junit.AfterClass;
import static org.junit.Assert.fail;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.runner.RunWith;
import mockit.integration.junit4.JMockit;
/**
* DSpace Unit Tests need to initialize the DSpace Kernel / Service Mgr
@@ -33,6 +37,8 @@ import org.junit.BeforeClass;
* @see AbstractIntegrationTest
* @author Tim
*/
@Ignore
@RunWith(JMockit.class)
public class AbstractDSpaceTest
{
/** log4j category */

View File

@@ -8,6 +8,7 @@
package org.dspace;
import org.databene.contiperf.junit.ContiPerfRule;
import org.junit.Ignore;
import org.junit.Rule;
/**
@@ -20,6 +21,7 @@ import org.junit.Rule;
*
* @author pvillega
*/
@Ignore
public class AbstractIntegrationTest extends AbstractUnitTest
{

View File

@@ -21,6 +21,7 @@ import org.dspace.storage.rdbms.DatabaseUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import java.sql.SQLException;
@@ -38,6 +39,7 @@ import static org.junit.Assert.fail;
* @see AbstractDSpaceTest
* @author pvillega
*/
@Ignore
public class AbstractUnitTest extends AbstractDSpaceTest
{
/** log4j category */