ruper2/src/test/core/org/krysalis/ruper/repository RepositoryTests.java,NONE,1.1
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper/repository
In directory sc8-pr-cvs1:/tmp/cvs-serv28832/src/test/core/org/krysalis/ruper/repository
Added Files:
RepositoryTests.java
Log Message:
We have src/java/test and src/test -- moved all to the later.
In truth the former might be better, but let's be consistent w/
all the other projects out there.
Fixed Nick's sanbox typo.
--- 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.ruper.repository;
import java.util.List;
import junit.framework.TestCase;
import org.krysalis.ruper.impl.ResourceUpdaterContext;
import org.krysalis.ruper.resource.ResourceGroup;
import org.krysalis.ruper.util.select.AllSelector;
import org.krysalis.version.util.debug.DebugUtils;
/**
* @author arb_jack
*/
public class RepositoryTests extends TestCase {
private RepositoryWrapper m_repo = null;
public RepositoryTests(String name) {
super(name);
}
public void setUp() throws Exception {
m_repo =
new RepositoryWrapper(
DefaultRepository.getLocalTestRepository(),
ResourceUpdaterContext.getTestContext());
}
//
// public void testListGroups1() throws Exception {
//
// List groups = m_repo.listGroups(AllSelector.getInstance());
//
// DebugUtils.dump(groups);
// }
//
// public void testListResources1() throws Exception {
// ResourceGroup testGroup = new ResourceGroup("junit");
//
// List resources =
// m_repo.listResources(testGroup, AllSelector.getInstance());
//
// DebugUtils.dump(resources);
// }
public void testListSpecifiers1() throws Exception {
ResourceGroup testGroup = new ResourceGroup("junit");
List resources =
m_repo.listSpecifiers(testGroup, AllSelector.getInstance());
DebugUtils.dump(resources);
}
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