From 1a6a71cf6358bcb2f7f709957564586d6d17cca9 Mon Sep 17 00:00:00 2001 From: Hamza Ahmed Khan Date: Mon, 7 Aug 2023 11:08:24 +0500 Subject: [PATCH] Increase code coverage --- .../vijay/jsonwizard/activities/JsonFormActivityTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/android-json-form-wizard/src/test/java/com/vijay/jsonwizard/activities/JsonFormActivityTest.java b/android-json-form-wizard/src/test/java/com/vijay/jsonwizard/activities/JsonFormActivityTest.java index 43bebf226..c8cccdb54 100644 --- a/android-json-form-wizard/src/test/java/com/vijay/jsonwizard/activities/JsonFormActivityTest.java +++ b/android-json-form-wizard/src/test/java/com/vijay/jsonwizard/activities/JsonFormActivityTest.java @@ -618,4 +618,10 @@ public void testGetViewKey() throws Exception { assertEquals(key + ":" + childKey, returnKey); } -} + + @Test + public void testGetCOuntSHouldReturnTheCorrectCount() { + activity = Mockito.spy(activity); + assertEquals("1", activity.getCount()); + } +} \ No newline at end of file