Fix bug loading implied packages with no version
This commit is contained in:
parent
4616da8a82
commit
a47ac539a5
|
@ -86,7 +86,7 @@ public class PackageClient {
|
||||||
public boolean exists(String id, String ver) throws IOException {
|
public boolean exists(String id, String ver) throws IOException {
|
||||||
List<PackageInfo> vl = getVersions(id);
|
List<PackageInfo> vl = getVersions(id);
|
||||||
for (PackageInfo pi : vl) {
|
for (PackageInfo pi : vl) {
|
||||||
if (ver.equals(pi.getVersion())) {
|
if (ver == null || ver.equals(pi.getVersion())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -371,9 +371,6 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour
|
||||||
}
|
}
|
||||||
if (!TestingUtilities.context(version).isNoTerminologyServer() || !focus.has("tx-dependent")) {
|
if (!TestingUtilities.context(version).isNoTerminologyServer() || !focus.has("tx-dependent")) {
|
||||||
Assert.assertEquals("Test " + name + (profile == null ? "" : " profile: "+ profile) + ": Expected " + Integer.toString(java.get("errorCount").getAsInt()) + " errors, but found " + Integer.toString(ec) + ".", java.get("errorCount").getAsInt(), ec);
|
Assert.assertEquals("Test " + name + (profile == null ? "" : " profile: "+ profile) + ": Expected " + Integer.toString(java.get("errorCount").getAsInt()) + " errors, but found " + Integer.toString(ec) + ".", java.get("errorCount").getAsInt(), ec);
|
||||||
if (name.equals("icd-9-condition.xml")) {
|
|
||||||
Assert.assertEquals("Test " + name + (profile == null ? "" : " profile: "+ profile) + ": Expected " + Integer.toString(1) + " errors, but found " + Integer.toString(ec) + ".", 1, ec);
|
|
||||||
}
|
|
||||||
if (java.has("warningCount")) {
|
if (java.has("warningCount")) {
|
||||||
Assert.assertEquals( "Test " + name + (profile == null ? "" : " profile: "+ profile) + ": Expected " + Integer.toString(java.get("warningCount").getAsInt()) + " warnings, but found " + Integer.toString(wc) + ".", java.get("warningCount").getAsInt(), wc);
|
Assert.assertEquals( "Test " + name + (profile == null ? "" : " profile: "+ profile) + ": Expected " + Integer.toString(java.get("warningCount").getAsInt()) + " warnings, but found " + Integer.toString(wc) + ".", java.get("warningCount").getAsInt(), wc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue