com.ifpe.poker.model.NewEmptyJUnitTest.java Source code

Java tutorial

Introduction

Here is the source code for com.ifpe.poker.model.NewEmptyJUnitTest.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ifpe.poker.model;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Timer;
import java.util.TimerTask;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.json.JSONObject;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Lourivaldo
 */
public class NewEmptyJUnitTest {

    public NewEmptyJUnitTest() {
    }

    @BeforeClass
    public static void setUpClass() {
    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    @Test
    public void hello() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            int i = 10;

            @Override
            public void run() {
                if (i <= 0) {
                    cancel();
                }
                System.out.println(i--);
            }
        }, 5000, 1000);

        //        assertSame(player, list.get(0));
    }
}