@@ -0,0 +1,3325 @@
+/*%0A * Tanaguru - Automated webpage assessment%0A * Copyright (C) 2008-2017  Tanaguru.org%0A *%0A * This file is part of Tanaguru.%0A *%0A * Tanaguru is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as%0A * published by the Free Software Foundation, either version 3 of the%0A * License, or (at your option) any later version.%0A *%0A * This program 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%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A *%0A * Contact us by mail: tanaguru AT tanaguru DOT org%0A */%0Apackage org.tanaguru.rules.rgaa32017;%0A%0Aimport org.apache.commons.lang3.tuple.ImmutablePair;%0Aimport org.tanaguru.entity.audit.ProcessResult;%0Aimport org.tanaguru.entity.audit.TestSolution;%0Aimport static org.tanaguru.rules.keystore.AttributeStore.SRC_ATTR;%0Aimport org.tanaguru.rules.rgaa32017.test.Rgaa32017RuleImplementationTestCase;%0Aimport org.tanaguru.rules.keystore.HtmlElementStore;%0Aimport org.tanaguru.rules.keystore.RemarkMessageStore;%0A%0A/**%0A *%0A * @author jkowalczyk%0A */%0Apublic class Rgaa32017Rule020101Test extends Rgaa32017RuleImplementationTestCase %7B%0A%0A    public Rgaa32017Rule020101Test(String testName) %7B%0A        super(testName);%0A    %7D%0A%0A    @Override%0A    protected void setUpRuleImplementationClassName() %7B%0A        setRuleImplementationClassName(%0A                %22org.tanaguru.rules.rgaa32017.Rgaa32017Rule020101%22);%0A    %7D%0A%0A    @Override%0A    protected void setUpWebResourceMap() %7B%0A        addWebResource(%22Rgaa32017.Test.2.1.1-1Passed-01%22);%0A        addWebResource(%22Rgaa32017.Test.2.1.1-2Failed-01%22);%0A        addWebResource(%22Rgaa32017.Test.2.1.1-4NA-01%22);%0A    %7D%0A%0A    @Override%0A    protected void setProcess() %7B%0A        //----------------------------------------------------------------------%0A        //------------------------------1Passed-01------------------------------%0A        //----------------------------------------------------------------------%0A        checkResultIsPassed(processPageTest(%22Rgaa32017.Test.2.1.1-1Passed-01%22), 1);%0A        %0A        %0A        //----------------------------------------------------------------------%0A        //------------------------------2Failed-01------------------------------%0A        //----------------------------------------------------------------------%0A        ProcessResult processResult = processPageTest(%22Rgaa32017.Test.2.1.1-2Failed-01%22);%0A        checkResultIsFailed(processResult, 2, 1);%0A        checkRemarkIsPresent(%0A                processResult,%0A                TestSolution.FAILED,%0A                RemarkMessageStore.TITLE_ATTR_MISSING_MSG,%0A                HtmlElementStore.IFRAME_ELEMENT,%0A                1,%0A                new ImmutablePair(SRC_ATTR, %22mock-iframe1.html%22));%0A%0A        %0A        //----------------------------------------------------------------------%0A        //------------------------------4NA-01------------------------------%0A        //----------------------------------------------------------------------%0A        checkResultIsNotApplicable(processPageTest(%22Rgaa32017.Test.2.1.1-4NA-01%22));%0A    %7D%0A%0A%7D

Add implementation rule Rgaa32017Rule020101Test