Skip to content

Asserting different effects#503

Merged
franciscolopezsancho merged 29 commits intolightbend:mainfrom
franciscolopezsancho:asserting-different-effects
Oct 6, 2021
Merged

Asserting different effects#503
franciscolopezsancho merged 29 commits intolightbend:mainfrom
franciscolopezsancho:asserting-different-effects

Conversation

@franciscolopezsancho
Copy link
Copy Markdown
Contributor

@franciscolopezsancho franciscolopezsancho commented Sep 26, 2021

  • creating ad-hoc testkit to test Actions.
    Created a Testkit in java-eventsourced-counter for CounterJournalToTopicAction
    Created one test for it. Test passing.
  • create codegen.
    Created Testkit thorught codegen. Test passing.
    Added loading user-function.desc from sample. To generate exact BuilderModel.Model
    Added codegen for generating examples on src/test
  • add docs.

Refs #336

CounterJournalToTopicActionTest is passing now.
Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
Copy link
Copy Markdown
Contributor

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

Copy link
Copy Markdown
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good progress!

Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
It's get generated and currently used in java-eventsourced-counter. Test passing
Copy link
Copy Markdown
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's shaping up nicely!

Comment thread testkit-java/src/main/java/com/akkaserverless/javasdk/testkit/ActionResult.java Outdated
also accepted suggestions
Comment thread sdk/java-sdk/src/main/java/com/akkaserverless/javasdk/action/ActionContext.java Outdated
@franciscolopezsancho franciscolopezsancho marked this pull request as ready for review October 4, 2021 18:40
fixing naming in generated test example
Copy link
Copy Markdown
Member

@octonato octonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.

Added a few comments and suggestions

Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
franciscolopezsancho and others added 6 commits October 5, 2021 11:02
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
…tions/CounterJournalToTopicActionTest.java

Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be>
plus removing unnecesary package naming
Copy link
Copy Markdown
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closing up on being done this one. 👍

Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
franciscolopezsancho and others added 5 commits October 6, 2021 08:31
Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johan Andrén <johan@markatta.com>
Co-authored-by: Johan Andrén <johan@markatta.com>
Comment thread docs/src/modules/java/pages/actions.adoc Outdated
Co-authored-by: Johan Andrén <johan@markatta.com>
Copy link
Copy Markdown
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good work!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants