fix test to allow integration tests

This commit is contained in:
Robert Muir 2015-07-06 11:20:30 -04:00
parent 52c89438b4
commit d7dab0df72
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ public class NamingConventionTests extends ElasticsearchTestCase {
if (filename.endsWith(".class")) {
Class<?> clazz = loadClass(filename);
if (Modifier.isAbstract(clazz.getModifiers()) == false && Modifier.isInterface(clazz.getModifiers()) == false) {
if ((clazz.getName().endsWith("Tests") || clazz.getName().endsWith("Test"))) { // don't worry about the ones that match the pattern
if (clazz.getName().endsWith("Tests") ||
clazz.getName().endsWith("IT") ||
clazz.getName().endsWith("Test")) { // don't worry about the ones that match the pattern
if (isTestCase(clazz) == false) {
notImplementing.add(clazz);
}