2

JUnit Tesing私はアンドロイドで学びたいです。私はグーグルをやっていて、今ではJUnitテストケースを作成する方法を知っています. しかし、そのクラスでロジックを記述する方法が私の問題であり、それについてはわかりません。

カスタムリストビューのテストケースを書きたいとしたら、どうすれば達成できますか? その方向性を教えてください。

public class CustomlistviewActivityTest extends TestCase {

protected void setUp() throws Exception {
    super.setUp();
}

protected void tearDown() throws Exception {
    super.tearDown();
}

public void testOnCreateBundle() {       // this is oncreate method
    fail("Not yet implemented");
}

public void testOnCreateContextMenuContextMenuViewContextMenuInfo() {
    fail("Not yet implemented");     // this method is for the create the context menu
}

public void testOnContextItemSelectedMenuItem() {
    fail("Not yet implemented");     // this method is for the select the item of the context menu
                //   on select items call the below method named testFunction1()
}

public void testFunction1() {
    fail("Not yet implemented");     // display toast
}

public void testFunction2() {
    fail("Not yet implemented");        // display toast
}

public void testOnItemClick() {
    fail("Not yet implemented");          // display toast
}

}

ありがとう。

4

0 に答える 0