Skip to content

Commit

Permalink
review fixes 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Łukasz Bigorajski committed Sep 20, 2024
1 parent 4190e76 commit f0f6cf6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class ExpressionSuggesterBenchmarkSetup() {
clazzDefinitions,
dictServices,
getClass.getClassLoader,
List.empty
List.empty,
ClassDefinitionTestUtils.DefaultSettings
)

private val variables: Map[String, TypingResult] = Map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class ExpressionSuggesterSpec
clazzDefinitions,
dictServices,
getClass.getClassLoader,
List("scenarioProperty")
List("scenarioProperty"),
ClassDefinitionTestUtils.DefaultSettings
)

private val localVariables: Map[String, TypingResult] = Map(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package pl.touk.nussknacker.engine.spel.typer

import cats.data.{NonEmptyList, ValidatedNel}
import cats.data.Validated.{Invalid, Valid}
import cats.data.{NonEmptyList, ValidatedNel}
import pl.touk.nussknacker.engine.api.generics.ExpressionParseError
import pl.touk.nussknacker.engine.api.typed.typing._
import pl.touk.nussknacker.engine.definition.clazz.{ClassDefinition, ClassDefinitionSet, MethodDefinition}
import pl.touk.nussknacker.engine.definition.clazz.{ClassDefinition, MethodDefinition}
import pl.touk.nussknacker.engine.extension.ClassDefinitionSetExtensionMethodsAware
import pl.touk.nussknacker.engine.spel.SpelExpressionParseError.IllegalOperationError.IllegalInvocationError
import pl.touk.nussknacker.engine.spel.SpelExpressionParseError.MissingObjectError.UnknownMethodError
import pl.touk.nussknacker.engine.spel.SpelExpressionParseError.{ArgumentTypeError, OverloadedFunctionError}

// todo: lbg imports
class MethodReferenceTyper(
classDefinitionSet: ClassDefinitionSetExtensionMethodsAware,
methodExecutionForUnknownAllowed: Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ trait BaseSpelSpec {
enableSpelForceCompile = false,
SpelExpressionParser.Standard,
classDefinitions,
ClassDefinitionTestUtils.DefaultSettings
)

private lazy val classDefinitions = ClassDefinitionTestUtils.createDefinitionForClasses(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class SpelExpressionSchemedSpec extends AnyFunSuite with Matchers with Validated
new SimpleDictRegistry(Map.empty),
enableSpelForceCompile = false,
Standard,
ClassDefinitionTestUtils.createDefinitionForClasses(classOf[GenericRecord])
ClassDefinitionTestUtils.createDefinitionForClasses(classOf[GenericRecord]),
ClassDefinitionTestUtils.DefaultSettings
)

test("compute avro record's get type based on type of fields") {
Expand Down

0 comments on commit f0f6cf6

Please sign in to comment.