-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paolo Di Tommaso <[email protected]>
- Loading branch information
1 parent
e952299
commit 171831e
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,19 +17,15 @@ | |
|
||
package nextflow.plugin.extension | ||
|
||
import nextflow.plugin.hello.HelloExtension | ||
|
||
import java.nio.file.Path | ||
|
||
import nextflow.Channel | ||
import nextflow.exception.DuplicateModuleFunctionException | ||
import nextflow.plugin.Plugins | ||
import nextflow.plugin.TestPluginManager | ||
import nextflow.plugin.extension.PluginExtensionProvider | ||
import spock.lang.Shared | ||
import spock.lang.TempDir | ||
import test.Dsl2Spec | ||
import test.MockScriptRunner | ||
/** | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
|
@@ -202,7 +198,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
''' | ||
|
||
when: | ||
def result = dsl_eval(SCRIPT_TEXT) | ||
dsl_eval(SCRIPT_TEXT) | ||
|
||
then: | ||
thrown(IllegalStateException) | ||
|
@@ -245,7 +241,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
''' | ||
|
||
when: | ||
def result = dsl_eval(SCRIPT_TEXT) | ||
dsl_eval(SCRIPT_TEXT) | ||
|
||
then: | ||
thrown(IllegalStateException) | ||
|
@@ -338,7 +334,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
''' | ||
|
||
when: | ||
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
def result = dsl_eval(SCRIPT) | ||
|
||
then: | ||
result.val == 'hi' | ||
|
@@ -407,7 +403,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
SCRIPT.text = SCRIPT_TEXT | ||
|
||
when: | ||
def result = new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
def result = dsl_eval(SCRIPT) | ||
|
||
then: | ||
result.val == EXPECTED | ||
|
@@ -445,7 +441,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
""".stripIndent() | ||
|
||
when: | ||
new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
dsl_eval(SCRIPT) | ||
|
||
then: | ||
thrown(DuplicateModuleFunctionException) | ||
|
@@ -491,7 +487,7 @@ class PluginExtensionMethodsTest extends Dsl2Spec { | |
""".stripIndent() | ||
|
||
when: | ||
new MockScriptRunner([:]).setScript(SCRIPT).execute() | ||
dsl_eval(SCRIPT) | ||
|
||
then: | ||
thrown(DuplicateModuleFunctionException) | ||
|