Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixture factories can not be used as factory methods #92

Closed
sandjelkovic opened this issue Dec 15, 2020 · 1 comment · Fixed by #93
Closed

Fixture factories can not be used as factory methods #92

sandjelkovic opened this issue Dec 15, 2020 · 1 comment · Fixed by #93

Comments

@sandjelkovic
Copy link
Member

sandjelkovic commented Dec 15, 2020

Basic information

  • Axon Framework version: -
  • JDK version: -
  • Kotlin Extension version: 0.2.0-SNAPSHOT
  • Complete executable reproducer if available (e.g. GitHub Repo):

Steps to reproduce

Try to use call reified aggregateTestFixture or reified sagaTestFixture as a factory method, meaning without an already created fixture instance.

Expected behaviour

Use these methods as they were intended to - factory methods to create new Fixtures.

var fixture: AggregateTestFixture<MyAggregate> = aggregateTestFixture()

These methods can not be extensions to already existing fixtures but should be simple standalone functions that use reified generics.

More information can be found here #73 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants