diff --git a/src/test/java/com/spotify/confidence/ConfidenceTest.java b/src/test/java/com/spotify/confidence/ConfidenceTest.java index 160fa607..af7eb8c5 100644 --- a/src/test/java/com/spotify/confidence/ConfidenceTest.java +++ b/src/test/java/com/spotify/confidence/ConfidenceTest.java @@ -76,20 +76,21 @@ void getFullValue() { @Test void getValueIncompatibleType() { final Confidence confidence = Confidence.create(fakeEngine, fakeFlagResolverClient); - FlagEvaluation evaluation = confidence.getEvaluation("flag.prop-E", "test"); + final FlagEvaluation evaluation = confidence.getEvaluation("flag.prop-E", "test"); assertEquals("test", evaluation.getValue()); assertEquals("", evaluation.getVariant()); assertEquals("ERROR", evaluation.getReason()); assertEquals(ErrorType.INVALID_VALUE_TYPE, evaluation.getErrorType().get()); assertEquals( - "Default type class java.lang.String, but value of type class com.spotify.confidence.ConfidenceValue$Integer", + "Default type class java.lang.String, but value of " + + "type class com.spotify.confidence.ConfidenceValue$Integer", evaluation.getErrorMessage().get()); } @Test void getValueUnsupportedType() { final Confidence confidence = Confidence.create(fakeEngine, fakeFlagResolverClient); - FlagEvaluation evaluation = + final FlagEvaluation evaluation = confidence.getEvaluation("flag.prop-E", Date.valueOf("2024-4-2")); assertEquals(Date.valueOf("2024-4-2"), evaluation.getValue()); assertEquals("", evaluation.getVariant()); @@ -101,7 +102,8 @@ void getValueUnsupportedType() { @Test void getNullValue() { final Confidence confidence = Confidence.create(fakeEngine, fakeFlagResolverClient); - FlagEvaluation evaluation = confidence.getEvaluation("flag.prop-G.prop-H", "test"); + final FlagEvaluation evaluation = + confidence.getEvaluation("flag.prop-G.prop-H", "test"); assertEquals("test", evaluation.getValue()); assertEquals("flags/flag/variants/var-A", evaluation.getVariant()); assertEquals("RESOLVE_REASON_MATCH", evaluation.getReason()); diff --git a/src/test/java/com/spotify/confidence/ConfidenceTypeMapperTest.java b/src/test/java/com/spotify/confidence/ConfidenceTypeMapperTest.java deleted file mode 100644 index 9c708ba5..00000000 --- a/src/test/java/com/spotify/confidence/ConfidenceTypeMapperTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.spotify.confidence; - -import static org.junit.jupiter.api.Assertions.*; - -import org.junit.jupiter.api.Test; - -class ConfidenceTypeMapperTest { - - @Test - public void test() {} -}