-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EXM-44893 Pass through the actions manager.
- Loading branch information
AlexJitianu
committed
Feb 25, 2020
1 parent
87ea279
commit 309338b
Showing
3 changed files
with
336 additions
and
326 deletions.
There are no files selected for viewing
76 changes: 43 additions & 33 deletions
76
src/main/java/com/oxygenxml/xspec/XSpecResultPresenter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
package com.oxygenxml.xspec; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* Presents the HTML resulted from executing an XSpec scenario. | ||
* | ||
* @author alex_jitianu | ||
*/ | ||
public interface XSpecResultPresenter { | ||
/** | ||
* If it already presents the results of an XSpec execution | ||
* then it will return the URL of the executed XSpec. | ||
* | ||
* @return The XSpec that was executed and its results are currently presented. | ||
*/ | ||
URL getXspec(); | ||
|
||
/** | ||
* Loads the results from executing an XSpec file. | ||
* | ||
* @param resultHTML The result. | ||
*/ | ||
void loadContent(String resultHTML); | ||
|
||
/** | ||
* Loads the results from executing an XSpec file. | ||
* | ||
* @param xspec The executed XSpec. | ||
* @param results The results in a HTML format. | ||
*/ | ||
public void load(URL xspecURL, URL resultHTML); | ||
} | ||
package com.oxygenxml.xspec; | ||
|
||
import java.net.URL; | ||
|
||
import com.oxygenxml.xspec.saxon.GenerateIDExtensionFunction; | ||
|
||
/** | ||
* Presents the HTML resulted from executing an XSpec scenario. | ||
* | ||
* @author alex_jitianu | ||
*/ | ||
public interface XSpecResultPresenter { | ||
/** | ||
* If it already presents the results of an XSpec execution | ||
* then it will return the URL of the executed XSpec. | ||
* | ||
* @return The XSpec that was executed and its results are currently presented. | ||
*/ | ||
URL getXspec(); | ||
|
||
/** | ||
* Loads the results from executing an XSpec file. | ||
* | ||
* @param resultHTML The result. | ||
*/ | ||
void loadContent(String resultHTML); | ||
|
||
/** | ||
* Loads the results from executing an XSpec file. | ||
* | ||
* @param xspec The executed XSpec. | ||
* @param results The results in a HTML format. | ||
*/ | ||
public void load(URL xspecURL, URL resultHTML); | ||
|
||
/** | ||
* Executes a given scenario. | ||
* | ||
* @param scenarioId Name of the scenario to execute. Usually something generated with | ||
* {@link GenerateIDExtensionFunction} | ||
*/ | ||
public void runScenario(String scenarioId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.