Changeset 90 for trunk/src/org/expeditee/actions/Simple.java
- Timestamp:
- 06/06/08 12:42:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Simple.java
r88 r90 239 239 // if the throws exception annotation is on the frame then 240 240 // it passes only if an exception is thrown 241 if (title.getParentOrCurrentFrame().hasAnnotation("ThrowsException")) { 241 if (title.getParentOrCurrentFrame().hasAnnotation( 242 "ThrowsException")) { 242 243 errorMessage = "Expected exception " + title.toString(); 243 244 passed = false; … … 245 246 } catch (Exception e) { 246 247 _programsRunning--; 247 if (!title.getParentOrCurrentFrame().hasAnnotation("ThrowsException")) { 248 if (!title.getParentOrCurrentFrame().hasAnnotation( 249 "ThrowsException")) { 248 250 errorMessage = e.getMessage(); 249 251 passed = false; … … 390 392 391 393 if (_step) { 392 DisplayIO.setCurrentFrame(child); 394 if (child != DisplayIO.getCurrentFrame()) { 395 DisplayIO.setCurrentFrame(child); 396 } 393 397 DisplayIO.addToBack(child); 394 398 } … … 437 441 if (lastItemStatus != Status.TrueIf 438 442 && lastItemStatus != Status.FalseIf) { 443 if (_step) { 444 DisplayIO.removeFromBack(); 445 } 439 446 return lastItemStatus; 440 447 } … … 456 463 457 464 if (_step) { 465 DisplayIO.removeFromBack(); 458 466 DisplayIO.setCurrentFrame(current.getParent()); 459 DisplayIO.removeFromBack();460 467 } 461 468 … … 525 532 ArrayList<String> tokens = new ArrayList<String>(); 526 533 527 // At the moment annotation items are ignored by the interpreter528 //// Check special annotation tags for programs529 //if (statement.length() > 0 && statement.charAt(0) == '@') {530 //statement = statement.toLowerCase();531 //// Flags the next unit test as being required to throw an exception532 //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 // } 537 544 538 545 for (int i = 0; i < statement.length(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.