Skip to content

Commit

Permalink
- The test() method can now also return a value
Browse files Browse the repository at this point in the history
  • Loading branch information
tordbjorn77 committed Feb 13, 2024
1 parent 00e4b54 commit 92b693b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>no.nav.system</groupId>
<artifactId>rule.dsl</artifactId>
<version>1.5.0</version>
<version>1.5.1</version>
<packaging>jar</packaging>
<name>rule-dsl</name>

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/system/rule/dsl/AbstractRuleflow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ abstract class AbstractRuleflow<T : Any> : AbstractResourceAccessor() {
* Tests the ruleflow without a parent ruleComponent.
*/
@TestOnly
open fun test() {
open fun test(): T {
branchNameStack.push(this.javaClass.simpleName)
ruleflow.invoke()
return ruleflow.invoke()
}

/**
Expand Down

0 comments on commit 92b693b

Please sign in to comment.