Преглед изворни кода

only inspect results if test could run

tags/V1_5_0M2
acolyer пре 19 година
родитељ
комит
2eb9dd8121
1 измењених фајлова са 10 додато и 8 уклоњено
  1. 10
    8
      tests/src/org/aspectj/systemtest/ajc150/Annotations.java

+ 10
- 8
tests/src/org/aspectj/systemtest/ajc150/Annotations.java Прегледај датотеку

@@ -49,15 +49,17 @@ public class Annotations extends XMLBasedAjcTestCase {
*/
public void testBugWithAnnotationsLostOnWovenMethods() throws ClassNotFoundException {
runTest("losing annotations...");
JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Program");
Method[] meths = jc.getMethods();
for (int i = 0; i < meths.length; i++) {
Method method = meths[i];
if (method.getName().equals("m1")) {
assertTrue("Didn't have annotations - were they lost? method="+method.getName(),method.getAnnotations().length==1);
if (getCurrentTest().canRunOnThisVM()) {
JavaClass jc = getClassFrom(ajc.getSandboxDirectory(),"Program");
Method[] meths = jc.getMethods();
for (int i = 0; i < meths.length; i++) {
Method method = meths[i];
if (method.getName().equals("m1")) {
assertTrue("Didn't have annotations - were they lost? method="+method.getName(),method.getAnnotations().length==1);
}
}
}
}
}
public void testAnnotatedAnnotations() {

Loading…
Откажи
Сачувај