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; }