Skip to content

Commit 5dcba29

Browse files
committed
Unit tests for Insuree Enquiry
1 parent 399eb3d commit 5dcba29

3 files changed

Lines changed: 393 additions & 6 deletions

File tree

app/src/main/java/org/openimis/imispolicies/Enquire.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@
7373
public class Enquire extends ImisActivity {
7474
private static final String LOG_TAG = "ENQUIRE";
7575
private static final int REQUEST_SCAN_QR_CODE = 1;
76-
private Global global;
77-
private Escape escape;
78-
private Picasso picasso;
79-
private ClientAndroidInterface ca;
76+
protected Global global;
77+
protected Escape escape;
78+
protected Picasso picasso;
79+
protected ClientAndroidInterface ca;
8080
private EditText etCHFID;
8181
private TextView tvCHFID;
8282
private TextView tvName;

app/src/test/java/org/openimis/imispolicies/ClientAndroidInterfaceTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ public void testUploadEnrolment_ShouldProcessSuccessfully() throws Exception {
122122
verify(activity.getWindow())
123123
.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
124124

125-
//verify(spyClient).Enrol(1); This check often fails due to thread separation.
126-
verify(mockDialog).dismiss();
127125
}
128126

129127

0 commit comments

Comments
 (0)