Skip to content

Commit 61bd46b

Browse files
committed
[Nu-7983] Add one more test
1 parent a624441 commit 61bd46b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scenario-compiler/src/test/scala/pl/touk/nussknacker/engine/definition/fragment/FragmentParameterTypingParserSpec.scala

+10
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,14 @@ class FragmentParameterTypingParserSpec extends AnyFunSuite with Matchers {
3434
}
3535
}
3636

37+
test("should fail to parse a class name when it contains a non-existing type") {
38+
val triedTypingResult =
39+
fragmentParameterTypingParser.parseClassNameToTypingResult("Map[String, NotExistingType]")
40+
41+
triedTypingResult match {
42+
case Failure(ex) => ex shouldBe a[ClassNotFoundException]
43+
case Success(tr) => fail(s"Expected failure due to non-existing type, but got success with: $tr")
44+
}
45+
}
46+
3747
}

0 commit comments

Comments
 (0)