Skip to content

Commit a6a189b

Browse files
zaqifathishlg
authored andcommitted
reformat assertEquals failure message
1 parent 33661cb commit a6a189b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/test/org/bimserver/tests/emf/TestCreateGuid.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public void test() throws ServiceException, ChannelConnectionException, BimServe
5252

5353
IfcModelInterface newModel = bimServerClient.getModel(newProject, roid, true, false);
5454
List<IfcFurnishingElement> furnishingElements = newModel.getAllWithSubTypes(Ifc2x3tc1Package.eINSTANCE.getIfcFurnishingElement());
55-
assertEquals("There must be 1 furnishing element, not " + furnishingElements.size(), 1, furnishingElements.size());
55+
assertEquals("Invalid number of furnishing elements ", 1, furnishingElements.size());
5656
IfcFurnishingElement newF = furnishingElements.get(0);
57-
assertEquals("GUID must be 0uyjn9Jan3nRq36Uj6gwws", "0uyjn9Jan3nRq36Uj6gwws", newF.getGlobalId());
57+
assertEquals("Invalid GUID", "0uyjn9Jan3nRq36Uj6gwws", newF.getGlobalId());
5858
}
5959
}

Tests/test/org/bimserver/tests/emf/TestRemoveReferenceList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void test() throws ServiceException, ChannelConnectionException, BimServe
9696
newProject = bimServerClient.getServiceInterface().getProjectByPoid(newProject.getOid());
9797
model = bimServerClient.getModel(newProject, newProject.getLastRevisionId(), true, false);
9898
for (IfcFurnishingElement ifcFurnishingElement : model.getAll(IfcFurnishingElement.class)) {
99-
assertEquals("Size should be 2, is " + ifcFurnishingElement.getContainedInStructure().size(), 2, ifcFurnishingElement.getContainedInStructure().size());
99+
assertEquals("Invalid size ", 2, ifcFurnishingElement.getContainedInStructure().size());
100100
assertEquals("link", "link1", ifcFurnishingElement.getContainedInStructure().get(0).getName());
101101
assertEquals("link", "link3", ifcFurnishingElement.getContainedInStructure().get(1).getName());
102102
}

0 commit comments

Comments
 (0)