src/test/java/com/redhat/MessageHelperTest.java
/**
     * Test whether incorrect acronym format returns helpful message to the user, and did not get saved.
     */
Test whether incorrect acronym format returns helpful message to the user, and did not get saved.
Test whether incorrect acronym format returns helpful message to the user and did not get saved .
@Test
    public void testIncorrectAcronymSave() {
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.getIncorrectAcronymSave()))
                .isEqualTo(Constants.INCORRECT_FORMAT_FOR_SAVING_ACRONYM);
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.getIncorrectAcronymSaveWithEquals()))
                .isEqualTo(Constants.INCORRECT_FORMAT_FOR_SAVING_ACRONYM);
        Assertions
                .assertThat(helper.handleMessageAction(JsonNodeHelper.getIncorrectAcronym()))
                .isEqualTo(Constants.ACRONYM_NOT_FOUND);
    }
@ Test public void testIncorrectAcronymSave ( ) { Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . getIncorrectAcronymSave ( ) ) ) . isEqualTo ( Constants . INCORRECT_FORMAT_FOR_SAVING_ACRONYM ) ; Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . getIncorrectAcronymSaveWithEquals ( ) ) ) . isEqualTo ( Constants . INCORRECT_FORMAT_FOR_SAVING_ACRONYM ) ; Assertions . assertThat ( helper . handleMessageAction ( JsonNodeHelper . getIncorrectAcronym ( ) ) ) . isEqualTo ( Constants . ACRONYM_NOT_FOUND ) ; }
Test whether incorrect acronym format returns helpful message to the user, and did not get saved.
Test whether incorrect acronym format returns helpful message to the user and did not get saved .