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 98fac133ecd7f700dd9c90b93536d5dc96096285 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sun Aug 4 15:58:34 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 ed4dc03..feb73eb 100644 --- a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java +++ b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java @@ -116,6 +116,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}")); @@ -148,14 +156,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";