com.xenonsoft.bridgetown.test
Class TestMergeServiceAssembly

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

public class TestMergeServiceAssembly
extends junit.framework.TestCase

A unit test to validate the merge functionality algorithm of the service assembly implementation

Admittedly, this unit test could be a bit more watertight!

Version:
$Id: TestMergeServiceAssembly.java,v 1.3 2005/03/29 23:42:21 peter_pilgrim Exp $
Author:
Peter Pilgrim, Aug 20, 2004 11:36:51 AM

Field Summary
static java.lang.String CONFIG_FILE1
           
static java.lang.String CONFIG_FILE2
           
static java.lang.String CXT_ARTISTS
           
static java.lang.String CXT_JOURNALISM
           
static java.lang.String CXT_JUDGES
           
static java.lang.String SRV_AMERICAN_IDOL
           
static java.lang.String SRV_CRITICAL_JUDGE
           
static java.lang.String SRV_GUITARIST
           
static java.lang.String SRV_MY_PAPER
           
static java.lang.String SRV_PRETTY_JUDGE
           
 
Constructor Summary
TestMergeServiceAssembly(java.lang.String name)
          Constructor for TestMergeServiceAssembly.
 
Method Summary
static void checkContextAvailable(IServiceAssembler sai, java.lang.String contextName)
           
static void checkContextUnavailable(IServiceAssembler sai, java.lang.String contextName)
           
static void checkServiceAvailable(IServiceAssembler sai, java.lang.String contextName, java.lang.String serviceName)
           
static void checkServiceUnavailable(IServiceAssembler sai, java.lang.String contextName, java.lang.String serviceName)
           
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testMerge1OverridesMerge2True()
          Simple to merge test with first assembly configuration overriding the second configuration file
 void testMerge2OverridesMerge1True()
          Simple to merge test with second assembly configuration overriding the first configuration file
 void testMergeSimpleConfig1()
          Simple to merge test from configuration file ONE
 void testMergeSimpleConfig2()
          Simple to merge test from configuration file TWO
 
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_FILE1

public static final java.lang.String CONFIG_FILE1
See Also:
Constant Field Values

CONFIG_FILE2

public static final java.lang.String CONFIG_FILE2
See Also:
Constant Field Values

CXT_JOURNALISM

public static final java.lang.String CXT_JOURNALISM
See Also:
Constant Field Values

CXT_ARTISTS

public static final java.lang.String CXT_ARTISTS
See Also:
Constant Field Values

CXT_JUDGES

public static final java.lang.String CXT_JUDGES
See Also:
Constant Field Values

SRV_MY_PAPER

public static final java.lang.String SRV_MY_PAPER
See Also:
Constant Field Values

SRV_GUITARIST

public static final java.lang.String SRV_GUITARIST
See Also:
Constant Field Values

SRV_AMERICAN_IDOL

public static final java.lang.String SRV_AMERICAN_IDOL
See Also:
Constant Field Values

SRV_CRITICAL_JUDGE

public static final java.lang.String SRV_CRITICAL_JUDGE
See Also:
Constant Field Values

SRV_PRETTY_JUDGE

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

TestMergeServiceAssembly

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

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

checkContextUnavailable

public static void checkContextUnavailable(IServiceAssembler sai,
                                           java.lang.String contextName)

checkContextAvailable

public static void checkContextAvailable(IServiceAssembler sai,
                                         java.lang.String contextName)

checkServiceUnavailable

public static void checkServiceUnavailable(IServiceAssembler sai,
                                           java.lang.String contextName,
                                           java.lang.String serviceName)

checkServiceAvailable

public static void checkServiceAvailable(IServiceAssembler sai,
                                         java.lang.String contextName,
                                         java.lang.String serviceName)

testMergeSimpleConfig1

public void testMergeSimpleConfig1()
Simple to merge test from configuration file ONE


testMergeSimpleConfig2

public void testMergeSimpleConfig2()
Simple to merge test from configuration file TWO


testMerge2OverridesMerge1True

public void testMerge2OverridesMerge1True()
Simple to merge test with second assembly configuration overriding the first configuration file


testMerge1OverridesMerge2True

public void testMerge1OverridesMerge2True()
Simple to merge test with first assembly configuration overriding the second configuration file



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.