com.xenonsoft.bridgetown.test
Class TestServiceAssembly

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.xenonsoft.bridgetown.test.TestServiceAssembly
All Implemented Interfaces:
junit.framework.Test

public class TestServiceAssembly
extends junit.framework.TestCase

A simple unit test the service assembly functionality. This is one of the first unit test ever to exist in the Bridgetown Framework, so therefore it is old.

Version:
$Id: TestServiceAssembly.java,v 1.2 2005/03/29 23:42:21 peter_pilgrim Exp $
Author:
Peter Pilgrim, 29-Jul-2004

Field Summary
static java.lang.String CONFIG_FILE
           
 
Constructor Summary
TestServiceAssembly(java.lang.String name)
          Constructor for TestServiceAssembly.
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testDispose()
          Verify execution of the disposal method
 void testGetAssemblyConfig()
          Verify the assembly configuration details are readable
 void testGetNameStringStringClass()
          Class under test for Object getName(String, String, Class)
 void testGetService()
          Verify the service bean can be retrieved by interface class name
 void testLoad()
          Verify the assembly factory loads the XML configuration and starts
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
See Also:
Constant Field Values
Constructor Detail

TestServiceAssembly

public TestServiceAssembly(java.lang.String name)
Constructor for TestServiceAssembly.

Parameters:
name -
Method Detail

main

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

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testLoad

public void testLoad()
Verify the assembly factory loads the XML configuration and starts


testGetNameStringStringClass

public void testGetNameStringStringClass()
Class under test for Object getName(String, String, Class)


testGetService

public void testGetService()
Verify the service bean can be retrieved by interface class name


testGetAssemblyConfig

public void testGetAssemblyConfig()
Verify the assembly configuration details are readable


testDispose

public void testDispose()
Verify execution of the disposal method



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.