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
commit d69181fe75d9cfa4542d565f4ca4af4cd8f8d013 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sun Aug 4 10:28:31 2019 -0400 Sort members. --- ...tringSubstitutorWithInterpolatorStringLookupTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java index e70e953..e7e35e3 100644 --- a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java +++ b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java @@ -69,6 +69,14 @@ public class StringSubstitutorWithInterpolatorStringLookupTest { } @Test + void testJavaScript() { + Assertions.assertEquals("Hello World!", + StringSubstitutor.createInterpolator().replace("${script:javascript:\"Hello World!\"}")); + Assertions.assertEquals("7", + StringSubstitutor.createInterpolator().replace("${script:javascript:3 + 4}")); + } + + @Test public void testLocalHostLookup_Address() throws UnknownHostException { final StringSubstitutor strSubst = StringSubstitutor.createInterpolator(); Assertions.assertEquals(InetAddress.getLocalHost().getHostAddress(), strSubst.replace("${localhost:address}")); @@ -101,14 +109,6 @@ public class StringSubstitutorWithInterpolatorStringLookupTest { } @Test - void testJavaScript() { - Assertions.assertEquals("Hello World!", - StringSubstitutor.createInterpolator().replace("${script:javascript:\"Hello World!\"}")); - Assertions.assertEquals("7", - StringSubstitutor.createInterpolator().replace("${script:javascript:3 + 4}")); - } - - @Test public void testSystemProperty() { final StringSubstitutor strSubst = StringSubstitutor.createInterpolator(); final String spKey = "user.name";