com.ail.coretest
Class TestUrlHandlers

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.ail.coretest.TestUrlHandlers
All Implemented Interfaces:
junit.framework.Test

public class TestUrlHandlers
extends junit.framework.TestCase

The core provides a number of URL handlers to simplify access to resources. The tests defined here test those handlers.

Version:
$Revision: 1.2 $

Constructor Summary
TestUrlHandlers(java.lang.String name)
          Constructs a test case with the given name.
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testAlfrescoUrlAccess()
          Test raw access to the alfresco repository.
 void testClasspathUrlHandlerBadUrl()
          This test checks that a URL pointing at an existing resource correctly opens that resource.
 void testClasspathUrlHandlerGoodUrl()
          This test checks that a URL pointing at an existing resource correctly opens that resource.
 void testProdctUrlAccess()
          Test raw access to the alfresco repository.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestUrlHandlers

public TestUrlHandlers(java.lang.String name)
Constructs a test case with the given name.

Method Detail

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)

testClasspathUrlHandlerGoodUrl

public void testClasspathUrlHandlerGoodUrl()
                                    throws java.lang.Exception
This test checks that a URL pointing at an existing resource correctly opens that resource.

Throws:
java.lang.Exception

testClasspathUrlHandlerBadUrl

public void testClasspathUrlHandlerBadUrl()
                                   throws java.lang.Exception
This test checks that a URL pointing at an existing resource correctly opens that resource.

Throws:
java.lang.Exception

testAlfrescoUrlAccess

public void testAlfrescoUrlAccess()
                           throws java.lang.Exception
Test raw access to the alfresco repository. This test uses the same method of access as the alfresco content URL handler uses.

Throws:
java.lang.Exception

testProdctUrlAccess

public void testProdctUrlAccess()
                         throws java.lang.Exception
Test raw access to the alfresco repository. This test uses the same method of access as the alfresco content URL handler uses.

Throws:
java.lang.Exception