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

Better AssertJ usage #1

Closed
wants to merge 2 commits into from

Conversation

joel-costigliola
Copy link

First commit shows standard AssertJ assertions improvements.

Second commit shows:

I only have created assertions for ToDoItem and PropertyDomainEvent.

I wanted to show how to use the domain language in assertions.

Use BDD style assertions (then instead of assertThat)

Generate custom assertions for ToDoItem and PropertyDomainEvent.
Generated assertions entry point : Assertions and BddAssertions
Add generated assertions in src/test/java/todoapp/integtests/assertions/

Comment AssertJ assertions generator plugin addition in pom.xml to ease future usage.
@danhaywood
Copy link
Contributor

Many thanks, Joel.

I've merged this change to a branch, and pushed, but have decided to it unmerged with master... see https://github.com/isisaddons/isis-app-todoapp#usage-of-assertj as to why.

Cheers
Dan

@danhaywood danhaywood closed this Apr 23, 2015
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.

2 participants