sk.baka.webvm.analyzer.classloader
Class JarResourceLinkTest

java.lang.Object
  extended by sk.baka.webvm.analyzer.classloader.AbstractResourceLinkTest
      extended by sk.baka.webvm.analyzer.classloader.JarResourceLinkTest

public class JarResourceLinkTest
extends AbstractResourceLinkTest

Runs the tests on a jar file.

Author:
Martin Vysny

Field Summary
 
Fields inherited from class sk.baka.webvm.analyzer.classloader.AbstractResourceLinkTest
file
 
Constructor Summary
JarResourceLinkTest()
           
 
Method Summary
protected  File getFile()
          Returns the file to test on.
 void testFullName()
           
 void testSearch()
          Tests the search functionality.
 void testSearchDoesNotReturnRoot()
          Check that search does not return the root container even if it matches
 
Methods inherited from class sk.baka.webvm.analyzer.classloader.AbstractResourceLinkTest
assertDistinctItems, assertEqualsLinks, assertEqualsSet, getSun, setUp, testContentsWalking, testName, testRoot, testRootContents, testRootContentsGrouping, testRootFullName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarResourceLinkTest

public JarResourceLinkTest()
Method Detail

getFile

protected File getFile()
Description copied from class: AbstractResourceLinkTest
Returns the file to test on.

Specified by:
getFile in class AbstractResourceLinkTest
Returns:
the file.

testSearch

public void testSearch()
                throws IOException
Tests the search functionality.

Throws:
IOException - on i/o error.

testSearchDoesNotReturnRoot

public void testSearchDoesNotReturnRoot()
                                 throws IOException
Check that search does not return the root container even if it matches

Throws:
IOException - on i/o error.

testFullName

public void testFullName()
                  throws IOException,
                         IOException
Throws:
IOException - if i/o error occurs.


Copyright © 2010 Baka. All Rights Reserved.