_data_column.preferred_col_width
_data_column.is_shown_by_default
_data_column.is_searchable
-Sequence;aligned_sequence;String;g1;80;150;85;true;true
Model id;model_identifier;String;g2;80;150;85;true;true
+Sequence;aligned_sequence;String;g1;80;150;85;true;true
Provider;provider;String;g1;80;150;85;true;true
Uniprot Id;id;String;g2;80;150;85;true;true
UniProt Accession;uniprot_accession;String;g2;50;400;95;true;false
-Entry Name;entry name;String;g2;100;150;105;true;true
+Entry Name;entry_name;String;g2;100;150;105;true;true
Url;model_url;String;g1;100;150;105;true;true
-Qmean;qmean_avg_local_score;double;g3;100;150;105;true;true
+Qmean;qmean_avg_local_score;double;g2;100;150;105;true;false
@Test
public void getAllDefaulDisplayedDataColumns()
- {
+ {
+ // to change when resources.tdbeacons_data_columns.txt is changed
Assert.assertNotNull(ftsRestClient
.getAllDefaultDisplayedFTSDataColumns());
System.out.println(ftsRestClient.getAllDefaultDisplayedFTSDataColumns());
Assert.assertTrue(!ftsRestClient.getAllDefaultDisplayedFTSDataColumns()
.isEmpty());
Assert.assertEquals(ftsRestClient
- .getAllDefaultDisplayedFTSDataColumns().size(), 3);
- // currently 3, may change -> change this test and the nexts accordingly
+ .getAllDefaultDisplayedFTSDataColumns().size(), 8);
}
@Test(groups = { "Functional" })
Assert.assertEquals(foundIndex, -1);
foundIndex = ftsRestClient.getPrimaryKeyColumIndex(wantedFields,
false);
- Assert.assertEquals(foundIndex, 0);
+ Assert.assertEquals(foundIndex, 1);
foundIndex = ftsRestClient
.getPrimaryKeyColumIndex(wantedFields, true);
- Assert.assertEquals(foundIndex, 1);
+ Assert.assertEquals(foundIndex, 2);
} catch (Exception e)
{
e.printStackTrace();
@Test(groups = { "Functional" })
public void getDataColumnsFieldsAsCommaDelimitedString()
{
+ // to change when resources.tdbeacons_data_columns.txt is changed
Collection<FTSDataColumnI> wantedFields = ftsRestClient
.getAllDefaultDisplayedFTSDataColumns();
String actual = ftsRestClient
.getDataColumnsFieldsAsCommaDelimitedString(wantedFields);
Assert.assertEquals(actual,
- "id,uniprot_accession,entry name");
+ "aligned_sequence,model_identifier,provider,id,uniprot_accession,entry_name,model_url,qmean_avg_local_score");
}
@Test(groups = { "Functional" })
.getAllFTSDataColumns();
Assert.assertNotNull(allFields);
//System.out.println(allFields.size());
- Assert.assertEquals(allFields.size(), 3);
+ Assert.assertEquals(allFields.size(), 8);
}
@Test(groups = { "Functional" })
public void getSearchableDataColumns()
- {
+ {
+ // to change when resources.tdbeacons_data_columns.txt is changed
Collection<FTSDataColumnI> searchableFields = ftsRestClient
.getSearchableDataColumns();
Assert.assertNotNull(searchableFields);
//System.out.println(searchableFields.size());
- Assert.assertEquals(searchableFields.size(), 1); //only 1, as of first 3DB test
+ Assert.assertEquals(searchableFields.size(), 6); //only 1, as of first 3DB test
}
@Test(groups = { "Functional" })
public void getPrimaryKeyColumn()
- {
+ {
+ // to change when resources.tdbeacons_data_columns.txt is changed
FTSDataColumnI expectedPKColumn;
try
{
expectedPKColumn = ftsRestClient
- .getDataColumnByNameOrCode("Uniprot Id");
+ .getDataColumnByNameOrCode("Model id");
Assert.assertNotNull(ftsRestClient.getPrimaryKeyColumn());
Assert.assertEquals(ftsRestClient.getPrimaryKeyColumn(),
expectedPKColumn);