Skip to content

Commit

Permalink
allows all array types as input parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
uklimaschewski committed Mar 18, 2024
1 parent e312439 commit 534a6bd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.ezylang.evalex.config.ExpressionConfiguration;
import com.ezylang.evalex.data.conversion.DefaultEvaluationValueConverter;
import java.util.Optional;
import org.junit.jupiter.api.Test;

class DefaultEvaluationValueConverterTest {
Expand All @@ -46,8 +47,8 @@ void testNestedEvaluationValueNull() {

@Test
void testException() {
assertThatThrownBy(() -> converter.convertObject(new Error(), defaultConfiguration))
assertThatThrownBy(() -> converter.convertObject(Optional.of(1), defaultConfiguration))
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Unsupported data type 'java.lang.Error'");
.hasMessage("Unsupported data type 'java.util.Optional'");
}
}

0 comments on commit 534a6bd

Please sign in to comment.