Projection testing
See original GitHub issueAxon provides fixtures when it comes to Saga and Aggregate testing. When it comes to projection testing developers are left on their own. It might be useful to provide a functionality in axon-test
module for testing projections.
Here is a proposal:
ProjectionFixture fixture = ProjectionFixture.registerHandlingComponent(new MyProjection()) // here we can have scanning of @EventHandlers and @QueryHandlers
.registerResource(new MyRepository()); // or mock
fixture.given(events)
.whenQuery(query) // whenScatterGatherQuery, whenSubscriptionQuery
.expectResult(queryResult);
...
fixture.given(events)
.andSubscriptionQuery(query)
.when(event)
.expectEmittedUpdate(anUpdate);
Issue Analytics
- State:
- Created 5 years ago
- Reactions:27
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Projective test | Definition, Types, Examples, & Facts | Britannica
projective test, in psychology, examination that commonly employs ambiguous stimuli, notably inkblots (Rorschach Test) and enigmatic pictures (Thematic ...
Read more >Projective test - Wikipedia
In psychology, a projective test is a personality test designed to let a person respond to ambiguous stimuli, presumably revealing hidden emotions and ......
Read more >Projective Tests - Online Projective Personality Tests for Free
Free Projective Tests Online ⭐ Enjoy the best projective tests that worth taking ⭐ Get instant results without registration for free ☝ Here!...
Read more >Projective Tests - Simply Psychology
A projective test is one in which a test taker responds to or provides ambiguous, abstract, or unstructured stimuli, often in the form...
Read more >How Projective Tests Are Used to Measure Personality
A projective test is a type of personality test in which you offer responses to ambiguous scenes, words, or images.1 The goal of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
big +1 I was looking to test queries but not possible
Yes, it is a bit frustrating to try to use the @QueryHandler/QueryGatway without testing support from the framework