Skip to content

Commit

Permalink
AC-1055: Fix failing tests of ProviderRoomDAOTest (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrsalah3 authored Nov 14, 2022
1 parent 9360e3a commit 7c6ca12
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c6ca12

Please sign in to comment.