correctly throw assert error (#43)

This commit is contained in:
Adina Parpalita
2020-11-04 13:04:36 +02:00
committed by GitHub
parent 3dbcbfa535
commit 0723852ac3

View File

@@ -494,7 +494,7 @@ public class CmisAssertion extends DSLAssertion<CmisWrapper>
}
else
{
Assert.assertFalse(false, String.format("Object %s does not have property %s", cmisObject.getName(), propertyId));
throw new AssertionError(String.format("Object %s does not have property %s", cmisObject.getName(), propertyId));
}
return cmisAPI();
}