Interface AdHocTestObjectFactory
-
public interface AdHocTestObjectFactory
Factory for creating AdHoc Test Objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AdHocTestObject
fromDataSet(java.net.URL url)
Create a temporary Test Object for a Data Set that is represented by a remote URL.AdHocTestObject
fromDataSet(java.net.URL url, java.net.Authenticator authenticator)
Create a temporary Test Object for a Data Set that is represented by a remote URL.AdHocTestObject
fromDataSet(java.nio.file.Path pathToDataSet)
Create a temporary Test Object for a Data Set that is represented by a (local) path.default AdHocTestObject
fromService(java.net.URL url)
Create a temporary Test Object for a ServiceAdHocTestObject
fromService(java.net.URL url, java.net.Authenticator authenticator)
Create a temporary Test Object for a Service
-
-
-
Method Detail
-
fromDataSet
AdHocTestObject fromDataSet(java.nio.file.Path pathToDataSet) throws RemoteInvocationException, java.io.IOException
Create a temporary Test Object for a Data Set that is represented by a (local) path.- Parameters:
pathToDataSet
- a path to the Data Set- Returns:
- a temporary Test Object
- Throws:
RemoteInvocationException
- if the ETF instance returned an errorjava.io.IOException
- if reading the data set from the path failed
-
fromDataSet
default AdHocTestObject fromDataSet(java.net.URL url)
Create a temporary Test Object for a Data Set that is represented by a remote URL.- Parameters:
url
- an URL to the Service- Returns:
- a temporary Test Object
- See Also:
HttpBasicAuthentication
-
fromDataSet
AdHocTestObject fromDataSet(java.net.URL url, java.net.Authenticator authenticator)
Create a temporary Test Object for a Data Set that is represented by a remote URL.- Parameters:
url
- an URL to the Serviceauthenticator
- Authenticator to use for authentication- Returns:
- a temporary Test Object
- See Also:
HttpBasicAuthentication
-
fromService
AdHocTestObject fromService(java.net.URL url, java.net.Authenticator authenticator)
Create a temporary Test Object for a Service- Parameters:
url
- an URL to the Serviceauthenticator
- Authenticator to use for authentication- Returns:
- a temporary Test Object
- See Also:
HttpBasicAuthentication
-
fromService
default AdHocTestObject fromService(java.net.URL url)
Create a temporary Test Object for a Service- Parameters:
url
- an URL to the Service- Returns:
- a temporary Test Object
- See Also:
HttpBasicAuthentication
-
-