Update of /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/repository
In directory sc8-pr-cvs1:/tmp/cvs-serv30481/src/test/core/org/krysalis/ruper2/repository
Added Files:
RepositoryTests.java
Log Message:
Avoid clash with existing Ruper...
--- NEW FILE: RepositoryTests.java ---
/*
* Created on Aug 27, 2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.krysalis.ruper2.repository;
import junit.framework.TestCase;
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
import org.krysalis.ruper2.resource.ResourceGroup;
import org.krysalis.ruper2.util.select.AllSelector;
/**
* @author arb_jack
*/
public class RepositoryTests extends TestCase {
private RepositoryWrapper m_repo1 = null;
private RepositoryWrapper m_repo2 = null;
public RepositoryTests(String name) {
super(name);
}
public void setUp() throws Exception {
m_repo1 =
new RepositoryWrapper(
DefaultRepository.getLocalTestRepository(),
ResourceUpdaterContext.getTestContext());
m_repo2 =
new RepositoryWrapper(
MockRepository.getMockRepository(),
ResourceUpdaterContext.getTestContext());
}
public void testListGroups1() throws Exception {
assertNotNull(
"List Groups",
m_repo1.listGroups(AllSelector.getInstance()));
assertNotNull(
"List Groups",
m_repo2.listGroups(AllSelector.getInstance()));
}
public void testListResources1() throws Exception {
ResourceGroup testGroup = new ResourceGroup("junit");
assertNotNull(
"List Resources",
m_repo1.listResources(testGroup, AllSelector.getInstance()));
assertNotNull(
"List Resources",
m_repo2.listResources(testGroup, AllSelector.getInstance()));
}
public void testListSpecifiers1() throws Exception {
ResourceGroup testGroup = new ResourceGroup("junit");
assertNotNull(
"List Specifiers",
m_repo1.listSpecifiers(testGroup, AllSelector.getInstance()));
assertNotNull(
"List Specifiers",
m_repo2.listSpecifiers(testGroup, AllSelector.getInstance()));
}
public static void main(String[] args) {
junit.textui.TestRunner.run(RepositoryTests.class);
}
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.