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

Changed TestableAggregateRoot to be explicit on commandhandling failures #44

Merged
merged 3 commits into from
Aug 31, 2018

Conversation

olger
Copy link
Contributor

@olger olger commented Aug 29, 2018

Ensured TestableAggregateRoot works properly based on a starting 'given' (the actor was created in when, that is now part of given that is actually class constructor work)
Added tests to cover the functionality of TestableAggregateRoot

Ensured TestableAggregateRoot works properly based on a starting 'given' (the actor was created in when, that is now part of given that is actually class constructor work)
Added tests to cover the functionality of TestableAggregateRoot
@olger olger requested a review from wketting August 29, 2018 13:07
Copy link

@wketting wketting left a comment

Choose a reason for hiding this comment

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

Only some small comments, but further looking good!

@@ -6,6 +6,8 @@ package io.cafienne.bounded.test

import java.util.concurrent.atomic.AtomicInteger

import io.cafienne.bounded.test.TestableAggregateRoot.{CommandHandlingException, IllegalCommandException}

import scala.reflect.ClassTag
//import scala.reflect.runtime.universe

Choose a reason for hiding this comment

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

Commented import can be removed?

import io.cafienne.bounded.test.TestAggregateRoot.TestAggregateRootState
import scala.collection.immutable.Seq

//object DomainProtocol {

Choose a reason for hiding this comment

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

Why commented?

import io.cafienne.bounded.{BuildInfo, RuntimeInfo}
import io.cafienne.bounded.aggregate.{AggregateRootId, CommandMetaData, MetaData}
import io.cafienne.bounded.test.TestableAggregateRoot.{CommandHandlingException, IllegalCommandException}
//import io.cafienne.bounded.test.DomainProtocol.InitialStateCreated

Choose a reason for hiding this comment

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

Clean imports plz.

@olger
Copy link
Contributor Author

olger commented Aug 30, 2018

Updated code to remove the issues around the comments. Commented code is removed and/or enabled. Thanks. Will merge this when all is fine. (and publish a new version)

@wketting
Copy link

@olger You can merge this PR, and publish a new version. Don't forget to update the release notes!

@olger olger merged commit 93d3543 into master Aug 31, 2018
@olger olger deleted the testable-aggregate-root-improvements branch August 31, 2018 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants