/** * This is a valid MD5 * * @throws InvalidModelException */ @Test public void testValidateMd5Valid() throws InvalidModelException { String md5 = "79054025255fb1a26e4bc422aef54eb4"; manager.validateMd5(md5); }
@Test(expected = InvalidModelException.class) public void testValidateMd5Invalid() throws InvalidModelException { String notAnMd5AtAll = "not an md5"; manager.validateMd5(notAnMd5AtAll); }