-
Notifications
You must be signed in to change notification settings - Fork 24
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
1 parent
985750b
commit 80a6462
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
app/src/test/java/in/andres/kandroid/ui/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,25 @@ | ||
package in.andres.kandroid.ui; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertFalse; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
public class LoginActivityTest { | ||
|
||
@Test | ||
public void testUnsupportedVersion() { | ||
assertFalse(LoginActivity.isSupportedVersion(new int[] {1, 0, 30})); | ||
} | ||
|
||
@Test | ||
public void testOldSupportedVersion() { | ||
assertTrue(LoginActivity.isSupportedVersion(new int[] {1, 0, 39})); | ||
} | ||
|
||
@Test | ||
public void testRecentSupportedVersion() { | ||
assertTrue(LoginActivity.isSupportedVersion(new int[] {1, 2, 0})); | ||
} | ||
|
||
} |