Commit Graph

6332 Commits

Author SHA1 Message Date
Krzysztof Woyke 6733a4cf15 JAVA-3295: Fix pom properties in spring-web-modules 2021-03-25 13:16:01 +01:00
Krzysztof Woyke 7b6ba31847 JAVA-3295: Fix pom properties in spring-boot-modules 2021-03-25 13:12:01 +01:00
kwoyke 23503a0673 BAEL-4864: Fix traverseInOrderWithoutRecursion method (#10588)
Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-03-24 22:09:02 +01:00
Loredana Crusoveanu 9a580ea9fc Merge pull request #10586 from johnA1331/master
BAEL-33793 - add links to github-baeldung articles
2021-03-24 19:56:47 +02:00
johnA1331 efec79c933 Update README.md 2021-03-25 00:52:01 +08:00
johnA1331 dbd03af829 Update README.md 2021-03-25 00:49:53 +08:00
unknown 4bb429ef5b BAEL-4702 Refactoring 2021-03-24 17:24:52 +05:30
unknown d954c180e5 BAEL-4702 Added code snippet for System.lineSeparator() method 2021-03-24 17:22:44 +05:30
Krzysztof Woyke 6ef0632df2 JAVA-3295: Fix pom properties in persistence-modules 2021-03-24 12:32:33 +01:00
Krzysztof Woyke 5e3e710e84 JAVA-3295: Fix pom properties in testing-modules 2021-03-24 10:31:09 +01:00
Krzysztof Woyke df93a6b9e6 JAVA-3295: Use project.build.sourceEncoding and project.reporting.outputEncoding from the main pom.xml 2021-03-24 09:37:43 +01:00
Krzysztof Woyke 51b15d4370 JAVA-3295: Fix main pom.xml formatting 2021-03-24 09:19:46 +01:00
Eric Martin 880b810a1d Merge pull request #10577 from ashleyfrieze/BAEL-4583-Generic-array-streams
BAEL-4583-Generic-arrays-streams
2021-03-23 17:12:15 -05:00
Jonathan Cook f8e9839390 BAEL-4836 - Mocking Static Methods with Mockito (#10580)
* BAEL-4706 - Spring Boot with Spring Batch

* BAEL-3948 - Fix test(s) in spring-batch which leaves repository.sqlite
changed

* BAEL-4736 - Convert JSONArray to List of Object using camel-jackson

* BAEL-4756 - Mockito MockSettings

* BAEL-4756 - Mockito MockSettings - fix spelling

* BAEL-2674 - Upgrade the Okhttp article

* BAEL-4204 - Adding Interceptors in OkHTTP

* BAEL-4836 - Mocking Static Methods with Mockito

Co-authored-by: Jonathan Cook <jcook@sciops.esa.int>
2021-03-23 08:09:39 -07:00
Ashley Frieze 99bb67a413 BAEL-4583-Generic-arrays-streams 2021-03-23 09:17:57 +00:00
Jason 4c1b4723e0 BAEL-4810: Second Review Improvements. Fixed some pom warnings and dependencies. Removed incorrectly added Readme.md 2021-03-22 21:06:02 +05:30
Jason c5e0771e1d BAEL-4810: First Review Improvements. Added test cases and fixed some indentations 2021-03-22 21:06:02 +05:30
Jason a6b215d7a3 BAEL-4810 Spring Boot with JSP initial sample commit 2021-03-22 21:06:02 +05:30
Krzysztof Woyke b5a0a9835a JAVA-3595: Fix libraries-primitive's pom.xml 2021-03-21 23:14:29 +01:00
Krzysztof Woyke df68287728 JAVA-3595: Use jmh version defined in the parent pom.xml 2021-03-21 23:06:03 +01:00
Krzysztof Woyke f05b7b68c2 JAVA-3595: Upgrade jmh version in the main pom.xml 2021-03-21 22:44:21 +01:00
MeenaGawande ce9f112ed6 [BAEL-4208]java compiled classes contain dollar signs (#10573)
Updated Anonymous classes methods

Co-authored-by: MeenaGawande <MeenaGawande@users.noreply.github.com>
2021-03-21 18:43:22 +01:00
kwoyke a0a766c123 BAEL-4852: Add IN example (#10568)
Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-03-21 18:40:31 +01:00
mdabrowski-eu dd288575da BAEL-4789 Check if a database table exists (#10565)
* BAEL-4789 Check if a database table exists

* BAEL-4789 fix db credentials

* BAEL-4789 fix test method name
2021-03-21 18:38:10 +01:00
Amit Bhave ce2995c1cd BAEL-3636 Use spaces instead of tabs 2021-03-21 19:23:03 +05:30
Loredana Crusoveanu 45764829f7 Merge pull request #10574 from kwoyke/JAVA-4669
JAVA-4669: Code cleanup for UsingOptional
2021-03-21 15:44:44 +02:00
Amit Bhave 9efb7c68e6 BAEL-3636 Add sentinel dashboard dependency 2021-03-21 18:57:06 +05:30
Amit Bhave f7b8d67c0b Merge remote-tracking branch 'upstream/master' 2021-03-21 18:51:04 +05:30
hmdrzsharifi 3a0e5ecf68 bael-4828: add keystore and certificate files 2021-03-21 12:30:03 +03:30
hmdrzsharifi 86a8634c78 bael-4828: add main source 2021-03-21 12:29:38 +03:30
Anshul BANSAL 7078630760 BAEL-4790 - collection vs stream 2021-03-21 10:35:34 +02:00
Eric Martin 665184ffda Merge pull request #10556 from sk1418/maxSubArr
fix the initial maxSum and add test
2021-03-20 21:39:43 -05:00
Krzysztof Woyke 01e95b4df0 JAVA-4669: Code cleanup for UsingOptional 2021-03-20 20:43:49 +01:00
hmdrzsharifi 733ce474a5 Merge remote-tracking branch 'origin/master' 2021-03-20 19:35:45 +03:30
Hamid Reza Sharifi 9f508c34a7 Merge pull request #1 from eugenp/master
update
2021-03-20 19:34:01 +03:30
kwoyke ce2e455d58 JAVA-3594: Upgrade esapi dependency in the main pom.xml (#10572)
* JAVA-3594: Upgrade esapi version in the main pom.xml

* JAVA-3594: Remove overriden esapi.version from the core-java-jvm

* JAVA-3594: Use esapi.version property instead of the hardcoded version in spring-5-security

Co-authored-by: Krzysztof Woyke <krzysztof.woyke.sp@lhsystems.com>
2021-03-19 22:39:41 +05:30
kwoyke 224c569ac3 JAVA-4241: Upgrade Spring Boot to 2.4.3 (#10569)
* JAVA-4241: Upgrade Spring Boot to 2.4.3

* JAVA-4241: Fix CharEncodingCheckControllerUnitTest

* JAVA-4241: Upgrade Spring Framework to 5.3.4 in spring-testing

* JAVA-4241: Fix spring-data-commons version setup in spring-caching

* JAVA-4241: Upgrade jetty-reactive-httpclient in spring-5-reactive-client

* JAVA-4241: Disable failing test
2021-03-19 22:37:39 +05:30
Steven van Beelen af4e82b089 Update previous complete test endpoints
The test endpoints used to create an order, add a product, confirm the
order and ship it are not embracing the asynchronous approach of the
CommandGateway. Make sure that all commands are composed with one
another and return the completable future for Spring to resolve

#BAEL-4767
2021-03-19 11:54:20 +01:00
Steven van Beelen 2b351eda7a Rename API in line with adjusted approach
Change PlaceOrderCommand/OrderPlacedEvent to
CreateOrderCommand/OrderCreatedEvent. Placed suggests it is already
placed, meaning products cannot be changed. However with the new
OrderLine member and its operations it's no longer correct to state the
order placed upon creation. Furthermore, the OrderedProduct is no longer
 a single product, but contains several. Renaming this to Order is more
 in line with what this query model resembles

#BAEL-4767
2021-03-19 11:35:31 +01:00
Steven van Beelen 70189df008 Update http file for testing
Add additional operations to the order-api.http file to simplify testing

#BAEL-4767
2021-03-19 11:24:08 +01:00
Steven van Beelen 68276b8041 Allow all operations on the Controller
Add post mappings to allow single creation of an Order, influencing all
aspects of an Order

#BAEL-4767
2021-03-19 11:23:46 +01:00
Steven van Beelen b578c885e4 Add aggregate test cases
Add test cases to reach a 100% coverage of all message handling
functions of the OrderAggregate and OrderLine member. Added, upgrade to
JUnit 5

#BAEL-4767
2021-03-19 11:09:48 +01:00
Steven van Beelen 41d47f8aa6 Update Projection
Add event handlers to update the products map of the OrderedProduct
model

#BAEL-4767
2021-03-19 11:08:42 +01:00
Steven van Beelen 886368a4c3 Update Command Model
Adjust the OrderAggregate to contain an OrderLine aggregate member. The
OrderLine is added as soon as a Product is added through the
AddProductCommand. The OrderLine member is capable of handling the
increment and decrement product count commands, to increase/decrease the
 number of instances for that OrderLine. Decreasing the count below 1
 will publish the ProductRemovedEvent from within the OrderLine.
 Additional business validation is added to unsure a given Product isn't
  added twice (adding a second should go through increment) and that the
   products aren't adjusted as soon as the product is confirmed.

#BAEL-4767
2021-03-19 11:07:26 +01:00
Steven van Beelen ef1167b037 Update Exception API
- Introduce a DuplicateOrderLineException to signal whenever somebody
wants to add the same product twice instead of using the increment
command.
- Introduce OrderAlreadyConfirmedException to signal whenever the order
is confirmed, so that adding products and incrementing/decrementing
their count is not possible once the order has been confirmed

#BAEL-4767
2021-03-19 11:04:12 +01:00
Steven van Beelen 2b2aff5ceb Update Query API
Change the OrderedProduct model such that it contains a map of products
having the count as its value, instead of a single product.

#BAEL-4767
2021-03-19 11:01:19 +01:00
Steven van Beelen a9812052df Update Event API
- Adjust OrderPlacedEvent to only construct the order
- Introduce ProductAddedEvent to be able to add several products
to a order
- Introduce ProductCountIncrementedEvent to increase the number of
product instances for a given Order
- Introduce ProductCountDecrementedEvent to increase the number of
product instances for a given Order
- Introduce ProductRemovedEvent to signal whenever all the product count
 drops below 1

#BAEL-4767
2021-03-19 10:59:26 +01:00
Steven van Beelen 10c0f2302e Update Command API
- Adjust PlaceOrderCommand to only construct the order
- Introduce AddProductCommand to be able to add several products to an
order
- Introduce IncrementProductCountCommand to increase the number of
product instances for a given Order
- Introduce DecrementProductCountCommand to increase the number of
product instances for a given Order

#BAEL-4767
2021-03-19 10:57:51 +01:00
Steven van Beelen b585b6eb7b Update Axon version
Update Axon version to 4.4.7 (current most recent)

#BAEL-4767
2021-03-19 10:53:34 +01:00
psevestre d1a87c711b [BAEL-4849] Article code (#10566) 2021-03-18 12:15:04 -07:00