Ignore:
Timestamp:
06/06/08 12:42:25 (16 years ago)
Author:
ra33
Message:

Added getTreeStats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Simple.java

    r88 r90  
    239239                                        // if the throws exception annotation is on the frame then
    240240                                        // it passes only if an exception is thrown
    241                                         if (title.getParentOrCurrentFrame().hasAnnotation("ThrowsException")) {
     241                                        if (title.getParentOrCurrentFrame().hasAnnotation(
     242                                                        "ThrowsException")) {
    242243                                                errorMessage = "Expected exception " + title.toString();
    243244                                                passed = false;
     
    245246                                } catch (Exception e) {
    246247                                        _programsRunning--;
    247                                         if (!title.getParentOrCurrentFrame().hasAnnotation("ThrowsException")) {
     248                                        if (!title.getParentOrCurrentFrame().hasAnnotation(
     249                                                        "ThrowsException")) {
    248250                                                errorMessage = e.getMessage();
    249251                                                passed = false;
     
    390392
    391393                if (_step) {
    392                         DisplayIO.setCurrentFrame(child);
     394                        if (child != DisplayIO.getCurrentFrame()) {
     395                                DisplayIO.setCurrentFrame(child);
     396                        }
    393397                        DisplayIO.addToBack(child);
    394398                }
     
    437441                                        if (lastItemStatus != Status.TrueIf
    438442                                                        && lastItemStatus != Status.FalseIf) {
     443                                                if (_step) {
     444                                                        DisplayIO.removeFromBack();
     445                                                }
    439446                                                return lastItemStatus;
    440447                                        }
     
    456463
    457464                if (_step) {
     465                        DisplayIO.removeFromBack();
    458466                        DisplayIO.setCurrentFrame(current.getParent());
    459                         DisplayIO.removeFromBack();
    460467                }
    461468
     
    525532                ArrayList<String> tokens = new ArrayList<String>();
    526533
    527                 //At the moment annotation items are ignored by the interpreter
    528 //              // Check special annotation tags for programs
    529 //              if (statement.length() > 0 && statement.charAt(0) == '@') {
    530 //                      statement = statement.toLowerCase();
    531 //                      // Flags the next unit test as being required to throw an exception
    532 //                      if (statement.equals("@throwsexception")) {
    533 //                              code.getParentOrCurrentFrame().setThrowsException(true);
    534 //                      }
    535 //                      return null;
    536 //              }
     534                // At the moment annotation items are ignored by the interpreter
     535                // // Check special annotation tags for programs
     536                // if (statement.length() > 0 && statement.charAt(0) == '@') {
     537                // statement = statement.toLowerCase();
     538                // // Flags the next unit test as being required to throw an exception
     539                // if (statement.equals("@throwsexception")) {
     540                // code.getParentOrCurrentFrame().setThrowsException(true);
     541                // }
     542                // return null;
     543                // }
    537544
    538545                for (int i = 0; i < statement.length(); i++) {
Note: See TracChangeset for help on using the changeset viewer.