RoboconfErrorHelpers { public static boolean containsCriticalErrors( Collection<? extends RoboconfError> errors ) { boolean result = false; for( RoboconfError error : errors ) { if(( result = error.getErrorCode().getLevel() == ErrorLevel.SEVERE )) break; } return result; } private  RoboconfErrorHelpers(); static boolean containsCriticalErrors( Collection<? extends RoboconfError> errors ); static Collection<RoboconfError> findWarnings( Collection<? extends RoboconfError> errors ); static List<RoboconfError> resolveErrorsWithLocation( ApplicationLoadResult alr ); static void filterErrorsForRecipes( ApplicationLoadResult alr ); static void filterErrorsForRecipes( Collection<? extends RoboconfError> errors ); static void filterErrors( Collection<? extends RoboconfError> errors, ErrorCode... errorCodes ); static Map<RoboconfError,String> formatErrors(
			Collection<? extends RoboconfError> errors,
			String lang,
			boolean addMetadata );  }
@Test public void testContainsCriticalErrors() { List<RoboconfError> errors = new ArrayList<> (); Assert.assertFalse( RoboconfErrorHelpers.containsCriticalErrors( errors )); errors.add( new RoboconfError( PM_MALFORMED_COMMENT )); Assert.assertFalse( RoboconfErrorHelpers.containsCriticalErrors( errors )); errors.add( new RoboconfError( PM_DUPLICATE_PROPERTY )); Assert.assertTrue( RoboconfErrorHelpers.containsCriticalErrors( errors )); }