package home.smart.fly.animations.junit;

import home.smart.fly.animations.utils.Tools;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;

/**
 * @author: rookie
 * @since: 2018-12-20
 * <p>
 * https://blog.csdn.net/qq_17766199/column/info/18260
 */
public class ToolsUnitTest {

    private String version = "1.0.0";

    @BeforeClass
    public static void setUp() {
        System.out.println(ToolsUnitTest.class.getSimpleName() + "=====单元测试开始");
    }

    @AfterClass
    public static void end() {
        System.out.println(ToolsUnitTest.class.getSimpleName() + "=====单元测结束");
    }

    @Test
    public void ToolsTest() {
        assertNotEquals("1111", Tools.getCurrentTime());
        // 起码在 2019 年，这条测试是可以通过的
        assertEquals("2019年", Tools.getCurrentTime(System.currentTimeMillis()));
    }

}

@@ -824,18 +824,18 @@
 / %E8%B5%B7%E7%A0%81%E5%9C%A8 20
-19
+20
  %E5%B9%B4%EF%BC%8C%E8%BF%99%E6%9D%A1%E6%B5%8B%E8%AF%95%E6%98%AF
@@ -864,18 +864,18 @@
 uals(%2220
-19
+20
 %E5%B9%B4%22, Tool

fix unit test fail issue