Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean checkEditText(int number) {
- return number > 0 ? true : false;
- }
- public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {
- public MainActivityTest() {
- super(MainActivity.class);
- }
- public void testCheckNumber() {
- MainActivity activity = getActivity();
- boolean action = activity.checkEditText(0);
- Assert.assertTrue(action);
- }
- }
- Assert.assertTrue(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement