Back to project page cidrcalculator.
The source code is released under:
Apache License
If you think the Android project cidrcalculator 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 us.lindanrandy.cidrcalculator; /*from ww w. j a v a2 s. c o m*/ import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.LargeTest; import static android.support.test.espresso.Espresso.onData; import static android.support.test.espresso.Espresso.onView; import static android.support.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu; import static android.support.test.espresso.action.ViewActions.click; import static android.support.test.espresso.action.ViewActions.typeText; import static android.support.test.espresso.assertion.ViewAssertions.matches; import static android.support.test.espresso.matcher.ViewMatchers.withId; import static android.support.test.espresso.matcher.ViewMatchers.withText; import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.core.Is.is; import static org.hamcrest.core.IsInstanceOf.instanceOf; @LargeTest public class ConverterTest extends ActivityInstrumentationTestCase2<Converter> { public ConverterTest() { super(Converter.class); } @Override public void setUp() throws Exception { super.setUp(); getActivity(); } public void testOpenConverter() { onView(withId(R.id.converter_ipaddress)).perform(typeText("192.168.1.13")); onView(withId(R.id.convertdec)).perform(click()); } }