Reload rendrer when application changes (for tests)

This commit is contained in:
Alexey Tsvetkov
2014-12-12 20:43:31 +03:00
parent c78b199c0a
commit 669cbb203b
15 changed files with 97 additions and 40 deletions
@@ -233,7 +233,7 @@ public class JetTestUtils {
@Override
public void report(@NotNull Diagnostic diagnostic) {
if (diagnostic.getSeverity() == Severity.ERROR) {
throw new IllegalStateException(DefaultErrorMessages.RENDERER.render(diagnostic));
throw new IllegalStateException(DefaultErrorMessages.render(diagnostic));
}
}
};
@@ -148,7 +148,7 @@ public class TypeSubstitutorTest extends KotlinTestWithEnvironment {
new Function<Diagnostic, String>() {
@Override
public String fun(Diagnostic diagnostic) {
return DefaultErrorMessages.RENDERER.render(diagnostic);
return DefaultErrorMessages.render(diagnostic);
}
},
"\n"));