package com.hjx.personalcenter; import org.junit.Test; import java.util.Timer; import java.util.TimerTask; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see Testing documentation */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { // assertEquals(4, 2 + 2); Timer timer = new Timer(); timer.schedule(new TimerTask() { @Override public void run() { System.out.print("爆炸"); } }, 60 * 1000, 1000); } }