|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.webvm.analyzer.classloader.AbstractResourceLinkTest
public abstract class AbstractResourceLinkTest
Tests the ResourceLink class.
| Field Summary | |
|---|---|
protected File |
file
The jar file or directory to test on. |
| Constructor Summary | |
|---|---|
AbstractResourceLinkTest()
|
|
| Method Summary | |
|---|---|
static void |
assertDistinctItems(Collection<?> c)
Asserts that given collection does not contain equal items. |
static void |
assertEqualsLinks(String[] expected,
List<ResourceLink> got)
Checks that given resource list contains required elements. |
static void |
assertEqualsSet(Collection<?> expectedSet,
Collection<?> gotSet)
Checks that given resource list contains required elements. |
protected abstract File |
getFile()
Returns the file to test on. |
protected ResourceLink |
getSun()
Returns link denoting the "com.sun" package. |
void |
setUp()
|
void |
testContentsWalking()
Tests package content walking. |
void |
testName()
Tests the ResourceLink.getName() method. |
void |
testRoot()
|
void |
testRootContents()
Tests contents of the root package. |
void |
testRootContentsGrouping()
Tests package name grouping. |
void |
testRootFullName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File file
| Constructor Detail |
|---|
public AbstractResourceLinkTest()
| Method Detail |
|---|
protected abstract File getFile()
public void setUp()
throws Exception
Exception
public void testRoot()
throws IOException
IOException - if i/o error occurs.
public void testName()
throws IOException
ResourceLink.getName() method.
IOException
public void testRootFullName()
throws IOException
IOException - if i/o error occurs.
public void testRootContents()
throws IOException
IOException - if i/o error occurs.
public void testContentsWalking()
throws IOException
IOException - if i/o error occurs.
protected final ResourceLink getSun()
throws IOException
IOException - if i/o error occurs.
public void testRootContentsGrouping()
throws IOException
IOException - if i/o error occurs.public static void assertDistinctItems(Collection<?> c)
c - the collection to check, not null
public static void assertEqualsLinks(String[] expected,
List<ResourceLink> got)
expected - the expected resource names.got - actual resource list. Must contain unique items.
public static void assertEqualsSet(Collection<?> expectedSet,
Collection<?> gotSet)
expectedSet - the expected resource names.gotSet - actual resource list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||