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

changes made to match upgraded framework #14

Merged
merged 2 commits into from
Aug 30, 2018
Merged

changes made to match upgraded framework #14

merged 2 commits into from
Aug 30, 2018

Conversation

tanu1002
Copy link
Collaborator

upgraded framework to version 4.3.2.

@coveralls
Copy link

coveralls commented Aug 30, 2018

Coverage Status

Coverage remained the same at 86.617% when pulling 35485f7 on dev/CRC-8338 into 769eb3c on master.

@@ -252,7 +252,7 @@ public void shouldPerformAllTheIndicatedActionsOnAStream() throws EventStreamExc
}

private JsonEnvelope buildEnvelope(final String eventName) {
return DefaultJsonEnvelopeProvider.provider().envelopeFrom(
return new DefaultJsonEnvelopeProvider().envelopeFrom(
Copy link
Member

Choose a reason for hiding this comment

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

The best way to create an envelope is like this:

import static uk.gov.justice.services.messaging.JsonEnvelope.envelopeFrom;
import static uk.gov.justice.services.messaging.JsonEnvelope.metadataBuilder;
...

final UUID id = randomUUID();
final String commandName = "notification-added";

final JsonEnvelope envelope = envelopeFrom(
        metadataBuilder()
                .withId(id)
                .withName(commandName)
createObjectBuilder()
        .add("exampleField", "example value"));

@purple52 purple52 merged commit f05853c into master Aug 30, 2018
@purple52 purple52 deleted the dev/CRC-8338 branch August 30, 2018 13:31
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

4 participants