From bfd95cf2afbf854078861f5c19f1da042246f02d Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 6 Nov 2017 01:18:10 +0100 Subject: fix test --- .../java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/androidTest') diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java index 97a0e36d..95e83cfe 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java @@ -65,7 +65,7 @@ public class TestVpnCertificateValidator extends InstrumentationTestCase { calendar.set(Calendar.YEAR, 2012); calendar.set(Calendar.MONTH, Calendar.NOVEMBER); - calendar.set(Calendar.DAY_OF_MONTH, 6); + calendar.set(Calendar.DAY_OF_MONTH, 7); validator.setCalendarProvider(new TestCalendarProvider(calendar.getTimeInMillis())); assertTrue(validator.isValid()); @@ -77,10 +77,11 @@ public class TestVpnCertificateValidator extends InstrumentationTestCase { calendar.set(Calendar.YEAR, 2022); calendar.set(Calendar.MONTH, Calendar.OCTOBER); - calendar.set(Calendar.DAY_OF_MONTH, 22); + calendar.set(Calendar.DAY_OF_MONTH, 23); validator.setCalendarProvider(new TestCalendarProvider(calendar.getTimeInMillis())); assertFalse(validator.isValid()); } } +2 \ No newline at end of file -- cgit v1.2.3 From 0af3aaf6a05630d3c3fe2313221340827040ca7f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 6 Nov 2017 13:35:26 +0100 Subject: reduce duplicate code in ConfigurationWizard for different flavors --- .../java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/androidTest') diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java index 95e83cfe..70596c10 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/TestVpnCertificateValidator.java @@ -83,5 +83,4 @@ public class TestVpnCertificateValidator extends InstrumentationTestCase { } -} -2 \ No newline at end of file +} \ No newline at end of file -- cgit v1.2.3