RoboconfErrorHelpers { public static void filterErrorsForRecipes( ApplicationLoadResult alr ) { filterErrorsForRecipes( alr.getLoadErrors()); } 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 testFilterErrorsForRecipes() { List<RoboconfError> errors = new ArrayList<> (); errors.add( new RoboconfError( CMD_CANNOT_HAVE_ANY_PARENT )); errors.add( new RoboconfError( RM_ROOT_INSTALLER_MUST_BE_TARGET )); errors.add( new RoboconfError( RM_ROOT_INSTALLER_MUST_BE_TARGET )); errors.add( new RoboconfError( RM_UNRESOLVABLE_FACET_VARIABLE )); errors.add( new RoboconfError( RM_UNREACHABLE_COMPONENT )); errors.add( new RoboconfError( RM_ORPHAN_FACET_WITH_CHILDREN )); errors.add( new RoboconfError( RM_ORPHAN_FACET )); RoboconfErrorHelpers.filterErrorsForRecipes( errors ); Assert.assertEquals( 1, errors.size()); Assert.assertEquals( CMD_CANNOT_HAVE_ANY_PARENT, errors.iterator().next().getErrorCode()); }