Commit Graph

22 Commits

Author SHA1 Message Date
Steven van Beelen 03306112bd BAEL-2435 Minor clean ups
-Add toString() function to messages/query-model
-Fix typo in exception
-Reorder event handlers in OrderedProductsEventHandler
-Replace usage of constants for local fields
-Add missing Aggregate test case
2018-12-28 15:58:41 +01:00
Steven van Beelen d5ad67a801 BAEL-2435 Add http resource
Add http resource to try out all the end points when running the
application in Intellij
2018-12-27 10:47:22 +01:00
Steven van Beelen 4c7303c293 BAEL-2435 Rename main file
Rename main file from MessagesRunner to OrderApplication
2018-12-27 10:46:45 +01:00
Steven van Beelen 769af6759e BAEL-2435 Introduce Query message logic
Introduce a FindAllOrderedProductsQuery query message, which is
published on the QueryGateway through the OrderRestEndpoint and handled
by the OrderedProductsEventHandler
2018-12-27 10:39:42 +01:00
Steven van Beelen 84b6dc1dbb BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. The Query Model would be better
 suited to revolve around the OrderedProducts rather than just printing
 out a line of text. To that end, add a OrderedProduct model with the
 OrderStatus, which is updated in the (renamed)
 OrderedProductsEventHandler upon all the events
2018-12-27 10:36:10 +01:00
Steven van Beelen eab6dfe0dd BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. Update the endpoint to reflect
the order focus i.o. the message focus. Additionally, add a POST
endpoint which would return an exception due to the state check in the
aggregate
2018-12-27 09:55:49 +01:00
Steven van Beelen bd0a1efe70 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. To that end the
MessagesAggregate should be replaced by an OrderAggregate. Additionally,
 add some decision making logic which denies the shipping of an order if
 it hasn't been confirmed yet. Adjust and update thee unit test
 accordingly
2018-12-27 09:51:08 +01:00
Steven van Beelen 2279246a42 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. First, update the commands and
events, adding an extra command/event to flesh out the domain some what
2018-12-27 09:39:40 +01:00
Steven van Beelen 557ce65552 BAEL-2435 Update main application
Update the MessagesRunner to be a spring boot application
2018-12-18 15:17:16 +01:00
Steven van Beelen fe30c44889 BAEL-2435 Add a GUI
-Add spring-boot-starter-web to support rest endpoints
-Add a rest endpoint to spoof some form of UI to publish a message, as
the old main will no longer publish the commands upon start up
2018-12-18 15:15:23 +01:00
Steven van Beelen e731b95ffb BAEL-2435 Rename unit test class
Rename unit test class to actual contain 'UnitTest' per the defined
standards
2018-12-18 15:01:29 +01:00
Steven van Beelen 2b07c0364d BAEL-2435 Change event message package
Change the package of the event messages to coreapi.events to signal
 that the events are part of the API you'd share with the outside
2018-12-18 14:56:23 +01:00
Steven van Beelen 96945027a1 BAEL-2435 Change command message package
Change the package of the command messages to coreapi.commands to signal
 that the commands are part of the API you'd share with the outside
2018-12-18 14:55:28 +01:00
Steven van Beelen aaf2ef2227 BAEL-2435 Change eventhandlers package
Change eventhandlers package to querymodel package per best practices
2018-12-18 14:54:07 +01:00
Steven van Beelen 00b297a4d0 BAEL-2435 Rename aggregate test
Rename aggregate test from MessagesAggregateIntegrationTest to
MessagesAggregateTest, as it's not an integration test but a regular
unit test
2018-12-18 14:53:43 +01:00
Steven van Beelen 3e3210a803 BAEL-2435 Change aggregate package
-Change aggregate package to commandmodel package per best practice
-Move the aggregate test to the same package for the test directory
2018-12-18 14:52:54 +01:00
Steven van Beelen 3553fb7506 BAEL-2435 Update commands and events
-Change TargetAggregateIdentifier import statement to the new location
-Add equals/hashcode as best practice for commands and events
-Add description
-Change parent to parent-boot-2 to leverage a spring boot start up
approach
2018-12-18 14:49:30 +01:00
Steven van Beelen 11b1112771 BAEL-2435 Update the event handler
Change the event handler to become a spring service, as this way Axon
will automatically pick it up as an event handling component
2018-12-18 14:48:10 +01:00
Steven van Beelen bd4881d478 BAEL-2435 Update Aggregate in regards to latest axon version
-Replace old import statements for the new locations
-Mark the aggregate as @Aggregate to make it autowired through the
spring boot starter
-Move all command handlers/decision making functions to the top of the
file
-Rename the command handler to `handle` as a best practice for command
handlers
-Use @EventSourcingHandler i.o. @EventHandler as a best practice for
event handlers in Aggregates, as those only are used to 'source' the
aggregate
-Update test case according to latest standards
2018-12-18 14:47:23 +01:00
amit2103 d268ffa5c9 [BAEL-7670] Added logback.xml in missing modules in src/main/resources 2018-08-05 18:40:49 +05:30
Doha2012 48cd6f876f Fix test names (#1853)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom

* cleanup pom

* add missing parent

* fix logging issue

* fix test names
2017-05-15 11:35:14 -05:00
Tomasz Lelek a419237226 BAEL-550 Axon framework
* BEEL-550 create axon module

* BEEL-550 proper naming

* BEEL-550 better example of message service

* BEEL-550 proper name of method

* BEEL-550 remove not needed comments

* BEEL-550 proper message

* BEEL-550 axon test scope test

* BEEL-550 tries to migrate to axon 3

* BEEL-550 migrate to vesrion 3 successfull
2017-03-08 10:45:51 +01:00