Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Implement all aggregate fixture methods #5

Open
zambrovski opened this issue Feb 27, 2019 · 2 comments
Open

Implement all aggregate fixture methods #5

zambrovski opened this issue Feb 27, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request jgiven Feature for jgiven add-on
Milestone

Comments

@zambrovski
Copy link
Contributor

zambrovski commented Feb 27, 2019

Currently, not all aggregate fixture methods are available in the JGiven stages.
Missing are:

  • given(domainEvents: List)
  • givenCommands(commands: List)
  • givenCurrentTime(instant: Instant)
  • timeAdvancesTo(instant: Instant)
  • timeElapses(duration: Duration)
  • givenState(state: Supplier)
  • givenState(state: () -> T)
  • when(cmd: Any, metadata: Map<String, *> )
  • expectEvents(events: EventMessage<*>)
  • expectEventsMatching(macther: Matcher<MutableList>)
  • expectNoEvents()
  • expectException(class: Class)
  • expectException(matcher: Matcher<*>)
  • expectResultMessagePayload(payload: Any)
  • expectResultMessagePayloadMatching(matcher: Matcher<*>)
  • expectResultMessageMatching(matcher: Matcher<CommandResultMessage<*>>)
  • expectResultMessage(command: CommandResultMessage<*>)
  • expectDeadlinesMet(expected: Any)
  • expectDeadlinesMetMatching(expected: Matcher<out MutableList<in DeadlineMessage<*>>>)
  • expectNoScheduledDeadlines()
  • expectScheduledDeadline(duration: Duration, deadline: Any)
  • expectScheduledDeadlineMatching(duration: Duration, matcher: Matcher<in DeadlineMessage<*>>)
  • expectScheduledDeadline(instant: Instant, deadline: Any)
  • expectScheduledDeadlineMatching(instant: Instant, matcher: Matcher<in DeadlineMessage<*>>)
@zambrovski zambrovski added enhancement New feature or request jgiven Feature for jgiven add-on labels Feb 27, 2019
@zambrovski zambrovski added this to the MVP milestone Feb 27, 2019
@zambrovski zambrovski self-assigned this Feb 27, 2019
@holixon holixon deleted a comment from jangalinski Feb 27, 2019
@zambrovski
Copy link
Contributor Author

The methods

  • timeAdvancesTo(instant: Instant)
  • timeElapses(duration: Duration)
    break the fluent style of the stage... fix this.

@zambrovski zambrovski reopened this Feb 27, 2019
@zambrovski
Copy link
Contributor Author

The methods

  • timeAdvancesTo(instant: Instant)
  • timeElapses(duration: Duration)
    break the fluent style of the stage... fix this.

I spoke with Allard and filed an issue in their github: AxonFramework/AxonFramework#1014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request jgiven Feature for jgiven add-on
Projects
None yet
Development

No branches or pull requests

1 participant