@@ -186,8 +186,8 @@ public void testDisplayColumn() throws Exception
186186 fieldKeys .add (FieldKey .fromString ("ProjectId" ));
187187 fieldKeys .add (FieldKey .fromString ("ProjectId/Name" ));
188188 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" ));
191191 fieldKeys .add (FieldKey .fromString ("Comment" ));
192192 mpv .addPropertyValue ("query.columns" , StringUtils .join (fieldKeys , "," ));
193193
@@ -243,14 +243,14 @@ else if (comment.contains(workbook1.getName() + " was created") ||
243243 comment .contains (subFolder2 .getName () + " was created" ))
244244 {
245245 // 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" ));
248248
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 ));
251251
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 ));
254254 }
255255 else
256256 {
@@ -262,13 +262,13 @@ else if (comment.contains(workbook1.getName() + " was created") ||
262262
263263 private void validateContainerRow (Container project , JSONObject row )
264264 {
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" ));
267267
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" ));
269269
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 ));
272272 }
273273 }
274274}
0 commit comments