Issue #2161: unify test input file names

This commit is contained in:
rnveach 2015-11-05 22:40:26 -05:00 committed by Roman Ivanov
parent 45379946e7
commit ceedf80777
3 changed files with 17 additions and 17 deletions

View File

@ -80,10 +80,10 @@ public class MagicNumberCheckTest
"174:15: " + getCheckMessage(MSG_KEY, "21"),
"178:15: " + getCheckMessage(MSG_KEY, "37"),
"182:15: " + getCheckMessage(MSG_KEY, "101"),
"185:26: " + getCheckMessage(MSG_KEY, "42"),
"189:32: " + getCheckMessage(MSG_KEY, "43"),
"193:26: " + getCheckMessage(MSG_KEY, "-44"),
"197:32: " + getCheckMessage(MSG_KEY, "-45"),
"185:31: " + getCheckMessage(MSG_KEY, "42"),
"189:37: " + getCheckMessage(MSG_KEY, "43"),
"193:31: " + getCheckMessage(MSG_KEY, "-44"),
"197:37: " + getCheckMessage(MSG_KEY, "-45"),
};
verify(checkConfig, getPath("InputMagicNumber.java"), expected);
}
@ -375,10 +375,10 @@ public class MagicNumberCheckTest
"174:15: " + getCheckMessage(MSG_KEY, "21"),
"178:15: " + getCheckMessage(MSG_KEY, "37"),
"182:15: " + getCheckMessage(MSG_KEY, "101"),
"185:26: " + getCheckMessage(MSG_KEY, "42"),
"189:32: " + getCheckMessage(MSG_KEY, "43"),
"193:26: " + getCheckMessage(MSG_KEY, "-44"),
"197:32: " + getCheckMessage(MSG_KEY, "-45"),
"185:31: " + getCheckMessage(MSG_KEY, "42"),
"189:37: " + getCheckMessage(MSG_KEY, "43"),
"193:31: " + getCheckMessage(MSG_KEY, "-44"),
"197:37: " + getCheckMessage(MSG_KEY, "-45"),
};
verify(checkConfig, getPath("InputMagicNumber.java"), expected);
}
@ -433,10 +433,10 @@ public class MagicNumberCheckTest
"174:15: " + getCheckMessage(MSG_KEY, "21"),
"178:15: " + getCheckMessage(MSG_KEY, "37"),
"182:15: " + getCheckMessage(MSG_KEY, "101"),
"185:26: " + getCheckMessage(MSG_KEY, "42"),
"189:32: " + getCheckMessage(MSG_KEY, "43"),
"193:26: " + getCheckMessage(MSG_KEY, "-44"),
"197:32: " + getCheckMessage(MSG_KEY, "-45"),
"185:31: " + getCheckMessage(MSG_KEY, "42"),
"189:37: " + getCheckMessage(MSG_KEY, "43"),
"193:31: " + getCheckMessage(MSG_KEY, "-44"),
"197:37: " + getCheckMessage(MSG_KEY, "-45"),
"209:63: " + getCheckMessage(MSG_KEY, "62"),
};
verify(checkConfig, getPath("InputMagicNumber.java"), expected);

View File

@ -7,6 +7,6 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface IntMethodAnnotation{
public @interface InputIntMethodAnnotation{
int value();
}

View File

@ -182,19 +182,19 @@ class TestHashCodeMethod {
int z=101;
}
@IntMethodAnnotation(42)
@InputIntMethodAnnotation(42)
public void another() {
}
@IntMethodAnnotation(value=43)
@InputIntMethodAnnotation(value=43)
public void another2() {
}
@IntMethodAnnotation(-44)
@InputIntMethodAnnotation(-44)
public void anotherNegative() {
}
@IntMethodAnnotation(value=-45)
@InputIntMethodAnnotation(value=-45)
public void anotherNegative2() {
}
}