From 913f8f55005f3b1cf6fc719f8b22390afff7ce40 Mon Sep 17 00:00:00 2001 From: Sam Gardner Date: Thu, 14 Sep 2023 16:03:19 +0100 Subject: [PATCH] BAEL-6811 remove emoji4j usage --- core-java-modules/core-java-string-algorithms-3/pom.xml | 5 ----- .../java/com/baeldung/findemojis/FindEmojisUnitTest.java | 9 --------- 2 files changed, 14 deletions(-) diff --git a/core-java-modules/core-java-string-algorithms-3/pom.xml b/core-java-modules/core-java-string-algorithms-3/pom.xml index 1122cbec6d..9c704c9f40 100644 --- a/core-java-modules/core-java-string-algorithms-3/pom.xml +++ b/core-java-modules/core-java-string-algorithms-3/pom.xml @@ -23,11 +23,6 @@ commons-lang3 ${apache-commons-lang3.version} - - com.kcthota - emoji4j - 6.0 - com.vdurmont emoji-java diff --git a/core-java-modules/core-java-string-algorithms-3/src/test/java/com/baeldung/findemojis/FindEmojisUnitTest.java b/core-java-modules/core-java-string-algorithms-3/src/test/java/com/baeldung/findemojis/FindEmojisUnitTest.java index 2400e052b3..2c1a43fdaa 100644 --- a/core-java-modules/core-java-string-algorithms-3/src/test/java/com/baeldung/findemojis/FindEmojisUnitTest.java +++ b/core-java-modules/core-java-string-algorithms-3/src/test/java/com/baeldung/findemojis/FindEmojisUnitTest.java @@ -11,15 +11,6 @@ import emoji4j.EmojiUtils; public class FindEmojisUnitTest { - @Test - public void givenAWord_whenUsingEmoji4J_thenDetectEmoji() { - boolean emoji = EmojiUtils.isEmoji("\uD83D\uDC3B"); - assertTrue(emoji); - - boolean notEmoji = EmojiUtils.isEmoji("w"); - assertFalse(notEmoji); - } - @Test public void givenAWord_whenUsingEmojiJava_thenDetectEmoji() { boolean emoji = EmojiManager.isEmoji("\uD83D\uDC3B");