public static void assertTrueOfInvalidDefinition ( boolean expression , ModelProperty property , String message ) { if ( ! expression ) { String msg = String . format ( "In class '%s', property '%s' has invalid definition: %s" , property . getParent ( ) . getElement ( ) . asType ( ) . toString ( ) , property . getName ( ) , message ) ; throw ( new InvalidDefinition ( msg ) ) ; } }
Assert true of invalid definition .