Code example for String

0
        MessageParser pars = parseMessage(null); 
    } 
 
    @Test(expected = IllegalArgumentException.class) 
    public void testEmptyInput() { 
        MessageParser pars = parseMessage(new String()); 
    } 
} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE