Skip to content

Commit 94b22a0

Browse files
⬆️ deps: upgrade Axon Framework to version 4.12.1
1 parent a4caf25 commit 94b22a0

4 files changed

Lines changed: 3 additions & 8 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</scm>
2929
<properties>
3030
<assertj.version>3.27.3</assertj.version>
31-
<axon.version>4.11.3</axon.version>
31+
<axon.version>4.12.1</axon.version>
3232
<axoniq-console.version>1.9.3</axoniq-console.version>
3333
<java.version>23</java.version>
3434
<spring-doc.version>2.8.5</spring-doc.version>

src/test/java/com/dddheroes/heroesofddd/TestAxonServerConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
import org.junit.jupiter.api.*;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.test.context.SpringBootTest;
11-
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
1211
import org.springframework.context.annotation.Import;
13-
import org.testcontainers.junit.jupiter.Container;
12+
import org.springframework.test.context.ActiveProfiles;
1413

1514
import java.time.Duration;
1615

@@ -19,6 +18,7 @@
1918

2019
@Import(TestcontainersConfiguration.class)
2120
@SpringBootTest
21+
@ActiveProfiles("axonserver")
2222
class TestAxonServerConnection {
2323

2424
@Autowired

src/test/java/com/dddheroes/heroesofddd/creaturerecruitment/write/recruitcreature/RecruitCreatureRequiresResourcesTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ void givenInsufficientResources_whenRecruitingCreature_thenNoCreatureRecruitedEv
116116

117117
// then
118118
assertThatThrownBy(() -> executePlayerCommand(recruitCommand))
119-
.cause()
120119
.satisfies(e -> assertThat(e).hasMessageContaining("Cannot withdraw more than deposited resources"));
121120
eventStoreAssertions.assertEventNotStored(dwellingId, CreatureRecruited.class);
122121
eventStoreAssertions.assertEventNotStored(dwellingId, ResourcesWithdrawn.class);

src/test/java/com/dddheroes/heroesofddd/resourcespool/write/withdraw/PaidCommandInterceptorTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ void givenSufficientResources_whenPaidCommandFailed_thenResourcesNotWithdrawn()
9494
// when
9595
var paidCommand = TestPaidCommand.failing(COMMAND_COST);
9696
assertThatThrownBy(() -> executePlayerCommand(paidCommand))
97-
.cause()
9897
.satisfies(e -> assertThat(e).hasMessageContaining(
9998
"TestPaidCommand failed! Resources withdrawal should be rolled back"));
10099

@@ -115,7 +114,6 @@ void givenInsufficientResources_whenExecutingPaidCommand_thenResourcesNotWithdre
115114

116115
// then
117116
assertThatThrownBy(() -> executePlayerCommand(paidCommand))
118-
.cause()
119117
.satisfies(e -> assertThat(e).hasMessageContaining("Cannot withdraw more than deposited resources"));
120118
eventStoreAssertions.assertEventNotStored(resourcesPoolId, ResourcesWithdrawn.class);
121119
eventStoreAssertions.assertNoEventsStored(paidCommand.identifier);
@@ -133,7 +131,6 @@ void givenMissingResource_whenExecutingPaidCommand_thenCommandFails() {
133131

134132
// then
135133
assertThatThrownBy(() -> executePlayerCommand(paidCommand))
136-
.cause()
137134
.satisfies(e -> assertThat(e).hasMessageContaining("Cannot withdraw more than deposited resources"));
138135
eventStoreAssertions.assertEventNotStored(resourcesPoolId, ResourcesWithdrawn.class);
139136
eventStoreAssertions.assertNoEventsStored(paidCommand.identifier);
@@ -162,7 +159,6 @@ void givenNoResources_whenExecutingPaidCommand_thenResourcesNotWithdrewAndComman
162159

163160
// then
164161
assertThatThrownBy(() -> executePlayerCommand(paidCommand))
165-
.cause()
166162
.satisfies(e -> assertThat(e).hasMessageContaining("Cannot withdraw more than deposited resources"));
167163
eventStoreAssertions.assertEventNotStored(resourcesPoolId, ResourcesWithdrawn.class);
168164
eventStoreAssertions.assertNoEventsStored(paidCommand.identifier);

0 commit comments

Comments
 (0)