mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00

It seems that the reason for deprecation was objection to the *name*, since it is not strictly for DC anymore.
72 lines
1.7 KiB
Java
72 lines
1.7 KiB
Java
/**
|
|
* The contents of this file are subject to the license and copyright
|
|
* detailed in the LICENSE and NOTICE files at the root of the source
|
|
* tree and available online at
|
|
*
|
|
* http://www.dspace.org/license/
|
|
*/
|
|
package org.dspace.content;
|
|
|
|
import org.apache.log4j.Logger;
|
|
import org.dspace.AbstractUnitTest;
|
|
import static org.junit.Assert.*;
|
|
import org.junit.*;
|
|
|
|
/**
|
|
* Metadatum is a deprecated class with no methods (just a Data Object). This
|
|
* class does no real testing, is just here for the sake of coberture completeness
|
|
* and in case the class is refactored and requires some extra testing.
|
|
* @author pvillega
|
|
*/
|
|
public class MetadatumTest extends AbstractUnitTest
|
|
{
|
|
/** log4j category */
|
|
private final static Logger log = Logger.getLogger(MetadatumTest.class);
|
|
|
|
/**
|
|
* Object to use in the tests
|
|
*/
|
|
private Metadatum dcval;
|
|
|
|
|
|
/**
|
|
* This method will be run before every test as per @Before. It will
|
|
* initialize resources required for the tests.
|
|
*
|
|
* Other methods can be annotated with @Before here or in subclasses
|
|
* but no execution order is guaranteed
|
|
*/
|
|
@Before
|
|
@Override
|
|
public void init()
|
|
{
|
|
super.init();
|
|
dcval = new Metadatum();
|
|
}
|
|
|
|
/**
|
|
* This method will be run after every test as per @After. It will
|
|
* clean resources initialized by the @Before methods.
|
|
*
|
|
* Other methods can be annotated with @After here or in subclasses
|
|
* but no execution order is guaranteed
|
|
*/
|
|
@After
|
|
@Override
|
|
public void destroy()
|
|
{
|
|
dcval = null;
|
|
super.destroy();
|
|
}
|
|
|
|
/**
|
|
* Dummy test to avoid initialization errors
|
|
*/
|
|
@Test
|
|
public void testDummy()
|
|
{
|
|
assertTrue(true);
|
|
}
|
|
|
|
}
|