@SuppressWarnings("unused")
private static void test() throws BioModelsWSException{
BioModelsWSClient client = new BioModelsWSClient();
/* Proxy necessary for Charite */
String proxyHost = "proxy.charite.de";
String proxyPort = "8080";
client.setProperty("http.proxyHost", proxyHost);
client.setProperty("http.proxyPort", proxyPort);
client.setProperty("socks.proxyHost", proxyHost);
client.setProperty("socks.proxyPort", proxyPort);
String searchString = "glycolysis";
String[] modelIds = client.getModelsIdByName(searchString);
System.out.println(getTextReportForIds(modelIds));
// get simple model for first returned id
if (modelIds.length > 0){
String id = modelIds[0];
SimpleModel simpleModel = client.getSimpleModelById(id);
String textReport = getTextReportForSimpleModel(simpleModel);
System.out.println(textReport);
}
// get SimpleModels for all the search results
List<SimpleModel> simpleModels = client.getSimpleModelsByIds(modelIds);
// Test special case
String id = "MODEL8293171637";
SimpleModel simpleModel = client.getSimpleModelById(id);
System.out.println(id);
System.out.println(simpleModel.getId());
}