src/test/java/com/redhat/MessageHelperTest.java
/**
     * Test whether we can update and delete an acronym that we can delete (i.e. a user can update their own acronyms only)
     */
Test whether we can update and delete an acronym that we can delete
Test whether we can update and delete an acronym that we can delete
@Test
    public void updateDeleteTest() {
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.updateAcronymExplanationSameEmail()))
                .isEqualTo(Constants.ACRONYM_UPDATED);
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.getInitialAcronymLowercase()))
                .isEqualTo(JsonNodeHelper.EXPLANATION_UPDATE + "\n");
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.deleteUpdatedAcronymExplanationSameEmail()))
                .contains(Constants.EXPLANATION_REMOVED);
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.getInitialAcronymLowercase()))
                .doesNotContain(JsonNodeHelper.EXPLANATION_UPDATE);
    }
@ Test public void updateDeleteTest ( ) { Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . updateAcronymExplanationSameEmail ( ) ) ) . isEqualTo ( Constants . ACRONYM_UPDATED ) ; Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . getInitialAcronymLowercase ( ) ) ) . isEqualTo ( JsonNodeHelper . EXPLANATION_UPDATE + "\n" ) ; Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . deleteUpdatedAcronymExplanationSameEmail ( ) ) ) . contains ( Constants . EXPLANATION_REMOVED ) ; Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . getInitialAcronymLowercase ( ) ) ) . doesNotContain ( JsonNodeHelper . EXPLANATION_UPDATE ) ; }
Test whether we can update and delete an acronym that we can delete (i.e.
Test whether we can update and delete an acronym that we can delete ( i . e .