mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
annotate unit tests so they can be run directly from eclipse junit4 runner
This commit is contained in:
@@ -19,6 +19,10 @@ import org.dspace.servicemanager.DSpaceKernelInit;
|
|||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
import org.junit.BeforeClass;
|
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
|
* DSpace Unit Tests need to initialize the DSpace Kernel / Service Mgr
|
||||||
@@ -33,6 +37,8 @@ import org.junit.BeforeClass;
|
|||||||
* @see AbstractIntegrationTest
|
* @see AbstractIntegrationTest
|
||||||
* @author Tim
|
* @author Tim
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
|
@RunWith(JMockit.class)
|
||||||
public class AbstractDSpaceTest
|
public class AbstractDSpaceTest
|
||||||
{
|
{
|
||||||
/** log4j category */
|
/** log4j category */
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
package org.dspace;
|
package org.dspace;
|
||||||
|
|
||||||
import org.databene.contiperf.junit.ContiPerfRule;
|
import org.databene.contiperf.junit.ContiPerfRule;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -20,6 +21,7 @@ import org.junit.Rule;
|
|||||||
*
|
*
|
||||||
* @author pvillega
|
* @author pvillega
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
public class AbstractIntegrationTest extends AbstractUnitTest
|
public class AbstractIntegrationTest extends AbstractUnitTest
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@ import org.dspace.storage.rdbms.DatabaseUtils;
|
|||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
@@ -38,6 +39,7 @@ import static org.junit.Assert.fail;
|
|||||||
* @see AbstractDSpaceTest
|
* @see AbstractDSpaceTest
|
||||||
* @author pvillega
|
* @author pvillega
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
public class AbstractUnitTest extends AbstractDSpaceTest
|
public class AbstractUnitTest extends AbstractDSpaceTest
|
||||||
{
|
{
|
||||||
/** log4j category */
|
/** log4j category */
|
||||||
|
Reference in New Issue
Block a user