import org.junit.Test; import org.junit.runner.RunWith; import com.example.MyClass; import static org.junit.Assert.*; @RunWith(ScenarLangTestRunner.class) public class MyExampleTest { @Test public void testMethod() { MyClass myClass = new MyClass(); int result = myClass.myMethod(2, 3); assertEquals(5, result); } }


上一篇:
下一篇:
切换中文