File tree Expand file tree Collapse file tree
axon/src/test/java/com/baeldung/axon/commandmodel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import java .util .UUID ;
44
5+ import com .baeldung .axon .coreapi .exceptions .UnconfirmedOrderException ;
56import org .axonframework .test .aggregate .AggregateTestFixture ;
67import org .axonframework .test .aggregate .FixtureConfiguration ;
78import org .junit .*;
@@ -41,12 +42,12 @@ public void givenOrderPlacedEvent_whenConfirmOrderCommand_thenShouldPublishOrder
4142 }
4243
4344 @ Test
44- public void givenOrderPlacedEvent_whenShipOrderCommand_thenShouldThrowIllegalStateException () {
45+ public void givenOrderPlacedEvent_whenShipOrderCommand_thenShouldThrowUnconfirmedOrderException () {
4546 String orderId = UUID .randomUUID ().toString ();
4647 String product = "Deluxe Chair" ;
4748 fixture .given (new OrderPlacedEvent (orderId , product ))
4849 .when (new ShipOrderCommand (orderId ))
49- .expectException (IllegalStateException .class );
50+ .expectException (UnconfirmedOrderException .class );
5051 }
5152
5253 @ Test
You can’t perform that action at this time.
0 commit comments