junit
ygl6150373
这个作者很懒,什么都没留下…
展开
-
junit(二)
package com.ygl; public class Calculator { public int add(int a,int b){ return a+b; } public int subtract(int a,int b){ return a-b; } public int multiply(int a,原创 2016-01-24 17:27:40 · 284 阅读 · 0 评论 -
junit(一)
package com.ygl; public class MyStack { private String [] elements; private int nextIndex; public MyStack(){ elements=new String [100]; nextIndex=0; } public void push(原创 2016-01-24 17:26:38 · 222 阅读 · 0 评论 -
junit(三)
package com.ygl; import java.io.File; public class DeleteAll { public static void deleteAll(File file){ if(file.isFile()||file.list().length==0){ file.delete(); }else{原创 2016-01-24 21:29:53 · 266 阅读 · 0 评论 -
junit(四)
package com.ygl; public class Calculator { private int add(int a,int b){ return a+b; } } //************************************** package com.ygl; import java.lang.reflect.原创 2016-01-24 21:37:13 · 213 阅读 · 0 评论 -
junit(五)TestSuite
package com.ygl; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; public class TestAll extends TestCase{ public static Test suite(){原创 2016-01-24 21:53:24 · 428 阅读 · 0 评论 -
junit(六)
package com.ygl; public class Calculator { public int add(int a,int b){ try { Thread.sleep(500); } catch (InterruptedException e) { // TODO Auto-generated catch block e.print原创 2016-01-24 23:10:51 · 235 阅读 · 0 评论 -
junit(七)
package com.ygl; public class Calculator { public int add(int a,int b){ try { Thread.sleep(500); } catch (InterruptedException e) { // TODO Auto-generated catch block e.print原创 2016-01-24 23:12:03 · 215 阅读 · 0 评论