Skip to content

Fixture factories can not be used as factory methods #92

@sandjelkovic

Description

@sandjelkovic

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions