package chapter20_annotations;import net.mindview.atunit.*;
import net.mindview.util.*;
/**
 *@Name:
 *@Date:Jul 2, 2011 10:56:44 AM
 *@TODO:基于注解的单元测试
 */
public class AtUnitExample {
public String methodOne(){
return "Method1";
}

public int methodTwo(){
System.out.println( "Method2");
return 2;
}

@Test boolean methodOneTest(){
return methodOne().equals("Method1");
}

@Test boolean m2(){
return methodTwo()==2;
}

@Test private boolean m3(){
return true;
}

@Test boolean failureTest(){
return false;
}

@Test boolean anotherDisappointment(){
return false;
}

public static void main(String args[]){
OSExecute.command("java net.mindview.atunit.AtUnit AtUnitExample");
}


}