palantir / palantir/conjure-java-runtime-api

Add original error message to Assertions#checkThrowableIsOfType

Open
#273 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
6
Forks
33
Avg merge
15h 50m
Merged PRs (30d)
12

Description

it would be nice to know the error message thrown when checking the type difference so it's easier to know what went wrong
https://github.com/palantir/conjure-java-runtime-api/blob/develop/test-utils/src/main/java/com/palantir/conjure/java/api/testing/Assertions.java#L54

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open test-utils/src/main/java/com/palantir/conjure/java/api/testing/Assertions.java at the linked Assertions#checkThrowableIsOfType method and inspect how it reports a type mismatch. Update the failure output so it includes the original thrown error message, then verify that a type mismatch clearly shows both the expected and actual details.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.