
org.testtoolinterfaces.testsuite.UnknownTestInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testsuiteinterface Show documentation
Show all versions of testsuiteinterface Show documentation
Test Suite Interface for Test Tool Interfaces
The newest version!
/**
*
*/
package org.testtoolinterfaces.testsuite;
import java.util.ArrayList;
/**
* @author Arjan Kranenburg
*
* Class for Unknown TestInterfaces
* This can be used when TestGroup or TestCase files are read and where interfaces
* are mentioned that are not known within this application.
* This is not necessarily an error, since other applications can have these
* interfaces defined.
*
* It serves only as place-holder for the interface name.
* It does not have any commands and the other functions are only implemented
* to satisfy the interface.
* The constructor and getInterfaceName() are the only methods that should be
* used.
*/
public class UnknownTestInterface implements TestInterface
{
private String myName;
/**
* Constructor for the UnknownTestInterface
*
* @param aName The name of the unknown interface
*/
public UnknownTestInterface( String aName )
{
myName = aName;
}
@Deprecated
public ParameterImpl createParameter(String aName, String aType, String aValue)
throws TestSuiteException
{
ParameterImpl param = new ParameterImpl(aName, aValue);
return param;
}
@Deprecated
public ArrayList getCommands()
{
return new ArrayList();
}
public String getInterfaceName()
{
return myName;
}
@Deprecated
public boolean hasCommand(String aCommand)
{
return false;
}
@Deprecated
public boolean verifyParameters( String aCommand,
ParameterArrayList aParameters )
throws TestSuiteException
{
return true;
}
@Override
public String toString()
{
return this.getInterfaceName();
}
public void destroy()
{
// NOP
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy