org.springframework.osgi.io
Class OsgiBundleResourceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.osgi.io.OsgiBundleResourceTest
All Implemented Interfaces:
Test

public class OsgiBundleResourceTest
extends TestCase

Author:
Costin Leau

Constructor Summary
OsgiBundleResourceTest()
           
 
Method Summary
protected  void setUp()
           
 void testCreateRelativeString()
          Test method for OsgiBundleResource.createRelative(java.lang.String).
 void testDefaultPathWithinContext()
           
 void testEqualsObject()
          Test method for OsgiBundleResource.equals(java.lang.Object).
 void testFileWithEmptyCharsInTheNameBeingResolved()
           
 void testFileWithNormalCharsInTheNameBeingResolved()
           
 void testFileWithSpecialCharsInTheNameBeingResolved()
           
 void testGetBundle()
          Test method for OsgiBundleResource.getBundle().
 void testGetDescription()
          Test method for OsgiBundleResource.getDescription().
 void testGetFilename()
          Test method for OsgiBundleResource.getFilename().
 void testGetInputStream()
          Test method for OsgiBundleResource.getInputStream().
 void testGetPath()
          Test method for OsgiBundleResource.getPath().
 void testGetResourceFromBundle()
          Test method for OsgiBundleResource.getResourceFromBundleSpace(java.lang.String).
 void testGetResourceFromBundleClasspath()
          Test method for OsgiBundleResource.getResourceFromBundleClasspath(java.lang.String).
 void testGetURL()
          Test method for OsgiBundleResource.getURL().
 void testHashCode()
          Test method for OsgiBundleResource.hashCode().
 void testIsRelativePath()
          Test method for OsgiBundleResource.isRelativePath(java.lang.String).
 void testLastModified()
           
 void testNonBundleUrlWhichDoesNotExist()
           
 void testNonBundleUrlWhichExists()
           
 void testNonExistingFile()
           
 void testOsgiBundleResource()
          Test method for OsgiBundleResource.OsgiBundleResource(org.osgi.framework.Bundle, java.lang.String).
 void testPathOutsideContext()
           
 void testPathWithinBundleSpace()
           
 void testPathWithinClassSpace()
           
 void testPathWithinJarSpace()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsgiBundleResourceTest

public OsgiBundleResourceTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

testHashCode

public void testHashCode()
Test method for OsgiBundleResource.hashCode().


testOsgiBundleResource

public void testOsgiBundleResource()
Test method for OsgiBundleResource.OsgiBundleResource(org.osgi.framework.Bundle, java.lang.String).


testGetPath

public void testGetPath()
Test method for OsgiBundleResource.getPath().


testGetBundle

public void testGetBundle()
Test method for OsgiBundleResource.getBundle().


testGetInputStream

public void testGetInputStream()
                        throws Exception
Test method for OsgiBundleResource.getInputStream().

Throws:
Exception

testGetURL

public void testGetURL()
                throws Exception
Test method for OsgiBundleResource.getURL().

Throws:
Exception

testNonBundleUrlWhichExists

public void testNonBundleUrlWhichExists()
                                 throws Exception
Throws:
Exception

testNonBundleUrlWhichDoesNotExist

public void testNonBundleUrlWhichDoesNotExist()
                                       throws Exception
Throws:
Exception

testFileWithSpecialCharsInTheNameBeingResolved

public void testFileWithSpecialCharsInTheNameBeingResolved()
                                                    throws Exception
Throws:
Exception

testFileWithEmptyCharsInTheNameBeingResolved

public void testFileWithEmptyCharsInTheNameBeingResolved()
                                                  throws Exception
Throws:
Exception

testFileWithNormalCharsInTheNameBeingResolved

public void testFileWithNormalCharsInTheNameBeingResolved()
                                                   throws Exception
Throws:
Exception

testGetResourceFromBundle

public void testGetResourceFromBundle()
                               throws Exception
Test method for OsgiBundleResource.getResourceFromBundleSpace(java.lang.String).

Throws:
Exception

testGetResourceFromBundleClasspath

public void testGetResourceFromBundleClasspath()
                                        throws Exception
Test method for OsgiBundleResource.getResourceFromBundleClasspath(java.lang.String).

Throws:
Exception

testIsRelativePath

public void testIsRelativePath()
Test method for OsgiBundleResource.isRelativePath(java.lang.String).


testCreateRelativeString

public void testCreateRelativeString()
Test method for OsgiBundleResource.createRelative(java.lang.String).


testGetFilename

public void testGetFilename()
Test method for OsgiBundleResource.getFilename().


testGetDescription

public void testGetDescription()
Test method for OsgiBundleResource.getDescription().


testEqualsObject

public void testEqualsObject()
Test method for OsgiBundleResource.equals(java.lang.Object).


testDefaultPathWithinContext

public void testDefaultPathWithinContext()
                                  throws Exception
Throws:
Exception

testPathWithinBundleSpace

public void testPathWithinBundleSpace()
                               throws Exception
Throws:
Exception

testPathWithinClassSpace

public void testPathWithinClassSpace()
                              throws Exception
Throws:
Exception

testPathWithinJarSpace

public void testPathWithinJarSpace()
                            throws Exception
Throws:
Exception

testPathOutsideContext

public void testPathOutsideContext()
                            throws Exception
Throws:
Exception

testLastModified

public void testLastModified()
                      throws Exception
Throws:
Exception

testNonExistingFile

public void testNonExistingFile()
                         throws Exception
Throws:
Exception


Copyright © 2006-2011 Spring Framework. All Rights Reserved.