-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ishan Khanna
committed
Aug 12, 2014
1 parent
37c4873
commit e62bd7a
Showing
5 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sat Jun 28 23:16:05 PDT 2014 | ||
#Tue Aug 12 20:57:57 IST 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
mifosng-android/src/instrumentTest/java/com/mifos/mifosxdroid/tests/LoginActivityTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* This project is licensed under the open source MPL V2. | ||
* See https://github.com/openMF/android-client/blob/master/LICENSE.md | ||
*/ | ||
|
||
package com.mifos.mifosxdroid.tests; | ||
|
||
import android.test.ActivityInstrumentationTestCase2; | ||
import android.test.suitebuilder.annotation.SmallTest; | ||
import android.view.View; | ||
import android.widget.EditText; | ||
|
||
import com.mifos.mifosxdroid.LoginActivity; | ||
import com.mifos.mifosxdroid.R; | ||
|
||
/** | ||
* Created by ishankhanna on 12/08/14. | ||
*/ | ||
public class LoginActivityTest extends ActivityInstrumentationTestCase2<LoginActivity> { | ||
|
||
LoginActivity loginActivity; | ||
EditText et_instance; | ||
|
||
public LoginActivityTest() { | ||
super(LoginActivity.class); | ||
} | ||
|
||
@Override | ||
public void setUp() throws Exception { | ||
super.setUp(); | ||
|
||
loginActivity = getActivity(); | ||
et_instance = (EditText) loginActivity.findViewById(R.id.et_instanceURL); | ||
} | ||
|
||
@SmallTest | ||
public void testEditTextsAreNotNull() { | ||
|
||
assertNotNull(et_instance); | ||
|
||
} | ||
|
||
@SmallTest | ||
public void testAllEditTextsAreVisible() { | ||
|
||
assertEquals(View.VISIBLE, et_instance.getVisibility()); | ||
|
||
} | ||
} |