SubwayTooter-Android-App/app/src/test/java/jp/juggler/subwaytooter/ExampleUnitTest.java

24 lines
627 B
Java
Raw Normal View History

2017-04-20 18:23:59 +02:00
package jp.juggler.subwaytooter;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect(){
2017-04-20 18:23:59 +02:00
assertEquals( 4, 2 + 2 );
}
2017-05-21 12:47:30 +02:00
/*
test は開発環境側で行われて実機が必要なAPIは"not mocked"と怒られて失敗する
SparseIntArray等を利用できない
2017-05-21 12:47:30 +02:00
androidTest の方は実機かエミュレータで動作する
*/
2017-04-20 18:23:59 +02:00
}