From 52d7b5791c5f64642f0d7e06736eb3e27f3cfb2d Mon Sep 17 00:00:00 2001 From: uklimaschewski Date: Wed, 20 Sep 2023 15:29:41 +0200 Subject: [PATCH] - fixes formatting --- .../DefaultEvaluationValueConverterTest.java | 21 ++++++++++++++++--- .../evalex/data/EvaluationValueTest.java | 2 +- .../conversion/DateTimeConverterTest.java | 3 +-- .../data/conversion/NumberConverterTest.java | 3 +-- .../data/conversion/StringConverterTest.java | 3 +-- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/test/java/com/ezylang/evalex/data/DefaultEvaluationValueConverterTest.java b/src/test/java/com/ezylang/evalex/data/DefaultEvaluationValueConverterTest.java index 2375774e..0302e338 100644 --- a/src/test/java/com/ezylang/evalex/data/DefaultEvaluationValueConverterTest.java +++ b/src/test/java/com/ezylang/evalex/data/DefaultEvaluationValueConverterTest.java @@ -1,11 +1,26 @@ -package com.ezylang.evalex.data; +/* + Copyright 2012-2023 Udo Klimaschewski -import com.ezylang.evalex.config.ExpressionConfiguration; -import org.junit.jupiter.api.Test; + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +package com.ezylang.evalex.data; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import com.ezylang.evalex.config.ExpressionConfiguration; +import org.junit.jupiter.api.Test; + class DefaultEvaluationValueConverterTest { private final DefaultEvaluationValueConverter converter = new DefaultEvaluationValueConverter(); diff --git a/src/test/java/com/ezylang/evalex/data/EvaluationValueTest.java b/src/test/java/com/ezylang/evalex/data/EvaluationValueTest.java index 3d0fb121..1c5d0337 100644 --- a/src/test/java/com/ezylang/evalex/data/EvaluationValueTest.java +++ b/src/test/java/com/ezylang/evalex/data/EvaluationValueTest.java @@ -18,9 +18,9 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import com.ezylang.evalex.config.ExpressionConfiguration; import com.ezylang.evalex.EvaluationException; import com.ezylang.evalex.Expression; +import com.ezylang.evalex.config.ExpressionConfiguration; import com.ezylang.evalex.parser.ASTNode; import com.ezylang.evalex.parser.ParseException; import com.ezylang.evalex.parser.Token; diff --git a/src/test/java/com/ezylang/evalex/data/conversion/DateTimeConverterTest.java b/src/test/java/com/ezylang/evalex/data/conversion/DateTimeConverterTest.java index 6ef4e3a3..b2d68305 100644 --- a/src/test/java/com/ezylang/evalex/data/conversion/DateTimeConverterTest.java +++ b/src/test/java/com/ezylang/evalex/data/conversion/DateTimeConverterTest.java @@ -145,8 +145,7 @@ void testCanNotConvert() { @Test void testException() { - assertThatThrownBy( - () -> converter.convert("hello", defaultConfiguration)) + assertThatThrownBy(() -> converter.convert("hello", defaultConfiguration)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Unsupported data type 'java.lang.String'"); } diff --git a/src/test/java/com/ezylang/evalex/data/conversion/NumberConverterTest.java b/src/test/java/com/ezylang/evalex/data/conversion/NumberConverterTest.java index a1db3cdf..58f54960 100644 --- a/src/test/java/com/ezylang/evalex/data/conversion/NumberConverterTest.java +++ b/src/test/java/com/ezylang/evalex/data/conversion/NumberConverterTest.java @@ -115,8 +115,7 @@ void testCanNotConvert() { @Test void testException() { - assertThatThrownBy( - () -> converter.convert("not a number", defaultConfiguration)) + assertThatThrownBy(() -> converter.convert("not a number", defaultConfiguration)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Unsupported data type 'java.lang.String'"); } diff --git a/src/test/java/com/ezylang/evalex/data/conversion/StringConverterTest.java b/src/test/java/com/ezylang/evalex/data/conversion/StringConverterTest.java index 085b1d1b..12088d96 100644 --- a/src/test/java/com/ezylang/evalex/data/conversion/StringConverterTest.java +++ b/src/test/java/com/ezylang/evalex/data/conversion/StringConverterTest.java @@ -60,8 +60,7 @@ void testCanNotConvert() { @Test void testException() { - assertThatThrownBy( - () -> converter.convert(7, defaultConfiguration)) + assertThatThrownBy(() -> converter.convert(7, defaultConfiguration)) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Unsupported data type 'java.lang.Integer'"); }