From 7c6ca127ea78d2a8accc9e904275130f8cb8a894 Mon Sep 17 00:00:00 2001 From: Amr Salaheddin Abdelhady <52531091+amrsalah3@users.noreply.github.com> Date: Mon, 14 Nov 2022 19:18:48 +0200 Subject: [PATCH] AC-1055: Fix failing tests of ProviderRoomDAOTest (#979) --- .../mobile/listeners/watcher/dao/ProviderRoomDAOTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openmrs-client/src/androidTest/java/org/openmrs/mobile/listeners/watcher/dao/ProviderRoomDAOTest.java b/openmrs-client/src/androidTest/java/org/openmrs/mobile/listeners/watcher/dao/ProviderRoomDAOTest.java index 01d3f653f..92497d861 100644 --- a/openmrs-client/src/androidTest/java/org/openmrs/mobile/listeners/watcher/dao/ProviderRoomDAOTest.java +++ b/openmrs-client/src/androidTest/java/org/openmrs/mobile/listeners/watcher/dao/ProviderRoomDAOTest.java @@ -14,19 +14,20 @@ package org.openmrs.mobile.listeners.watcher.dao; +import java.util.Objects; + import androidx.arch.core.executor.testing.InstantTaskExecutorRule; import androidx.room.Room; import androidx.test.platform.app.InstrumentationRegistry; +import com.openmrs.android_sdk.library.databases.AppDatabase; +import com.openmrs.android_sdk.library.models.Person; import com.openmrs.android_sdk.library.models.Provider; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; -import com.openmrs.android_sdk.library.databases.AppDatabase; - -import java.util.Objects; public class ProviderRoomDAOTest { @Rule @@ -193,6 +194,7 @@ private Provider newProvider(long id, String uuid, String display, String identi provider.setDisplay(display); provider.setIdentifier(identifier); provider.setRetired(retired); + provider.setPerson(new Person()); return provider; }