Fix NewTypeInferenceTestBase to give better failure messages for parse errors.
Use Truth's assertWithMessage() rather than assertThat().named().  The latter suppresses printing the actual subject in favor of only printing the name, whereas the former prints both the message *and* the actual subject.
@@ -262,8 +262,8 @@ public abstract class NewTypeInferenceTestBase extends CompilerTypeTestCase {
compiler.setFeatureSet(compiler.getFeatureSet().without(Feature.MODULES));
compiler.parseInputs();
- assertThat(compiler.getErrors()).named("parsing errors").isEmpty();
- assertThat(compiler.getWarnings()).named("parsing warnings").isEmpty();
+ assertWithMessage("parsing errors").that(compiler.getErrors()).isEmpty();
+ assertWithMessage("parsing warnings").that(compiler.getWarnings()).isEmpty();
// Run ASTValidator
(new AstValidator(compiler)).validateRoot(compiler.getRoot());
