@PrepareForTest(value=javax.ws.rs.core.Response.class)
public class ChampVAResourceTest
extends java.lang.Object
| Constructor and Description |
|---|
ChampVAResourceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
The setUp method, to be executed before each test and initialize the
ChampVAResource under test.
|
void |
tearDown()
The tearDown method, to be executed after each test and dispose of the
ChampVAResource under test.
|
void |
testGetCodeResult()
Test method for
ChampVAResource.getCodeResult(java.lang.String). |
void |
testThatGetCodeResultCallsChampVAPayDAOGetCodeResultWithCodeSystemAndCode()
Test that getCodeResult(code) calls
champVAPayDAO.getCodeResult(codeSystem, code)
|
void |
testThatGetCodeResultCallsObjectMapperWriteValueAsStringWithCode()
Test that getCodeResult(code) calls
objectMapper.writeValueAsString(codeResult)
|
void |
testThatGetCodeResultCallsResponseStatusOnce()
Test that getCodeResult(code) calls Response.status(Response.Status.OK),
responseBuilder.entity(json), and responseBuilder.build() once.
|
void |
testThatGetCodeResultReturnsInternalServerErrorOnFoundationsException()
Test that getCodeResult(code) returns Internal Server Error when
champVAPayDAO.getCodeResult(codeSystem, code) raises a
ChampVAFoundationsException
|
void |
testThatGetCodeResultReturnsInternalServerErrorOnJsonProcessingException()
Test that getCodeResult(code) returns Internal Server Error when
champVAPayDAO.getCodeResult(codeSystem, code) raises a
ChampVAJsonProcessingException
|
void |
testThatGetCodeResultReturnsInternalServerErrorOnNamingException()
Test that getCodeResult(code) returns Internal Server Error when
champVAPayDAO.getCodeResult(codeSystem, code) raises a
ChampVANamingException
|
void |
testThatGetCodeResultReturnsInternalServerErrorOnResourceException()
Test that getCodeResult(code) returns Internal Server Error when
champVAPayDAO.getCodeResult(codeSystem, code) raises a
ChampVAResourceException
|
void |
testThatGetCodeResultReturnsInternalServerErrorOnVistaLinkFaultException()
Test that getCodeResult(code) returns Internal Server Error when
champVAPayDAO.getCodeResult(codeSystem, code) raises a
ChampVAVLFaultVAException
|
public void setUp()
throws java.lang.Exception
java.lang.Exception - - an Exception propagated during set up.public void tearDown()
throws java.lang.Exception
java.lang.Exception - - an Exception propagated during tear down.public void testThatGetCodeResultCallsChampVAPayDAOGetCodeResultWithCodeSystemAndCode()
public void testThatGetCodeResultCallsObjectMapperWriteValueAsStringWithCode()
public void testThatGetCodeResultCallsResponseStatusOnce()
public void testGetCodeResult()
ChampVAResource.getCodeResult(java.lang.String).public void testThatGetCodeResultReturnsInternalServerErrorOnVistaLinkFaultException()
public void testThatGetCodeResultReturnsInternalServerErrorOnFoundationsException()
public void testThatGetCodeResultReturnsInternalServerErrorOnNamingException()
public void testThatGetCodeResultReturnsInternalServerErrorOnResourceException()
public void testThatGetCodeResultReturnsInternalServerErrorOnJsonProcessingException()