Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def "registered user details should be available via REST"() {
given: "there is User Data"
String userId = randomAlphabetic(10)
String firstName = randomAlphabetic(10)
String lastName = randomAlphabetic(10)
and: "User Registered event contain user data"
UserRegisteredEvent userEvent = anUserRegisteredEvent()
when: "User Registered event was published into kafka"
then: "User Details are available through REST API"
userDetailsIsRequestedFor(userId).andExpect(jsonPath('$.displayName').value(firstName + " " + lastName))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment