This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push: new 2098abc Checkstyle. 2098abc is described below commit 2098abc549e16ad0db6d3b08caaca77b735481c6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jun 27 15:05:06 2020 -0400 Checkstyle. --- .../org/apache/commons/text/lookup/ScriptStringLookupTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/text/lookup/ScriptStringLookupTest.java b/src/test/java/org/apache/commons/text/lookup/ScriptStringLookupTest.java index 2f5c2df..19d4410 100644 --- a/src/test/java/org/apache/commons/text/lookup/ScriptStringLookupTest.java +++ b/src/test/java/org/apache/commons/text/lookup/ScriptStringLookupTest.java @@ -29,8 +29,8 @@ import org.junit.jupiter.api.Test; */ public class ScriptStringLookupTest { - private final String JS_NAME = "JavaScript"; - + private static final String JS_NAME = "JavaScript"; + @Test public void testBadEngineName() { assertThrows(IllegalArgumentException.class, () -> { @@ -59,7 +59,7 @@ public class ScriptStringLookupTest { @Test public void testOne() { - Assertions.assertEquals("Hello World!", ScriptStringLookup.INSTANCE.lookup(JS_NAME+":\"Hello World!\"")); + Assertions.assertEquals("Hello World!", ScriptStringLookup.INSTANCE.lookup(JS_NAME + ":\"Hello World!\"")); } @Test @@ -77,7 +77,7 @@ public class ScriptStringLookupTest { @Test public void testScriptUsingMultipleColons() { Assertions.assertEquals("It Works", - ScriptStringLookup.INSTANCE.lookup(JS_NAME+":true ? \"It Works\" : \"It Does Not Work\" ")); + ScriptStringLookup.INSTANCE.lookup(JS_NAME + ":true ? \"It Works\" : \"It Does Not Work\" ")); } }