Skip to content

Instantly share code, notes, and snippets.

@wonderb0lt
Created December 18, 2014 18:52
Show Gist options
  • Save wonderb0lt/9dcfedefacf50d1fef79 to your computer and use it in GitHub Desktop.
Save wonderb0lt/9dcfedefacf50d1fef79 to your computer and use it in GitHub Desktop.
yay AssertJ
assertThat(authenticationResult)
.hasState(AuthenticationResult.State.SUCCESSFUL)
.hasNoErrors()
.hasAdditionalInformation(Collections.emptyMap());
@joel-costigliola
Copy link

you could have used hasNoAdditionalInformation()

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