File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
collect_app/src/test/java/org/odk/collect/android/formentry/audit Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 10
10
import static org .mockito .Mockito .verify ;
11
11
import static org .mockito .Mockito .when ;
12
12
13
+ import java .io .File ;
14
+ import java .io .IOException ;
15
+
13
16
@ RunWith (AndroidJUnit4 .class )
14
17
public class IdentityPromptViewModelTest {
15
18
16
19
@ Test
17
- public void done_setsUserOnAuditEventLogger () {
20
+ public void done_setsUserOnAuditEventLogger () throws IOException {
18
21
FormController formController = mock (FormController .class );
19
22
AuditEventLogger auditEventLogger = mock (AuditEventLogger .class );
20
23
when (formController .getAuditEventLogger ()).thenReturn (auditEventLogger );
24
+ when (formController .getInstanceFile ()).thenReturn (File .createTempFile ("instance" , ".xml" ));
21
25
22
26
IdentityPromptViewModel viewModel = new IdentityPromptViewModel ();
23
27
You can’t perform that action at this time.
0 commit comments