com.xenonsoft.bridgetown.test
Class CrashTestServiceBeanImpl

java.lang.Object
  extended bycom.xenonsoft.bridgetown.test.CrashTestServiceBeanImpl
All Implemented Interfaces:
ICrashTestServiceBean, java.io.Serializable

public class CrashTestServiceBeanImpl
extends java.lang.Object
implements ICrashTestServiceBean, java.io.Serializable

Default implementation of the test service bean for unit tests

Version:
$Id: CrashTestServiceBeanImpl.java,v 1.4 2005/02/23 01:32:38 peter_pilgrim Exp $
Author:
Peter Pilgrim, Jul 30, 2004 2:36:34 PM
See Also:
Serialized Form

Constructor Summary
CrashTestServiceBeanImpl()
          Default constructor
 
Method Summary
 java.lang.String getDescription()
          Gets the description
 java.util.List getItemList()
          Gets the itemList
 java.util.Map getItemMap()
          Gets the itemMap
 java.util.Properties getItemProperties()
          Gets the itemProperties
 java.util.Set getItemSet()
          Gets the itemSet
 int getReallyHardStatus()
          Get the last called status value
 int getRelativeEasyStatus()
          Get the last called status value
 int getWiretestStatus()
          Get the last called status value
 int reallyHard(java.lang.String aText, int aInt, double aDouble)
          Implements / overrides fundamental
 int relativelyEasy(java.lang.String text1, java.lang.String text2)
          A method that is invoked by the assembly inversion-of-control framework for purpose of a unit test.
 void setDescription(java.lang.String description)
          Sets the description
 void setItemList(java.util.List dataList)
          Sets the itemList
 void setItemMap(java.util.Map dataMap)
          Sets the itemMap
 void setItemProperties(java.util.Properties itemProperties)
          Sets the itemProperties
 void setItemSet(java.util.Set itemSet)
          Sets the itemSet
 java.math.BigDecimal square(java.math.BigDecimal aDecimal)
          Calculate the square of a number
 java.lang.String toString()
          Gets debuggable string
 int wiretest(CrashTestDummy testDummy)
          Wire method test for the IoC framework
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrashTestServiceBeanImpl

public CrashTestServiceBeanImpl()
Default constructor

Method Detail

relativelyEasy

public int relativelyEasy(java.lang.String text1,
                          java.lang.String text2)
Description copied from interface: ICrashTestServiceBean
A method that is invoked by the assembly inversion-of-control framework for purpose of a unit test.

Specified by:
relativelyEasy in interface ICrashTestServiceBean
Parameters:
text1 -
text2 -
Returns:
See Also:
ICrashTestServiceBean.relativelyEasy(java.lang.String, java.lang.String)

reallyHard

public int reallyHard(java.lang.String aText,
                      int aInt,
                      double aDouble)
Implements / overrides fundamental

Specified by:
reallyHard in interface ICrashTestServiceBean
Parameters:
aText -
aInt -
aDouble -
Returns:
should always returns the number 1969
See Also:
com.xenonsoft.bridgetown.test.ICrashTestServiceBean#fundamental(java.lang.String, int, double, java.math.BigDecimal)

square

public java.math.BigDecimal square(java.math.BigDecimal aDecimal)
Description copied from interface: ICrashTestServiceBean
Calculate the square of a number

Specified by:
square in interface ICrashTestServiceBean
Parameters:
aDecimal -
Returns:
See Also:
ICrashTestServiceBean.square(java.math.BigDecimal)

wiretest

public int wiretest(CrashTestDummy testDummy)
Description copied from interface: ICrashTestServiceBean
Wire method test for the IoC framework

Specified by:
wiretest in interface ICrashTestServiceBean
Parameters:
testDummy -
Returns:
should always returns the number 1971
See Also:
ICrashTestServiceBean.wiretest(com.xenonsoft.bridgetown.test.CrashTestDummy)

getItemList

public java.util.List getItemList()
Gets the itemList

Specified by:
getItemList in interface ICrashTestServiceBean
Returns:
Returns the itemList.

setItemList

public void setItemList(java.util.List dataList)
Sets the itemList


getItemMap

public java.util.Map getItemMap()
Gets the itemMap

Specified by:
getItemMap in interface ICrashTestServiceBean
Returns:
Returns the itemMap.

setItemMap

public void setItemMap(java.util.Map dataMap)
Sets the itemMap


getItemProperties

public java.util.Properties getItemProperties()
Gets the itemProperties

Specified by:
getItemProperties in interface ICrashTestServiceBean
Returns:
Returns the itemProperties.

setItemProperties

public void setItemProperties(java.util.Properties itemProperties)
Sets the itemProperties

Parameters:
itemProperties - The itemProperties to set.

getItemSet

public java.util.Set getItemSet()
Gets the itemSet

Specified by:
getItemSet in interface ICrashTestServiceBean
Returns:
Returns the itemSet.

setItemSet

public void setItemSet(java.util.Set itemSet)
Sets the itemSet

Parameters:
itemSet - The itemSet to set.

getDescription

public java.lang.String getDescription()
Gets the description

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Sets the description

Parameters:
description - The description to set.

getReallyHardStatus

public int getReallyHardStatus()
Description copied from interface: ICrashTestServiceBean
Get the last called status value

Specified by:
getReallyHardStatus in interface ICrashTestServiceBean
Returns:
See Also:
ICrashTestServiceBean.getReallyHardStatus()

getRelativeEasyStatus

public int getRelativeEasyStatus()
Description copied from interface: ICrashTestServiceBean
Get the last called status value

Specified by:
getRelativeEasyStatus in interface ICrashTestServiceBean
Returns:
See Also:
ICrashTestServiceBean.getRelativeEasyStatus()

getWiretestStatus

public int getWiretestStatus()
Description copied from interface: ICrashTestServiceBean
Get the last called status value

Specified by:
getWiretestStatus in interface ICrashTestServiceBean
Returns:
See Also:
ICrashTestServiceBean.getWiretestStatus()

toString

public java.lang.String toString()
Gets debuggable string



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.