junit usage

来源:互联网 发布:苹果显示器知乎 编辑:程序博客网 时间:2024/05/22 06:09

package patterns;


import static org.junit.Assert.*;


import org.junit.Test;


public class TestSingleton {


@Test

public void test() {

//fail("Not yet implemented");

SingletonObject obj = SingletonObject.getInstance();

assertTrue(obj instanceof SingletonObject);

}


}

0 0
原创粉丝点击