37383940414243444546
final TestChildElement y = children.insert(); y.setId( "123" ); final Status status = root.validation(); assertEquals( "Multiple occurrence of \"123\" were found", status.message() ); assertEquals( 0, status.children().size() ); } }
123124125126127128129130131132133
{ final Status st = form.part().validation(); if( st.severity() == Status.Severity.ERROR ) { setMessage( st.message(), ERROR ); setValid( false ); } else if( st.severity() == Status.Severity.WARNING ) { setMessage( st.message(), WARNING );
128129130131132133134135136137138
setMessage( st.message(), ERROR ); setValid( false ); } else if( st.severity() == Status.Severity.WARNING ) { setMessage( st.message(), WARNING ); setValid( true ); } else { setMessage( null );
7374757677787980818283
try { final Status status = result.status(); assertEquals( Status.Severity.ERROR, status.severity() ); assertEquals( expected, status.message() ); } finally { result.dispose(); }
6768697071727374757677
try { final Status st = fr.status(); assertEquals( Status.Severity.ERROR, st.severity() ); assertEquals( "Function Validation does not accept nulls in position 0.", st.message() ); } finally { fr.dispose(); }
8990919293949596979899
try { final Status st = fr.status(); assertEquals( Status.Severity.ERROR, st.severity() ); assertEquals( "Function Validation( java.lang.String ) is undefined.", st.message() ); } finally { fr.dispose(); }
110111112113114115116117118119120
try { final Status st = fr.status(); assertEquals( Status.Severity.ERROR, st.severity() ); assertEquals( "Function Size does not accept nulls in position 0.", st.message() ); } finally { fr.dispose(); }
132133134135136137138139140141142
try { final Status st = fr.status(); assertEquals( Status.Severity.ERROR, st.severity() ); assertEquals( "Function Size cannot be applied to a java.math.BigInteger object.", st.message() ); } finally { fr.dispose(); }
8485868788899091929394
try { final Status st = fr.status(); assertEquals( Status.Severity.ERROR, st.severity() ); assertEquals( "Cannot determine index if parent is not a list.", st.message() ); } finally { fr.dispose(); }
114115116117118119120121122123124