RoboconfErrorHelpers { public static Collection<RoboconfError> findWarnings( Collection<? extends RoboconfError> errors ) { Collection<RoboconfError> result = new ArrayList<> (); for( RoboconfError error : errors ) { if( error.getErrorCode().getLevel() == ErrorLevel.WARNING ) result.add( error ); } 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 testFindWarnings() { Collection<RoboconfError> errors = new ArrayList<> (); Assert.assertEquals( 0, RoboconfErrorHelpers.findWarnings( errors ).size()); errors.add( new RoboconfError( PM_DUPLICATE_PROPERTY )); Assert.assertEquals( 0, RoboconfErrorHelpers.findWarnings( errors ).size()); errors.add( new RoboconfError( PROJ_NO_RESOURCE_DIRECTORY )); errors = RoboconfErrorHelpers.findWarnings( errors ); Assert.assertEquals( 1, errors.size()); Assert.assertEquals( PROJ_NO_RESOURCE_DIRECTORY, errors.iterator().next().getErrorCode()); }