fix ontoserver tx tests
This commit is contained in:
parent
a7d0b645dc
commit
9a42e81a2e
|
@ -269,7 +269,7 @@ public class TxTester {
|
||||||
}
|
}
|
||||||
JsonObject ext = externals == null ? null : externals.getJsonObject(fn);
|
JsonObject ext = externals == null ? null : externals.getJsonObject(fn);
|
||||||
|
|
||||||
String lang = test.asString("Content-Language");
|
String lang = test.asString("Accept-Language");
|
||||||
String msg = null;
|
String msg = null;
|
||||||
if (test.asString("operation").equals("metadata")) {
|
if (test.asString("operation").equals("metadata")) {
|
||||||
msg = metadata(test.str("name"), setup, resp, fp, lang, profile, ext);
|
msg = metadata(test.str("name"), setup, resp, fp, lang, profile, ext);
|
||||||
|
@ -381,7 +381,7 @@ public class TxTester {
|
||||||
for (Resource r : setup) {
|
for (Resource r : setup) {
|
||||||
p.addParameter().setName("tx-resource").setResource(r);
|
p.addParameter().setName("tx-resource").setResource(r);
|
||||||
}
|
}
|
||||||
terminologyClient.setContentLanguage(lang);
|
terminologyClient.setAcceptLanguage(lang);
|
||||||
p.getParameter().addAll(profile.getParameter());
|
p.getParameter().addAll(profile.getParameter());
|
||||||
int code = 0;
|
int code = 0;
|
||||||
String pj;
|
String pj;
|
||||||
|
@ -412,7 +412,7 @@ public class TxTester {
|
||||||
for (Resource r : setup) {
|
for (Resource r : setup) {
|
||||||
p.addParameter().setName("tx-resource").setResource(r);
|
p.addParameter().setName("tx-resource").setResource(r);
|
||||||
}
|
}
|
||||||
terminologyClient.setContentLanguage(lang);
|
terminologyClient.setAcceptLanguage(lang);
|
||||||
p.getParameter().addAll(profile.getParameter());
|
p.getParameter().addAll(profile.getParameter());
|
||||||
int code = 0;
|
int code = 0;
|
||||||
String pj;
|
String pj;
|
||||||
|
@ -443,7 +443,7 @@ public class TxTester {
|
||||||
for (Resource r : setup) {
|
for (Resource r : setup) {
|
||||||
p.addParameter().setName("tx-resource").setResource(r);
|
p.addParameter().setName("tx-resource").setResource(r);
|
||||||
}
|
}
|
||||||
terminologyClient.setContentLanguage(lang);
|
terminologyClient.setAcceptLanguage(lang);
|
||||||
p.getParameter().addAll(profile.getParameter());
|
p.getParameter().addAll(profile.getParameter());
|
||||||
int code = 0;
|
int code = 0;
|
||||||
String vsj;
|
String vsj;
|
||||||
|
@ -486,7 +486,7 @@ public class TxTester {
|
||||||
p.addParameter().setName("tx-resource").setResource(r);
|
p.addParameter().setName("tx-resource").setResource(r);
|
||||||
}
|
}
|
||||||
p.getParameter().addAll(profile.getParameter());
|
p.getParameter().addAll(profile.getParameter());
|
||||||
terminologyClient.setContentLanguage(lang);
|
terminologyClient.setAcceptLanguage(lang);
|
||||||
int code = 0;
|
int code = 0;
|
||||||
String pj;
|
String pj;
|
||||||
try {
|
try {
|
||||||
|
@ -518,7 +518,7 @@ public class TxTester {
|
||||||
p.addParameter().setName("tx-resource").setResource(r);
|
p.addParameter().setName("tx-resource").setResource(r);
|
||||||
}
|
}
|
||||||
p.getParameter().addAll(profile.getParameter());
|
p.getParameter().addAll(profile.getParameter());
|
||||||
terminologyClient.setContentLanguage(lang);
|
terminologyClient.setAcceptLanguage(lang);
|
||||||
int code = 0;
|
int code = 0;
|
||||||
String pj;
|
String pj;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue