src/test/java/seedu/address/bot/parcel/ParcelParserTest.java
public static void assertParseFailure(ParcelParser parser, String userInput, String expectedMessage) {
        try {
            parser.parse(userInput);
            fail("The expected ParseException was not thrown.");
        } catch (ParseException pe) {
            assertEquals(expectedMessage, pe.getMessage());
        }
    }
/**
     * Asserts that the parsing of {@code userInput} by {@code parser} is unsuccessful and the error message
     * equals to {@code expectedMessage}.
     */
Asserts that the parsing of  userInput by  parser is unsuccessful and the error message
equals to  expectedMessage.
Asserts that the parsing of userInput by parser is unsuccessful and the error message equals to expectedMessage .
public static void assertParseFailure(ParcelParser parser, String userInput, String expectedMessage) {
        try {
            parser.parse(userInput);
            fail("The expected ParseException was not thrown.");
        } catch (ParseException pe) {
            assertEquals(expectedMessage, pe.getMessage());
        }
    }
public static void assertParseFailure ( ParcelParser parser , String userInput , String expectedMessage ) { try { parser . parse ( userInput ) ; fail ( "The expected ParseException was not thrown." ) ; } catch ( ParseException pe ) { assertEquals ( expectedMessage , pe . getMessage ( ) ) ; } }
Asserts that the parsing of {@code userInput} by {@code parser} is unsuccessful and the error message
 equals to {@code expectedMessage}.
Asserts that the parsing of { @code userInput } by { @code parser } is unsuccessful and the error message equals to { @code expectedMessage } .