diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/nativeimpl/jvm/tests/VariableReturnType.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/nativeimpl/jvm/tests/VariableReturnType.java index fa635a81fa94..e1a2a8686c51 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/nativeimpl/jvm/tests/VariableReturnType.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/nativeimpl/jvm/tests/VariableReturnType.java @@ -243,7 +243,7 @@ public static BXml getXml(BTypedesc td, BXml val) { return val; } - assert describingType.getTag() == XML_COMMENT_TAG : describingType; + Assert.assertEquals(describingType.getTag(), XML_COMMENT_TAG, describingType.toString()); return val; }