@@ -186,8 +186,8 @@ public void testDisplayColumn() throws Exception
186
186
fieldKeys .add (FieldKey .fromString ("ProjectId" ));
187
187
fieldKeys .add (FieldKey .fromString ("ProjectId/Name" ));
188
188
fieldKeys .add (FieldKey .fromString ("ProjectId/Parent/Name" ));
189
- fieldKeys .add (FieldKey .fromString ("ContainerId " ));
190
- fieldKeys .add (FieldKey .fromString ("ContainerId /Name" ));
189
+ fieldKeys .add (FieldKey .fromString ("Container " ));
190
+ fieldKeys .add (FieldKey .fromString ("Container /Name" ));
191
191
fieldKeys .add (FieldKey .fromString ("Comment" ));
192
192
mpv .addPropertyValue ("query.columns" , StringUtils .join (fieldKeys , "," ));
193
193
@@ -243,14 +243,14 @@ else if (comment.contains(workbook1.getName() + " was created") ||
243
243
comment .contains (subFolder2 .getName () + " was created" ))
244
244
{
245
245
// These are all containers that have since been deleted, so we can't join to the container row for details
246
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ContainerId " ).optString ("value" , null ));
247
- assertEquals ("Incorrect json value for ContainerId column" , "<deleted>" , row .getJSONObject ("ContainerId " ).getString ("displayValue" ));
246
+ assertNull ("Incorrect json value for Container column" , row .getJSONObject ("Container " ).optString ("value" , null ));
247
+ assertEquals ("Incorrect json value for Container column" , "<deleted>" , row .getJSONObject ("Container " ).getString ("displayValue" ));
248
248
249
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ContainerId /Name" ).optString ("value" , null ));
250
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ContainerId /Name" ).optString ("displayValue" , null ));
249
+ assertNull ("Incorrect json value for Container column" , row .getJSONObject ("Container /Name" ).optString ("value" , null ));
250
+ assertNull ("Incorrect json value for Container column" , row .getJSONObject ("Container /Name" ).optString ("displayValue" , null ));
251
251
252
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("value" , null ));
253
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("displayValue" , null ));
252
+ assertNull ("Incorrect json value for ProjectId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("value" , null ));
253
+ assertNull ("Incorrect json value for ProjectId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("displayValue" , null ));
254
254
}
255
255
else
256
256
{
@@ -262,13 +262,13 @@ else if (comment.contains(workbook1.getName() + " was created") ||
262
262
263
263
private void validateContainerRow (Container project , JSONObject row )
264
264
{
265
- assertEquals ("Incorrect json value for ContainerId column" , project .getEntityId ().toString (), row .getJSONObject ("ContainerId " ).getString ("value" ));
266
- assertEquals ("Incorrect json value for ContainerId column" , project .getName (), row .getJSONObject ("ContainerId " ).getString ("displayValue" ));
265
+ assertEquals ("Incorrect json value for Container column" , project .getEntityId ().toString (), row .getJSONObject ("Container " ).getString ("value" ));
266
+ assertEquals ("Incorrect json value for Container column" , project .getName (), row .getJSONObject ("Container " ).getString ("displayValue" ));
267
267
268
- assertEquals ("Incorrect json value for ContainerId column" , project .getName (), row .getJSONObject ("ContainerId /Name" ).getString ("value" ));
268
+ assertEquals ("Incorrect json value for Container column" , project .getName (), row .getJSONObject ("Container /Name" ).getString ("value" ));
269
269
270
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("value" , null ));
271
- assertNull ("Incorrect json value for ContainerId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("displayValue" , null ));
270
+ assertNull ("Incorrect json value for ProjectId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("value" , null ));
271
+ assertNull ("Incorrect json value for ProjectId column" , row .getJSONObject ("ProjectId/Parent/Name" ).optString ("displayValue" , null ));
272
272
}
273
273
}
274
274
}
0 commit comments