Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Some class name changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Cobbett <[email protected]>
  • Loading branch information
techcobweb committed Jul 10, 2024
1 parent b97bc3e commit 64f50b9
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import dev.galasa.framework.spi.AbstractManager;
import dev.galasa.framework.spi.IGherkinExecutable;
import dev.galasa.framework.spi.IStatementOwner;
import dev.galasa.framework.spi.language.gherkin.GherkinMethod;
import dev.galasa.framework.spi.language.gherkin.GherkinTest;
import dev.galasa.zos3270.Zos3270ManagerException;
import dev.galasa.zos3270.internal.Zos3270ManagerImpl;
Expand Down Expand Up @@ -64,10 +65,16 @@ protected void registerTerminal(String id, Zos3270TerminalImpl terminal, String

public void provisionGenerate() throws Zos3270ManagerException {
// Provision any terminals that are Given
for(IGherkinExecutable executable : this.feature.getAllExecutables()) {
Object owner = executable.getOwner();
if (owner instanceof Gherkin3270GivenTerminal) {
((Gherkin3270GivenTerminal)owner).provision(executable);
List<GherkinMethod> methods = this.feature.getMethods();
for( GherkinMethod method : methods ) {

List<IGherkinExecutable> executables = method.getExecutables();
for(IGherkinExecutable executable : executables) {
Object owner = executable.getOwner();

if (owner instanceof Gherkin3270GivenTerminal) {
((Gherkin3270GivenTerminal)owner).provision(executable);
}
}
}
}
Expand Down

0 comments on commit 64f50b9

Please sign in to comment.