public class ChampVAPayDAOTest
extends java.lang.Object
| Constructor and Description |
|---|
ChampVAPayDAOTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
tearDown() |
void |
testChampVAPayDAOInjection()
Test lazy instantiation of champVAPayDAO, as well as getAppProxyName()
and getSiteId() methods
|
void |
testVistaLinkHelperInjection()
Test lazy instantiation of vistaLinkHelper
|
void |
verifyGetCodeResultsCalls()
Verify that getCodeResult() calls
vistaLinkConnection.executeRPC(rpcRequest) once
rpcRequest.setRpcName("CHSRVLKP VALIDCD") once rpcRequest.clearParams()
once rpcResponse.getResults() once
|
void |
verifyGetCodeResultThrowsResourceExceptionWhenConnectionCloseFails()
Verify that getCodeResult() throws ChampVAException when connection.close
throws ResourceException
|
void |
verifyThatGetCodeResultRethrowsFoundationsExceptionWhenInstMapNotInit()
Verify that getCodeResult() throws ChampVAFoundationsException when
getConnection throws InstitutionMapNotInitializedException
|
void |
verifyThatGetCodeResultReturnsNullCallResultWhenGetConnectionFails()
Verify that getCodeResult() returns null CodeResult when getConnection()
returns null connection.
|
void |
verifyThatGetCodeResultReturnsValidCodeResult()
Verify that getCodeResult() returns valid CodeResult when RPC call result
is valid.
|
void |
verifyThatGetCodeResultThrowsChampVAExceptionWhenInstMapNotFound()
Verify that getCodeResult() throws ChampVAException when getConnection
throws InstitutionMappingNotFoundException
|
void |
verifyThatGetCodeResultThrowsChampVAExceptionWhenNamingException()
Verify that getCodeResult() throws ChampVAException when getConnection
throws NamingException
|
void |
verifyThatGetCodeResultThrowsChampVAExceptionWhenResourceException()
Verify that getCodeResult() throws ChampVAException when getConnection
throws ResourceException
|
void |
verifyThatGetCodeResultThrowsChampVAExceptionWhenVistaLinkFaultException()
Verify that getCodeResult() throws ChampVAException when executeRPC
throws VistaLinkFaultException
|
void |
verifyThatGetCodeResultThrowsChampVAResourceExceptionWhenRpcReturnsEmptyString()
Verify that getCodeResult() throws ChampVAResourceException when RPC call
returns empty String
|
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic final void testVistaLinkHelperInjection()
public final void testChampVAPayDAOInjection()
public void verifyGetCodeResultsCalls()
public void verifyThatGetCodeResultReturnsValidCodeResult()
public void verifyThatGetCodeResultReturnsNullCallResultWhenGetConnectionFails()
public void verifyThatGetCodeResultThrowsChampVAResourceExceptionWhenRpcReturnsEmptyString()
public void verifyThatGetCodeResultRethrowsFoundationsExceptionWhenInstMapNotInit()
public void verifyThatGetCodeResultThrowsChampVAExceptionWhenInstMapNotFound()
public void verifyThatGetCodeResultThrowsChampVAExceptionWhenNamingException()
public void verifyThatGetCodeResultThrowsChampVAExceptionWhenResourceException()
public void verifyThatGetCodeResultThrowsChampVAExceptionWhenVistaLinkFaultException()
public void verifyGetCodeResultThrowsResourceExceptionWhenConnectionCloseFails()