Skip to content

Commit

Permalink
- fixes formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
uklimaschewski committed Sep 20, 2023
1 parent 3725c84 commit 52d7b57
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
}
Expand Down

0 comments on commit 52d7b57

Please sign in to comment.