Class EnvironmentAPIServiceMock
- java.lang.Object
-
- org.jenkinsci.plugins.torque.service.EnvironmentAPIServiceMock
-
- All Implemented Interfaces:
EnvironmentAPIService
public class EnvironmentAPIServiceMock extends Object implements EnvironmentAPIService
-
-
Constructor Summary
Constructors Constructor Description EnvironmentAPIServiceMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseData<CreateEnvResponse>createEnvironment(String spaceName, CreateSandboxRequest req)ResponseData<Void>deleteEnvironment(String spaceName, String environmentId)ResponseData<EnvironmentResponse>getEnvironmentById(String spaceName, String environmentId)
-
-
-
Method Detail
-
createEnvironment
public ResponseData<CreateEnvResponse> createEnvironment(String spaceName, CreateSandboxRequest req) throws IOException
- Specified by:
createEnvironmentin interfaceEnvironmentAPIService- Throws:
IOException
-
deleteEnvironment
public ResponseData<Void> deleteEnvironment(String spaceName, String environmentId) throws IOException
- Specified by:
deleteEnvironmentin interfaceEnvironmentAPIService- Throws:
IOException
-
getEnvironmentById
public ResponseData<EnvironmentResponse> getEnvironmentById(String spaceName, String environmentId) throws IOException
- Specified by:
getEnvironmentByIdin interfaceEnvironmentAPIService- Throws:
IOException
-
-