Back to project page filmster.
The source code is released under:
Apache License
If you think the Android project filmster listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.doodeec.filmster.ApplicationState; //from www. ja v a2 s . c om import android.app.Activity; import android.test.ApplicationTestCase; import com.doodeec.filmster.Helper; /** * Created by Dusan Doodeec Bartos on 26.10.2014. * * @see com.doodeec.filmster.ApplicationState.AppState */ public class AppStateSpec extends ApplicationTestCase<AppState> { public AppStateSpec() { super(AppState.class); } @Override protected void setUp() throws Exception { super.setUp(); createApplication(); } public void testContext() throws Exception { assertNotNull(AppState.getContext()); } public void testIsOnline() throws Exception { assertEquals(Helper.isOnline(), AppState.getIsApplicationOnline()); } public void testCurrentActivity() throws Exception { Activity activity = new Activity(); assertNotSame(activity, AppState.getCurrentActivity()); AppState.setCurrentActivity(activity); assertEquals(activity, AppState.getCurrentActivity()); } }