Removing bad unit test.

Shouldn't be testing jpox directly using internal JPOX classes.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@548824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-06-19 18:47:29 +00:00
parent 795337f573
commit a19f5c6e86
1 changed files with 0 additions and 15 deletions

View File

@ -24,7 +24,6 @@ import org.apache.commons.lang.StringUtils;
import org.apache.maven.archiva.database.AbstractArchivaDatabaseTestCase; import org.apache.maven.archiva.database.AbstractArchivaDatabaseTestCase;
import org.apache.maven.archiva.database.ProjectModelDAO; import org.apache.maven.archiva.database.ProjectModelDAO;
import org.apache.maven.archiva.model.ArchivaProjectModel; import org.apache.maven.archiva.model.ArchivaProjectModel;
import org.apache.maven.archiva.model.jpox.ArchivaProjectModelKey;
import org.apache.maven.archiva.repository.project.ProjectModelReader; import org.apache.maven.archiva.repository.project.ProjectModelReader;
import java.io.File; import java.io.File;
@ -34,7 +33,6 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import javax.jdo.JDOHelper; import javax.jdo.JDOHelper;
import javax.jdo.spi.JDOImplHelper;
/** /**
* JdoProjectModelDAOTest * JdoProjectModelDAOTest
@ -45,19 +43,6 @@ import javax.jdo.spi.JDOImplHelper;
public class JdoProjectModelDAOTest public class JdoProjectModelDAOTest
extends AbstractArchivaDatabaseTestCase extends AbstractArchivaDatabaseTestCase
{ {
public void testProjectModelKey()
{
Object o = JDOImplHelper.getInstance().newObjectIdInstance( ArchivaProjectModel.class, "foo:bar:1.0" );
assertNotNull( "Key should not be null.", o );
assertTrue( "Key should be an instance of " + ArchivaProjectModelKey.class.getName(),
( o instanceof ArchivaProjectModelKey ) );
ArchivaProjectModelKey key = (ArchivaProjectModelKey) o;
assertEquals( "foo", key.groupId );
assertEquals( "bar", key.artifactId );
assertEquals( "1.0", key.version );
}
public void testProjectModelCRUD() public void testProjectModelCRUD()
throws Exception throws Exception
{ {