Repository: commons-text Updated Branches: refs/heads/master b267aa526 -> d9021a76e
[TEXT-147] Add a Base64 encoder string lookup. Better test. Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/d9021a76 Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/d9021a76 Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/d9021a76 Branch: refs/heads/master Commit: d9021a76e5a2e07c022503909844e6d1de3b20b4 Parents: b267aa5 Author: Gary Gregory <ggreg...@rocketsoftware.com> Authored: Sat Oct 6 08:41:36 2018 -0600 Committer: Gary Gregory <ggreg...@rocketsoftware.com> Committed: Sat Oct 6 08:41:36 2018 -0600 ---------------------------------------------------------------------- .../text/lookup/StringLookupFactoryTest.java | 32 ++++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/d9021a76/src/test/java/org/apache/commons/text/lookup/StringLookupFactoryTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/text/lookup/StringLookupFactoryTest.java b/src/test/java/org/apache/commons/text/lookup/StringLookupFactoryTest.java index 71ca8c0..5c4169a 100644 --- a/src/test/java/org/apache/commons/text/lookup/StringLookupFactoryTest.java +++ b/src/test/java/org/apache/commons/text/lookup/StringLookupFactoryTest.java @@ -30,22 +30,22 @@ public class StringLookupFactoryTest { @Test public void testSingletons() { final StringLookupFactory stringLookupFactory = StringLookupFactory.INSTANCE; - Assertions.assertEquals(Base64DecoderStringLookup.INSTANCE, stringLookupFactory.base64DecoderStringLookup()); - Assertions.assertEquals(Base64EncoderStringLookup.INSTANCE, stringLookupFactory.base64EncoderStringLookup()); - Assertions.assertEquals(ConstantStringLookup.INSTANCE, stringLookupFactory.constantStringLookup()); - Assertions.assertEquals(DateStringLookup.INSTANCE, stringLookupFactory.dateStringLookup()); - Assertions.assertEquals(EnvironmentVariableStringLookup.INSTANCE, + Assertions.assertSame(Base64DecoderStringLookup.INSTANCE, stringLookupFactory.base64DecoderStringLookup()); + Assertions.assertSame(Base64EncoderStringLookup.INSTANCE, stringLookupFactory.base64EncoderStringLookup()); + Assertions.assertSame(ConstantStringLookup.INSTANCE, stringLookupFactory.constantStringLookup()); + Assertions.assertSame(DateStringLookup.INSTANCE, stringLookupFactory.dateStringLookup()); + Assertions.assertSame(EnvironmentVariableStringLookup.INSTANCE, stringLookupFactory.environmentVariableStringLookup()); - Assertions.assertEquals(InterpolatorStringLookup.INSTANCE, stringLookupFactory.interpolatorStringLookup()); - Assertions.assertEquals(JavaPlatformStringLookup.INSTANCE, stringLookupFactory.javaPlatformStringLookup()); - Assertions.assertEquals(LocalHostStringLookup.INSTANCE, stringLookupFactory.localHostStringLookup()); - Assertions.assertEquals(NullStringLookup.INSTANCE, stringLookupFactory.nullStringLookup()); - Assertions.assertEquals(ResourceBundleStringLookup.INSTANCE, stringLookupFactory.resourceBundleStringLookup()); - Assertions.assertEquals(ScriptStringLookup.INSTANCE, stringLookupFactory.scriptStringLookup()); - Assertions.assertEquals(SystemPropertyStringLookup.INSTANCE, stringLookupFactory.systemPropertyStringLookup()); - Assertions.assertEquals(UrlDecoderStringLookup.INSTANCE, stringLookupFactory.urlDecoderStringLookup()); - Assertions.assertEquals(UrlEncoderStringLookup.INSTANCE, stringLookupFactory.urlEncoderStringLookup()); - Assertions.assertEquals(UrlStringLookup.INSTANCE, stringLookupFactory.urlStringLookup()); - Assertions.assertEquals(XmlStringLookup.INSTANCE, stringLookupFactory.xmlStringLookup()); + Assertions.assertSame(InterpolatorStringLookup.INSTANCE, stringLookupFactory.interpolatorStringLookup()); + Assertions.assertSame(JavaPlatformStringLookup.INSTANCE, stringLookupFactory.javaPlatformStringLookup()); + Assertions.assertSame(LocalHostStringLookup.INSTANCE, stringLookupFactory.localHostStringLookup()); + Assertions.assertSame(NullStringLookup.INSTANCE, stringLookupFactory.nullStringLookup()); + Assertions.assertSame(ResourceBundleStringLookup.INSTANCE, stringLookupFactory.resourceBundleStringLookup()); + Assertions.assertSame(ScriptStringLookup.INSTANCE, stringLookupFactory.scriptStringLookup()); + Assertions.assertSame(SystemPropertyStringLookup.INSTANCE, stringLookupFactory.systemPropertyStringLookup()); + Assertions.assertSame(UrlDecoderStringLookup.INSTANCE, stringLookupFactory.urlDecoderStringLookup()); + Assertions.assertSame(UrlEncoderStringLookup.INSTANCE, stringLookupFactory.urlEncoderStringLookup()); + Assertions.assertSame(UrlStringLookup.INSTANCE, stringLookupFactory.urlStringLookup()); + Assertions.assertSame(XmlStringLookup.INSTANCE, stringLookupFactory.xmlStringLookup()); } }