Fix android tests (#2321)
This commit is contained in:
parent
66e6cab21f
commit
5d2e830b15
|
@ -103,12 +103,17 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<classpathDependencyExcludes>
|
||||||
|
<dependencyExclude>org.slf4j:slf4j-android</dependencyExclude>
|
||||||
|
</classpathDependencyExcludes>
|
||||||
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>it</id>
|
<id>it</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>integration-test</goal>
|
<goal>integration-test</goal>
|
||||||
|
<goal>verify</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<includes>
|
<includes>
|
||||||
|
|
|
@ -143,7 +143,7 @@ public class GenericClientDstu3IT {
|
||||||
.returnBundle(Bundle.class)
|
.returnBundle(Bundle.class)
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
assertEquals("http://example.com/fhir/Patient?_format=json", capt.getAllValues().get(idx).url().toString());
|
assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(idx).url().toString());
|
||||||
idx++;
|
idx++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ public class GenericClientDstu3IT {
|
||||||
Request request = capt.getAllValues().get(0);
|
Request request = capt.getAllValues().get(0);
|
||||||
ourLog.info(request.headers().toString());
|
ourLog.info(request.headers().toString());
|
||||||
|
|
||||||
assertEquals("http://example.com/fhir/Binary?_format=json", request.url().toString());
|
assertEquals("http://example.com/fhir/Binary", request.url().toString());
|
||||||
validateUserAgent(capt);
|
validateUserAgent(capt);
|
||||||
|
|
||||||
assertEquals(Constants.CT_FHIR_JSON_NEW + ";charset=utf-8", request.body().contentType().toString().toLowerCase().replace(" ", ""));
|
assertEquals(Constants.CT_FHIR_JSON_NEW + ";charset=utf-8", request.body().contentType().toString().toLowerCase().replace(" ", ""));
|
||||||
|
@ -252,7 +252,7 @@ public class GenericClientDstu3IT {
|
||||||
assertNotNull(outcome.getResource());
|
assertNotNull(outcome.getResource());
|
||||||
|
|
||||||
assertEquals("<div xmlns=\"http://www.w3.org/1999/xhtml\">FINAL VALUE</div>", ((Patient) outcome.getResource()).getText().getDivAsString());
|
assertEquals("<div xmlns=\"http://www.w3.org/1999/xhtml\">FINAL VALUE</div>", ((Patient) outcome.getResource()).getText().getDivAsString());
|
||||||
assertEquals("http://example.com/fhir/Patient?_format=json", capt.getAllValues().get(0).url().toString());
|
assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(0).url().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue