Giter Club home page Giter Club logo

axon-command-handler-test's Introduction

Axon CommandHandlers in AggregateMember Not found

I have an aggregate with multiple AggregateMembers. No is the problem that the for 1 aggregateMember (Referentschap) the CommandHandlers in this aggregate member are not found. This problem also occurs with junit testing using the AggregateTestFixture<>(Onderzoek.class).

In one AggregateMember Waarschuwing the CommandHandlers are reached as it should, but in the other aggregateMember Referentschap the CommandHandlers are not found. My question is how can i work around this problem? Is there a way that i can make a configuration to fix this?

Curious issue is that in a copy of the project for some debugging, the same issue arises but then the problem is swapped to Waarschuwing and is Referentschap ok. This curious swap of problems gives me the impression that there is an issue in how the CommandHandlers are collected.

update: On a hint of AxonIQ is placed only the @Aggregate annotation on the root aggregate. Cleared chaches and all from my Intellij IDE and rerun the junit test. Now the not found CommandHandler issue rises on both the AggregateMembers Referentschap and Waarschuwing.

I have made some integration test with an Axon testcontainer and they al succeed. As it seems is it a JUnit test problem, where the order of extending of aggregate classes is relevant for which CommandHandler is found.

Axon 4.5.17 Spring boot 2.7.12 Java temurin 17.0.6

axon-command-handler-test's People

Contributors

hartmanjan1970 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.