diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-08-01 11:52:15 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-08-01 11:52:15 +0200 |
commit | df28eb6b04a4d1a668e4e4b20c70f24a43aa84ce (patch) | |
tree | 60e309bcf9af9dddba7b200d65cc92663749982c /src/instrumentationTest/de | |
parent | 988b327efe5a3c0c1b8323425f982a8cea9bd25b (diff) | |
download | AntennaPod-df28eb6b04a4d1a668e4e4b20c70f24a43aa84ce.zip |
Use requestWindowFeature instead of support version
supportRequestWindowFeature throws a NullpointerException in some cases
closes #479
Diffstat (limited to 'src/instrumentationTest/de')
-rw-r--r-- | src/instrumentationTest/de/test/antennapod/ui/VideoplayerActivityTest.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/instrumentationTest/de/test/antennapod/ui/VideoplayerActivityTest.java b/src/instrumentationTest/de/test/antennapod/ui/VideoplayerActivityTest.java new file mode 100644 index 000000000..807552571 --- /dev/null +++ b/src/instrumentationTest/de/test/antennapod/ui/VideoplayerActivityTest.java @@ -0,0 +1,38 @@ +package instrumentationTest.de.test.antennapod.ui; + +import android.test.ActivityInstrumentationTestCase2; + +import com.robotium.solo.Solo; + +import de.danoeh.antennapod.activity.VideoplayerActivity; + +/** + * Test class for VideoplayerActivity + */ +public class VideoplayerActivityTest extends ActivityInstrumentationTestCase2<VideoplayerActivity> { + + private Solo solo; + + public VideoplayerActivityTest() { + super(VideoplayerActivity.class); + } + + @Override + public void setUp() throws Exception { + super.setUp(); + solo = new Solo(getInstrumentation(), getActivity()); + } + + @Override + public void tearDown() throws Exception { + solo.finishOpenedActivities(); + super.tearDown(); + } + + /** + * Test if activity can be started. + */ + public void testStartActivity() throws Exception { + solo.waitForActivity(VideoplayerActivity.class); + } +} |