org.ujac.util.io.test
Class ClassPathResourceLoaderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ujac.util.io.test.ClassPathResourceLoaderTest
All Implemented Interfaces:
junit.framework.Test

public class ClassPathResourceLoaderTest
extends junit.framework.TestCase

Name: ClassPathResourceLoaderTest
Description: Test cases for the ClassPathResourceLoader class.

Author:
lauerc

Constructor Summary
ClassPathResourceLoaderTest()
           
 
Method Summary
static void main(String[] args)
          Runs all test cases.
protected  void setUp()
           
 void testLoadResource()
          Tests loadResource method.
 void testLoadResourcePrefix()
          Tests loadResource method with given prefix.
 void testResourceExists()
          Tests resourceExists method.
 void testResourceExistsPrefix()
          Tests resourceExists method with given prefix.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassPathResourceLoaderTest

public ClassPathResourceLoaderTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

testResourceExists

public void testResourceExists()
Tests resourceExists method.


testLoadResource

public void testLoadResource()
                      throws IOException
Tests loadResource method.

Throws:
IOException - In case the resource could not be loaded.

testResourceExistsPrefix

public void testResourceExistsPrefix()
Tests resourceExists method with given prefix.


testLoadResourcePrefix

public void testLoadResourcePrefix()
                            throws IOException
Tests loadResource method with given prefix.

Throws:
IOException - In case the resource could not be loaded.

main

public static void main(String[] args)
Runs all test cases.

Parameters:
args - The command line arguments.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.