[ 
https://issues.apache.org/jira/browse/CALCITE-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16573731#comment-16573731
 ] 

Andrei Sereda commented on CALCITE-2457:
----------------------------------------

To add context information you can use 
[named()|https://google.github.io/truth/api/0.42/com/google/common/truth/Subject.html#named-java.lang.String-java.lang.Object...-]
 method:
{code:java}
assertThat(actualPlan).named("sql=%s dialect=%s", sql, 
dialect).isEqualTo(expectedPlan);
{code}
 

 

> Upgrade to JUnit 5
> ------------------
>
>                 Key: CALCITE-2457
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2457
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Vladimir Sitnikov
>            Assignee: Julian Hyde
>            Priority: Major
>         Attachments: truth_assertmap.png
>
>
> JUnit 5 brings multiple useful features so tests are easier to read and write.
> Is there something that blocks upgrading to JUnit 5?
> By upgrade I mean bumping up the dependency version and creating new tests 
> with JUnit 5 features.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to