LoginActivity extends AppCompatActivity { public static boolean isSupportedVersion(int[] version) { return version[0] > Constants.minKanboardVersion[0] || (version[0] == Constants.minKanboardVersion[0] && version[1] > Constants.minKanboardVersion[1]) || (version[0] == Constants.minKanboardVersion[0] && version[1] == Constants.minKanboardVersion[1] && version[2] >= Constants.minKanboardVersion[2]); }  @Override boolean onOptionsItemSelected(MenuItem item); static boolean isSupportedVersion(int[] version);  }
@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})); }