Remove unused parameters in String.format()

Closes gh-7111
pull/7074/merge
Johnny Lim 8 years ago committed by Stephane Nicoll
parent 97cf2e9677
commit 91254f2110

@ -184,15 +184,14 @@ public class NoSuchBeanDefinitionFailureAnalyzerTests {
private void assertBeanMethodDisabled(FailureAnalysis analysis, String description, private void assertBeanMethodDisabled(FailureAnalysis analysis, String description,
Class<?> target, String methodName) { Class<?> target, String methodName) {
String expected = String.format("Bean method '%s' in '%s' not loaded because", String expected = String.format("Bean method '%s' in '%s' not loaded because",
methodName, ClassUtils.getShortName(target), description); methodName, ClassUtils.getShortName(target));
assertThat(analysis.getDescription()).contains(expected); assertThat(analysis.getDescription()).contains(expected);
assertThat(analysis.getDescription()).contains(description); assertThat(analysis.getDescription()).contains(description);
} }
private void assertClassDisabled(FailureAnalysis analysis, String description, private void assertClassDisabled(FailureAnalysis analysis, String description,
String methodName) { String methodName) {
String expected = String.format("Bean method '%s' not loaded because", methodName, String expected = String.format("Bean method '%s' not loaded because", methodName);
description);
assertThat(analysis.getDescription()).contains(expected); assertThat(analysis.getDescription()).contains(expected);
assertThat(analysis.getDescription()).contains(description); assertThat(analysis.getDescription()).contains(description);
} }

Loading…
Cancel
Save