From 5bfb5fa6beaf02a61bbba02cff8ad2814890511f Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Wed, 16 Jun 2021 19:29:40 +0800 Subject: [PATCH] Delete MsgUtilTest --- .../maxgamer/quickshop/util/MsgUtilTest.java | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100644 src/test/java/org/maxgamer/quickshop/util/MsgUtilTest.java diff --git a/src/test/java/org/maxgamer/quickshop/util/MsgUtilTest.java b/src/test/java/org/maxgamer/quickshop/util/MsgUtilTest.java deleted file mode 100644 index 5c939408d..000000000 --- a/src/test/java/org/maxgamer/quickshop/util/MsgUtilTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * This file is a part of project QuickShop, the name is MsgUtilTest.java - * Copyright (C) PotatoCraft Studio and contributors - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -package org.maxgamer.quickshop.util; - -import org.junit.Assert; -import org.junit.Test; -import org.junit.jupiter.api.Assertions; - -public class MsgUtilTest { - - @Test - public void testNullLevelEnchantment() { - try { - Integer integer = null; - RomanNumber.toRoman(integer); - } catch (Exception e) { - Assert.fail("Failed to test null number input"); - } - } - - @Test - public void fillArgs() { - String sample = "I like apple and orange"; - Assertions.assertEquals(sample, MsgUtil.fillArgs("I like {0} and {1}", "apple", "orange")); - } - - @Test - public void getSubString() { - String sample = "cra"; - Assertions.assertEquals(sample, MsgUtil.getSubString("Minecraft", "Mine", "ft")); - } - - @Test - public void isJson() { - Assertions.assertTrue(MsgUtil.isJson("{}")); - Assertions.assertTrue(MsgUtil.isJson("[]")); - Assertions.assertFalse(MsgUtil.isJson("{]")); - } - -}