All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.common.test.TestConfig Maven / Gradle / Ivy

/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.common.test;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;

import org.duracloud.common.model.Credential;
import org.duracloud.common.model.SimpleCredential;

/**
 * Test configuration information. To be used for integration tests which
 * need information about external systems in order to function.
 *
 * @author Bill Branan
 *         Date: 7/29/13
 */
@XmlRootElement
public class TestConfig {
    
    
    public TestConfig() {
        providerCredentials = new ArrayList<>();
    }

    
    @XmlValue
    private List providerCredentials;

    @XmlValue
    private String queueName;

    
    @XmlValue
    private TestEndPoint testEndPoint = new TestEndPoint();
    
    @XmlValue 
    private SimpleCredential userCredential = new SimpleCredential("user", "upw");

    @XmlValue 
    private SimpleCredential adminCredential = new SimpleCredential("admin", "apw");

    @XmlValue 
    private SimpleCredential rootCredential  = new SimpleCredential("root", "rpw");

 
    public TestEndPoint getTestEndPoint(){
        return this.testEndPoint;
    }
    public void addProviderCredential(StorageProviderCredential cred) {
        providerCredentials.add(cred);
    }

    public List getProviderCredentials() {
        return providerCredentials;
    }

    public void setProviderCredentials(
        List providerCredentials) {
        this.providerCredentials = providerCredentials;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }
    public SimpleCredential getUserCredential() {
        return userCredential;
    }
    public void setUserCredential(SimpleCredential userCredential) {
        this.userCredential = userCredential;
    }
    public SimpleCredential getAdminCredential() {
        return adminCredential;
    }
    public void setAdminCredential(SimpleCredential adminCredential) {
        this.adminCredential = adminCredential;
    }
    public SimpleCredential getRootCredential() {
        return rootCredential;
    }
    public void setRootCredential(SimpleCredential rootCredential) {
        this.rootCredential = rootCredential;
    }
    public void setTestEndPoint(TestEndPoint testEndPoint) {
        this.testEndPoint = testEndPoint;
    }
    
    

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy