Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Fixed Failing Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ephraim Muhia <emuhia@ona.io>
  • Loading branch information
Ephraim Muhia committed Aug 22, 2017
1 parent b43e8f3 commit 91a37f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void shouldReadEventsCreatedEvents() throws URISyntaxException {
Map<String, String> m = any();
when(wc.fetch(any(URI.class), any(AtomFeedProperties.class), m)).thenReturn("<?xml version=\"1.0\" encoding=\"UTF-8\"?> <feed xmlns=\"http://www.w3.org/2005/Atom\"> <title>Patient AOP</title> <link rel=\"self\" type=\"application/atom+xml\" href=\"http://localhost:8181/openmrs/atomfeed/patient/recent.form\" /> <link rel=\"via\" type=\"application/atom+xml\" href=\"http://localhost:8181/openmrs/atomfeed/patient/1\" /> <author> <name>OpenMRS</name> </author> <id>bec795b1-3d17-451d-b43e-a094019f6984+1</id> <generator uri=\"https://github.com/ICT4H/atomfeed\">OpenMRS Feed Publisher</generator> <updated>2016-03-09T14:47:58Z</updated> <entry> <title>Patient</title> <category term=\"patient\" /> <id>tag:atomfeed.ict4h.org:f376d71e-6ddd-465e-b224-bbe624cbf97f</id> <updated>2016-03-09T14:47:58Z</updated> <published>2016-03-09T14:47:58Z</published> <content type=\"application/vnd.atomfeed+xml\"><![CDATA[/openmrs/ws/rest/v1/patient/42034a79-48bc-47d0-a255-139031665581?v=full]]></content> </entry> </feed> ");

PatientAtomfeed paf = new PatientAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), openmrsOpenmrsUrl, patientService, cs);
PatientAtomfeed paf = new PatientAtomfeed(new AllMarkersInMemoryImpl(), new AllFailedEventsInMemoryImpl(), openmrsOpenmrsUrl, patientService, cs, es);

if(pushToOpenmrsForTest){
paf.processEvents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public AtomFeedIntegrationTest() throws IOException {

@Test
public void shouldReadEventsCreatedEvents() throws URISyntaxException {
PatientAtomfeed paf = new PatientAtomfeed(allMarkers, allFailedEvents, openmrsOpenmrsUrl, patientService, clientService);
PatientAtomfeed paf = new PatientAtomfeed(allMarkers, allFailedEvents, openmrsOpenmrsUrl, patientService, clientService, eventService);

EncounterAtomfeed eaf = new EncounterAtomfeed(allMarkers, allFailedEvents, openmrsOpenmrsUrl, encounterService, eventService);
if(pushToOpenmrsForTest){
Expand Down

0 comments on commit 91a37f5

Please sign in to comment.