Test subscription to events produced by EventReactor#1614
Merged
alexander-yevsyukov merged 23 commits intomasterfrom Nov 14, 2025
Merged
Test subscription to events produced by EventReactor#1614alexander-yevsyukov merged 23 commits intomasterfrom
EventReactor#1614alexander-yevsyukov merged 23 commits intomasterfrom
Conversation
Also: * Avoid inapplicable annotations.
There was a problem hiding this comment.
Pull Request Overview
This PR enhances event generation capabilities by adding support for event reactors in the test infrastructure and improving documentation. It introduces a new test case demonstrating event subscription from EventReactor components, along with supporting test fixtures including a new aggregate, reaction, and commands/events for password management.
Key changes:
- Added test infrastructure for password change handling with
UserAccountAggregateandPasswordChangeReaction - Introduced new test case
subscribe to events produced by 'EventReactor' - Refactored test organization by migrating classes to appropriate packages
- Updated Gradle wrapper to version 9.2.0
Reviewed Changes
Copilot reviewed 26 out of 27 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| version.gradle.kts | Bumped snapshot version to 352 |
| pom.xml | Updated version reference to match new snapshot |
| gradle/wrapper/gradle-wrapper.properties | Upgraded Gradle wrapper to 9.2.0 |
| server/src/testFixtures/proto/spine/test/client/users/*.proto | Added password field and new events/commands for password management |
| server/src/testFixtures/kotlin/io/spine/test/client/users/*.kt | Added UserAccountAggregate, PasswordChangeReaction, and Context builder |
| server/src/testFixtures/java/io/spine/test/client/users/*.java | Created package-info and moved LoginProcess to users package |
| server/src/testFixtures/java/io/spine/test/client/*.java | Refactored to use centralized Context builder |
| server/src/test/java/io/spine/client/ClientSubscriptionsSpec.kt | Converted test from Java to Kotlin and added EventReactor test case |
| server/src/main/java/io/spine/server/stand/Stand.java | Enhanced documentation and added nullness annotations |
| server/src/main/java/io/spine/server/tenant/TenantAware.java | Removed redundant @nonnull annotation |
| server/src/main/java/io/spine/server/stand/TenantSubscriptionRegistry.java | Replaced @nullable with var for local variables |
| client/src/main/java/io/spine/client/SubscriptionRequest.java | Improved documentation clarity |
| gradlew/gradlew.bat | Removed unused CLASSPATH variable |
| core/src/main/proto/spine/core/diagnostics.proto | Reordered documentation for better readability |
server/src/testFixtures/kotlin/io/spine/test/client/users/UserAccountAggregate.kt
Outdated
Show resolved
Hide resolved
EventReactor
armiol
approved these changes
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the test to check the statement from the issue #1210. Related tests were converted to Kotlin for better readability.
Other notable changes