Package dev.galasa.cicsts
Interface ICemt
public interface ICemt
-
Method Summary
Modifier and TypeMethodDescriptionvoid
discardResource
(@NotNull ICicsTerminal cemtTerminal, @NotNull String resourceType, @NotNull String resourceName) Discards a specified resource and throws an exception if the specified search text is not found on the terminal.inquireResource
(@NotNull ICicsTerminal cemtTerminal, @NotNull String resourceType, @NotNull String resourceName) Inquire a CEMT resource using the resource type and name.boolean
performSystemProperty
(@NotNull ICicsTerminal cemtTerminal, @NotNull String systemArea, @NotNull String setRequest, @NotNull String expectedResponse) setResource
(@NotNull ICicsTerminal cemtTerminal, @NotNull String resourceType, String resourceName, @NotNull String action) Set the state of a CEMT resource using the resource type and name.
-
Method Details
-
inquireResource
CicstsHashMap inquireResource(@NotNull @NotNull ICicsTerminal cemtTerminal, @NotNull @NotNull String resourceType, @NotNull @NotNull String resourceName) throws CemtException Inquire a CEMT resource using the resource type and name. This does not support inquiries of multiple resources at once.- Parameters:
cemtTerminal
- anITerminal
object logged on to the CICS region and in an active CEMT session. If mixed case is required, the terminal should be presented with no upper case translate status. For example, the test could first issueCEOT TRANIDONLY
resourceType
- aString
of the resource type you are looking for.resourceName
- aString
of the name of the resource you are looking for.- Returns:
- null if the resource is not found.
- Throws:
CemtException
-
setResource
CicstsHashMap setResource(@NotNull @NotNull ICicsTerminal cemtTerminal, @NotNull @NotNull String resourceType, String resourceName, @NotNull @NotNull String action) throws CemtException Set the state of a CEMT resource using the resource type and name.- Parameters:
cemtTerminal
- anITerminal
object logged on to the CICS region and in an active CEMT session. If mixed case is required, the terminal should be presented with no upper case translate status. For example, the test could first issueCEOT TRANIDONLY
resourceType
- aString
of the type of resource you want to set.resourceName
- aString
of the name of the resource you want to set. Can benull
for exampleSET DB2CONN ...
.action
- aString
of the action you want to perform on the resource.- Returns:
- a
CicstsHashMap
object containing all of the properties of the resource. - Throws:
CemtException
-
discardResource
void discardResource(@NotNull @NotNull ICicsTerminal cemtTerminal, @NotNull @NotNull String resourceType, @NotNull @NotNull String resourceName) throws CemtException Discards a specified resource and throws an exception if the specified search text is not found on the terminal.- Parameters:
cemtTerminal
- anITerminal
object logged on to the CICS region and in an active CEMT session. If mixed case is required, the terminal should be presented with no upper case translate status. For example, the test could first issueCEOT TRANIDONLY
resourceType
- aString
of the type of resource you want to discard.resourceName
- aString
of the name of the resource you want to discard.- Throws:
CemtException
-
performSystemProperty
boolean performSystemProperty(@NotNull @NotNull ICicsTerminal cemtTerminal, @NotNull @NotNull String systemArea, @NotNull @NotNull String setRequest, @NotNull @NotNull String expectedResponse) throws CemtException - Parameters:
cemtTerminal
- anITerminal
object logged on to the CICS region and in an active CEMT session. If mixed case is required, the terminal should be presented with no upper case translate status. For example, the test could first issueCEOT TRANIDONLY
systemArea
- aString
the specifies the system area.setRequest
-expectedResponse
-- Returns:
- boolean
- Throws:
CemtException
-