Bladeren bron

updated for better source locations from eclipse compiler

tags/V_1_1_b2
jhugunin 21 jaren geleden
bovenliggende
commit
3d7ca3cb96
1 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. 12
    12
      tests/new/SourceLocationWithinExpr.java

+ 12
- 12
tests/new/SourceLocationWithinExpr.java Bestand weergeven

/** @testcase PR#885 call source locations within expression */ /** @testcase PR#885 call source locations within expression */
public class SourceLocationWithinExpr { public class SourceLocationWithinExpr {
public static void main (String[] args) { public static void main (String[] args) {
new // 7*
C() // 8
. // 9*
getD() // 10
. // 11*
getE() // 12
. // 13*
getF() // 14
new // 9*
C() // 10
. // 11
getD() // 12*
. // 13
getE() // 14*
. // 15
getF() // 16*
; ;
Tester.expectEvent("setup"); Tester.expectEvent("setup");
Tester.checkAllEvents(); Tester.checkAllEvents();
private static final String SEP = " - "; private static final String SEP = " - ";
static { static {
// using qualifying expr? // using qualifying expr?
Tester.expectEvent("C()" + SEP + "7");
Tester.expectEvent("getD()" + SEP + "9");
Tester.expectEvent("getE()" + SEP + "11");
Tester.expectEvent("getF()" + SEP + "13");
Tester.expectEvent("C()" + SEP + "9");
Tester.expectEvent("getD()" + SEP + "12");
Tester.expectEvent("getE()" + SEP + "14");
Tester.expectEvent("getF()" + SEP + "16");
Tester.event("setup"); Tester.event("setup");
} }
pointcut filter() : withincode(static void SourceLocationWithinExpr.main(String[])); pointcut filter() : withincode(static void SourceLocationWithinExpr.main(String[]));

Laden…
Annuleren
Opslaan