SOLR-9045: exclude static methods from ConfigureRecoveryStrategyTest.testAlmostAllMethodsAreFinal

This commit is contained in:
Christine Poerschke 2017-03-14 13:05:55 +00:00 committed by Shalin Shekhar Mangar
parent 52b3bc2f6d
commit 6163956a1b
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ public class ConfigureRecoveryStrategyTest extends SolrTestCaseJ4 {
public void testAlmostAllMethodsAreFinal() throws Exception { public void testAlmostAllMethodsAreFinal() throws Exception {
for (Method m : RecoveryStrategy.class.getDeclaredMethods()) { for (Method m : RecoveryStrategy.class.getDeclaredMethods()) {
if (Modifier.isStatic(m.getModifiers())) continue;
final String methodName = m.getName(); final String methodName = m.getName();
if ("getReplicateLeaderUrl".equals(methodName)) { if ("getReplicateLeaderUrl".equals(methodName)) {
assertFalse(m.toString(), Modifier.isFinal(m.getModifiers())); assertFalse(m.toString(), Modifier.isFinal(m.getModifiers()));