Skip to content

Commit

Permalink
Change method of accept method test.
Browse files Browse the repository at this point in the history
  • Loading branch information
baldimir committed Oct 14, 2024
1 parent de521ba commit e793f7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 243 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import org.junit.jupiter.api.Test;
import org.kie.dmn.feel.lang.types.GenRangeType;
import org.kie.dmn.feel.util.EvaluationContextTestUtil;
import org.kie.dmn.feel.util.MockVisitor;
import org.kie.dmn.feel.lang.types.BuiltInType;
import org.mockito.Mockito;

class RangeTypeNodeTest {

Expand All @@ -37,9 +37,10 @@ void evaluate() {

@Test
void accept() {
final MockVisitor visitor = new MockVisitor();
final Visitor visitor = Mockito.spy(Visitor.class);
final RangeTypeNode rangeTypeNode = new RangeTypeNode(null, "sometext");
Assertions.assertThat(rangeTypeNode.accept(visitor)).isSameAs(rangeTypeNode);
rangeTypeNode.accept(visitor);
Mockito.verify(visitor).visit(rangeTypeNode);
}

@Test
Expand Down

This file was deleted.

0 comments on commit e793f7e

Please sign in to comment.