@@ -0,0 +1,2174 @@
+/*%0A * Copyright 2014, Armenak Grigoryan, and individual contributors as indicated%0A * by the @authors tag. See the copyright.txt in the distribution for a%0A * full listing of individual contributors.%0A *%0A * This is free software; you can redistribute it and/or modify it%0A * under the terms of the GNU Lesser General Public License as%0A * published by the Free Software Foundation; either version 2.1 of%0A * the License, or (at your option) any later version.%0A *%0A * This software is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0A * Lesser General Public License for more details.%0A */%0Apackage com.strider.datadefender;%0A%0Aimport com.strider.datadefender.anonymizer.DatabaseAnonymizer;%0Aimport com.strider.datadefender.anonymizer.IAnonymizer;%0Aimport com.strider.datadefender.database.IDbFactory;%0Aimport com.strider.datadefender.requirement.Requirement;%0Aimport com.strider.datadefender.requirement.registry.ClassAndFunctionRegistry;%0A%0Aimport java.util.concurrent.Callable;%0Aimport java.util.List;%0A%0Aimport org.apache.commons.collections4.CollectionUtils;%0Aimport org.apache.commons.lang3.StringUtils;%0A%0Aimport picocli.CommandLine.ArgGroup;%0Aimport picocli.CommandLine.Option;%0Aimport picocli.CommandLine.Command;%0Aimport picocli.CommandLine.Parameters;%0A%0Aimport lombok.extern.log4j.Log4j2;%0A%0A/**%0A * test-requirement cli subcommand for testing the requirements file.%0A *%0A * @author Zaahid Bateson%0A */%0A@Command(%0A    name = %22test-requirement%22,%0A    version = %221.0%22,%0A    mixinStandardHelpOptions = true,%0A    description = %22Loads the requirement file without attempting to anonymize or process anything to check for syntax issues%22%0A)%0A@Log4j2%0Apublic class TestRequirement implements Callable%3CInteger%3E %7B%0A%0A    @Option(names = %7B %22-r%22, %22--requirement-file%22 %7D, paramLabel = %22%3CrequirementFile%3E%22, description = %22Requirement XML file%22, required = true)%0A    private Requirement requirement;%0A%0A    @Override%0A    public Integer call() throws Exception %7B%0A        System.out.println(%22%22);%0A        System.out.println(%22Requirements file loaded successfully%22);%0A        return 0;%0A    %7D%0A%7D%0A

Add TestRequirements