@@ -0,0 +1,2829 @@
+package org.openbaton.integration.test.testers;%0A%0Aimport org.openbaton.catalogue.mano.record.NetworkServiceRecord;%0Aimport org.openbaton.catalogue.mano.record.Status;%0Aimport org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord;%0Aimport org.openbaton.integration.test.exceptions.IntegrationTestException;%0Aimport org.openbaton.integration.test.utils.Tester;%0Aimport org.openbaton.integration.test.utils.Utils;%0Aimport org.openbaton.sdk.api.rest.NetworkServiceRecordRestAgent;%0A%0Aimport java.io.Serializable;%0Aimport java.util.Properties;%0A%0A/**%0A * Created by tbr on 25.01.16.%0A */%0Apublic class VNFRStatusTester extends Tester %7B%0A    private String vnfrType = %22%22;%0A    private Status status = null;%0A%0A    public VNFRStatusTester(Properties properties) %7B%0A        super(properties, VNFRStatusTester.class, %22%22, %22%22);%0A    %7D%0A%0A    @Override%0A    protected Serializable prepareObject() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected Object doWork() throws Exception %7B%0A        log.info(%22Start VNFRStatusTester on VNFR type %22+vnfrType);%0A        NetworkServiceRecord nsr = (NetworkServiceRecord) getParam();%0A%0A        Properties p = Utils.getProperties();%0A        NetworkServiceRecordRestAgent agent = new NetworkServiceRecordRestAgent(p.getProperty(%22nfvo-usr%22),%0A                p.getProperty(%22nfvo-pwd%22),%0A                p.getProperty(%22nfvo-ip%22),%0A                p.getProperty(%22nfvo-port%22),%0A                %22ns-records%22,%0A                %221%22);%0A%0A        if (status == null)%0A            throw new IntegrationTestException(%22Status to test is not declared. Specify it in the .ini file.%22);%0A        boolean found = false;%0A        for (VirtualNetworkFunctionRecord vnfr : nsr.getVnfr()) %7B%0A            if (vnfr.getType().equals(vnfrType)) %7B%0A                found = true;%0A                log.debug(%22The status of the VNFR of type %22+vnfrType+%22 is %22+vnfr.getStatus());%0A                if (!vnfr.getStatus().equals(status)) %7B%0A                    log.error(%22The status of VNFR %22 + vnfr.getName() + %22 of type %22 + vnfr.getType() + %22 is not %22 + status + %22 but %22 + vnfr.getStatus() + %22.%22);%0A                    throw new IntegrationTestException(%22The status of VNFR %22 + vnfr.getName() + %22 of type %22 + vnfr.getType() + %22 is not %22 + status + %22 but %22 + vnfr.getStatus() + %22.%22);%0A                %7D%0A            %7D%0A        %7D%0A%0A        if (!found)%0A            log.warn(%22did not find a VNFR of type %22+vnfrType);%0A%0A        log.debug(%22--- VNFRStatusTester finished successfully%22);%0A        return param;%0A    %7D%0A%0A    public void setVnfrType(String vnfrType) %7B%0A        this.vnfrType = vnfrType;%0A    %7D%0A    public void setStatus(String status) %7B%0A        try %7B%0A            this.status = Status.valueOf(status);%0A        %7D catch (IllegalArgumentException e) %7B%0A            log.error(%22The status %22+status+%22 does not exist. Please change it in the .ini file.%22);%0A        %7D%0A    %7D%0A%7D%0A

Add the VNFRStatusTester class