[JAVA-3960] Unified test runner should assert that no exception was thrown from an operation Created: 26/Jan/21  Updated: 28/Oct/23  Resolved: 26/Jan/21

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-3495 Unified test format Closed

 Description   

Given a unified test that defines an operation with no expectedResult or expectedError, the Java driver's unifier test runner implementation will not fail the test if the operation fails with an error. The spec requires that a test like that should fail.



 Comments   
Comment by Githook User [ 26/Jan/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Fail unified test if an operation throws an exception

A unified test should fail in the following circumstance:

  • The operation specification defines neither expectResult nor expectError
  • The operation throws an exception

JAVA-3960
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e612cfe95f3e71963b86af9bd798e4f30be4c61c

Generated at Thu Feb 08 09:00:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.