org.springframework.osgi.web.extender.deployer.support
Class DefaultContextPathStrategyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.osgi.web.extender.deployer.support.DefaultContextPathStrategyTest
All Implemented Interfaces:
Test

public class DefaultContextPathStrategyTest
extends TestCase

Author:
Costin Leau

Constructor Summary
DefaultContextPathStrategyTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAnotherMultiPrefixRemoval()
           
 void testBundleHeader()
           
 void testBundleHeaderEncoding()
           
 void testBundleHeaderMispelled()
           
 void testBundleHeaderWithoutText()
           
 void testBundleWithFileLocation()
           
 void testBundleWithFileNameAndExtension()
           
 void testBundleWithFileNameButNoLeadingSlash()
           
 void testBundleWithFolderButNoLeadingSlash()
           
 void testBundleWithFolderLocation()
           
 void testBundleWithFolderLocationAndDots()
           
 void testBundleWithNullLocation()
           
 void testBundleWithSpecialCharactersAndExtensionFolderLocation()
           
 void testBundleWithSpecialCharactersLocation()
           
 void testEmptyWebContextPath()
           
 void testFallBackToBundleName()
           
 void testFallBackToIdentity()
           
 void testFallBackToSymbolicName()
           
 void testMultiPrefixRemoval()
           
 void testPathAlwaysStartsWithSlash()
           
 void testPrefixRemoval()
           
 void testRootPath()
           
 void testRootWebContextPath()
           
 void testWebContextPathContainsExtraWhiteSpaces()
           
 void testWebContextPathStartsWithSlash()
           
 void testWebContextWithNestedPath()
           
 void testWebContextWithNestedPathAndMultipleSlashes()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

DefaultContextPathStrategyTest

public DefaultContextPathStrategyTest()
Method Detail

setUp

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

tearDown

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

testRootPath

public void testRootPath()
                  throws Exception
Throws:
Exception

testPathAlwaysStartsWithSlash

public void testPathAlwaysStartsWithSlash()
                                   throws Exception
Throws:
Exception

testBundleWithNullLocation

public void testBundleWithNullLocation()
                                throws Exception
Throws:
Exception

testBundleWithFileLocation

public void testBundleWithFileLocation()
                                throws Exception
Throws:
Exception

testBundleWithFileNameAndExtension

public void testBundleWithFileNameAndExtension()
                                        throws Exception
Throws:
Exception

testBundleWithFileNameButNoLeadingSlash

public void testBundleWithFileNameButNoLeadingSlash()
                                             throws Exception
Throws:
Exception

testBundleWithFolderLocation

public void testBundleWithFolderLocation()
                                  throws Exception
Throws:
Exception

testBundleWithFolderLocationAndDots

public void testBundleWithFolderLocationAndDots()
                                         throws Exception
Throws:
Exception

testBundleWithFolderButNoLeadingSlash

public void testBundleWithFolderButNoLeadingSlash()
                                           throws Exception
Throws:
Exception

testBundleWithSpecialCharactersLocation

public void testBundleWithSpecialCharactersLocation()
                                             throws Exception
Throws:
Exception

testBundleWithSpecialCharactersAndExtensionFolderLocation

public void testBundleWithSpecialCharactersAndExtensionFolderLocation()
                                                               throws Exception
Throws:
Exception

testFallBackToBundleName

public void testFallBackToBundleName()
                              throws Exception
Throws:
Exception

testFallBackToSymbolicName

public void testFallBackToSymbolicName()
                                throws Exception
Throws:
Exception

testFallBackToIdentity

public void testFallBackToIdentity()
                            throws Exception
Throws:
Exception

testBundleHeader

public void testBundleHeader()
                      throws Exception
Throws:
Exception

testBundleHeaderWithoutText

public void testBundleHeaderWithoutText()
                                 throws Exception
Throws:
Exception

testBundleHeaderMispelled

public void testBundleHeaderMispelled()
                               throws Exception
Throws:
Exception

testBundleHeaderEncoding

public void testBundleHeaderEncoding()
                              throws Exception
Throws:
Exception

testPrefixRemoval

public void testPrefixRemoval()
                       throws Exception
Throws:
Exception

testMultiPrefixRemoval

public void testMultiPrefixRemoval()
                            throws Exception
Throws:
Exception

testAnotherMultiPrefixRemoval

public void testAnotherMultiPrefixRemoval()
                                   throws Exception
Throws:
Exception

testEmptyWebContextPath

public void testEmptyWebContextPath()
                             throws Exception
Throws:
Exception

testRootWebContextPath

public void testRootWebContextPath()
                            throws Exception
Throws:
Exception

testWebContextPathStartsWithSlash

public void testWebContextPathStartsWithSlash()
                                       throws Exception
Throws:
Exception

testWebContextPathContainsExtraWhiteSpaces

public void testWebContextPathContainsExtraWhiteSpaces()
                                                throws Exception
Throws:
Exception

testWebContextWithNestedPath

public void testWebContextWithNestedPath()
                                  throws Exception
Throws:
Exception

testWebContextWithNestedPathAndMultipleSlashes

public void testWebContextWithNestedPathAndMultipleSlashes()
                                                    throws Exception
Throws:
Exception


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