private void assertParseExceptionNotThrown(final Class baseType, final String fullName) throws PropertyNotFoundException { try { PropertyParser.parseProperty(baseType, fullName); } catch (ParseException unexpected) { fail(fullName + ": offset " + unexpected.getErrorOffset() + ": " + unexpected.getMessage()); } } private void assertParseExceptionThrown(final Class baseType, final String fullName, final String expectedMsg) throws PropertyNotFoundException { try { PropertyParser.parseProperty(baseType, fullName); fail(); } catch (ParseException expected) { assertEquals(expectedMsg, expected.getMessage()); } } }