public class PendingOrderMapperTest extends Object
PendingOrderMapper works as expected.| Constructor and Description |
|---|
PendingOrderMapperTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
canCheckIfOrderWithIdIsKnown()
The cut allows to be checked for a
OrderEventListener with a given id to be present. |
void |
queriingForUnknownPendingOrderIdsShouldResultInAnException()
When the cut is queried for the
OrderEventListener of an unknown order id, an exception is thrown. |
void |
removingAnUnknownIdShouldResultInAnException()
When an
OrderEventListener with an unknown id is removed from the cut, an exception should be thrown. |
void |
setUpCut()
Sets up the initial state of the
PendingOrderMapper. |
void |
shouldBeAbleToRemoveMappings()
It should be possible to remove order id to
OrderEventListener mappings from the cut. |
void |
shouldStoreOrderEventListenersAndMakeThemQueriableByTheirOrderId()
The cut should store
OrderEventListener and map them to the ids of orders. |
public void setUpCut()
PendingOrderMapper.public void shouldStoreOrderEventListenersAndMakeThemQueriableByTheirOrderId()
OrderEventListener and map them to the ids of orders.public void queriingForUnknownPendingOrderIdsShouldResultInAnException()
OrderEventListener of an unknown order id, an exception is thrown.public void canCheckIfOrderWithIdIsKnown()
OrderEventListener with a given id to be present.public void shouldBeAbleToRemoveMappings()
OrderEventListener mappings from the cut.public void removingAnUnknownIdShouldResultInAnException()
OrderEventListener with an unknown id is removed from the cut, an exception should be thrown.Copyright © 2016. All rights reserved.