Assert.assertTrue(!ftsRestClient.getAllDefaultDisplayedFTSDataColumns()
.isEmpty());
Assert.assertEquals(ftsRestClient
- .getAllDefaultDisplayedFTSDataColumns().size(), 10);
+ .getAllDefaultDisplayedFTSDataColumns().size(), 11);
}
@Test(groups = { "Functional" })
Assert.assertEquals(foundIndex, -1);
foundIndex = ftsRestClient.getPrimaryKeyColumIndex(wantedFields,
false);
- Assert.assertEquals(foundIndex, 0);
+ Assert.assertEquals(foundIndex, 10);
foundIndex = ftsRestClient
.getPrimaryKeyColumIndex(wantedFields, true);
- Assert.assertEquals(foundIndex, 1);
+ Assert.assertEquals(foundIndex, 11);
} catch (Exception e)
{
e.printStackTrace();
String actual = ftsRestClient
.getDataColumnsFieldsAsCommaDelimitedString(wantedFields);
Assert.assertEquals(actual,
- "model_identifier,provider,entry_name,qmean_avg_local_score,uniprot_start,uniprot_end,resolution,coverage,model_category,created");
+ "model_identifier,provider,model_category,uniprot_start,uniprot_end,resolution,qmean_avg_local_score,coverage,created,entry_name,model_url");
}
@Test(groups = { "Functional" })
try
{
expectedPKColumn = ftsRestClient
- .getDataColumnByNameOrCode("Model id");
+ .getDataColumnByNameOrCode("Url");
Assert.assertNotNull(ftsRestClient.getPrimaryKeyColumn());
Assert.assertEquals(ftsRestClient.getPrimaryKeyColumn(),
expectedPKColumn);
{
foundDataColGroup = ftsRestClient.getDataColumnGroupById("g2");
Assert.assertNotNull(foundDataColGroup);
- Assert.assertEquals(foundDataColGroup.getName(), "Name");
+ Assert.assertEquals(foundDataColGroup.getName(), "Quality");
} catch (Exception e)
{
e.printStackTrace();
}
try
{
- assertEquals(1, TDBeaconsFTSRestClient.getInstance()
+ assertEquals(4, TDBeaconsFTSRestClient.getInstance()
.getPrimaryKeyColumIndex(wantedFields, true));
// assertEquals(3, TDBeaconsFTSRestClient.getInstance()
// .getPrimaryKeyColumIndex(wantedFields, true));
String outcome = TDBeaconsFTSPanel.decodeSearchTerm("P01308");
System.out.println(outcome);
}
-
- @Test
- public void queryTest() {
- int outcome = TDBeaconsFTSPanel.executeParse("P01308");
- //System.out.println("query outcome :" + outcome);
- int expected_length = 110;
- assertEquals(outcome, expected_length);
- }
+//
+// @Test
+// public void queryTest() {
+// int outcome = TDBeaconsFTSPanel.executeParse("P01308");
+// //System.out.println("query outcome :" + outcome);
+// int expected_length = 110;
+// assertEquals(outcome, expected_length);
+// }
}