001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.test.uml.diagramcontextmenu;
043:
044: import java.io.*;
045: import org.netbeans.jemmy.*;
046: import org.netbeans.jemmy.operators.*;
047:
048: import org.netbeans.junit.NbTestSuite;
049: import org.netbeans.test.umllib.*;
050: import org.netbeans.test.uml.diagramcontextmenu.utils.DCMUtils;
051: import org.netbeans.test.umllib.testcases.UMLTestCase;
052: import org.netbeans.test.umllib.util.PopupConstants;
053:
054: /**
055: *
056: * @author yaa
057: * @spec UML/Diagram_ContextMenus.xml
058: */
059: public class DiagramContextMenus_COD extends UMLTestCase {
060: private static String prName = "UMLProjectDCntMn";
061: private static String codName = "DCollaboration";
062:
063: private static final String workDir = System
064: .getProperty("xtest.workdir");
065: private static String OUT_LOG_FILE = "";
066: private static String ERR_LOG_FILE = "";
067: private static PrintStream myOut = null;
068: private static PrintStream myErr = null;
069: private static BufferedReader myIn = null;
070:
071: private String lastTestCase = null;
072:
073: /** Need to be defined because of JUnit */
074: public DiagramContextMenus_COD(String name) {
075: super (name);
076: }
077:
078: public static NbTestSuite suite() {
079: NbTestSuite suite = new NbTestSuite(
080: org.netbeans.test.uml.diagramcontextmenu.DiagramContextMenus_COD.class);
081: return suite;
082: }
083:
084: /**
085: * @caseblock Collaboration Diagram
086: * @usecase Check context menu of collaboration diagram
087: */
088: public void testItemCopy() {
089: lastTestCase = getCurrentTestMethodName();
090: String itemName = PopupConstants.EDIT + "|"
091: + PopupConstants.COPY;
092: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
093: diagram, itemName);
094: if (item == null) {
095: fail("Diagram popum menu item '" + itemName + "' not found");
096: } else if (item.isEnabled()) {
097: fail("Diagram popum menu item '" + itemName
098: + "' is enabled but should not be");
099: }
100: }
101:
102: /**
103: * @caseblock Collaboration Diagram
104: * @usecase Check context menu of collaboration diagram
105: */
106: public void testItemCut() {
107: lastTestCase = getCurrentTestMethodName();
108: String itemName = PopupConstants.EDIT + "|"
109: + PopupConstants.CUT;
110: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
111: diagram, itemName);
112: if (item == null) {
113: fail("Diagram popum menu item '" + itemName + "' not found");
114: } else if (item.isEnabled()) {
115: fail("Diagram popum menu item '" + itemName
116: + "' is enabled but should not be");
117: }
118: }
119:
120: /**
121: * @caseblock Collaboration Diagram
122: * @usecase Check context menu of collaboration diagram
123: */
124: public void testItemDelete() {
125: lastTestCase = getCurrentTestMethodName();
126: String itemName = PopupConstants.EDIT + "|"
127: + PopupConstants.DELETE;
128: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
129: diagram, itemName);
130: if (item == null) {
131: fail("Diagram popum menu item '" + itemName + "' not found");
132: } else if (item.isEnabled()) {
133: fail("Diagram popum menu item '" + itemName
134: + "' is enabled but should not be");
135: }
136: }
137:
138: /**
139: * @caseblock Collaboration Diagram
140: * @usecase Check context menu of collaboration diagram
141: */
142: public void testItemPaste() {
143: lastTestCase = getCurrentTestMethodName();
144: String itemName = PopupConstants.EDIT + "|"
145: + PopupConstants.PASTE;
146: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
147: diagram, itemName);
148: if (item == null) {
149: fail("Diagram popum menu item '" + itemName + "' not found");
150: } else if (item.isEnabled()) {
151: fail("Diagram popum menu item '" + itemName
152: + "' is enabled but should not be");
153: }
154: }
155:
156: /**
157: * @caseblock Collaboration Diagram
158: * @usecase Check context menu of collaboration diagram
159: */
160: public void testItemSelectAll() {
161: lastTestCase = getCurrentTestMethodName();
162: String itemName = PopupConstants.EDIT + "|"
163: + PopupConstants.SELECT_ALL;
164: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
165: diagram, itemName);
166: if (item == null) {
167: fail("Diagram popum menu item '" + itemName + "' not found");
168: } else if (!item.isEnabled()) {
169: fail("Diagram popum menu item '" + itemName
170: + "' is disabled but should not be");
171: }
172: }
173:
174: /**
175: * @caseblock Collaboration Diagram
176: * @usecase Check context menu of collaboration diagram
177: */
178: public void testItemSelectAllSimilar() {
179: lastTestCase = getCurrentTestMethodName();
180: String itemName = PopupConstants.EDIT + "|"
181: + PopupConstants.SELECT_ALL_SIMILAR;
182: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
183: diagram, itemName);
184: if (item == null) {
185: fail("Diagram popum menu item '" + itemName + "' not found");
186: } else if (item.isEnabled()) {
187: fail("Diagram popum menu item '" + itemName
188: + "' is enabled but should not be");
189: }
190: }
191:
192: /**
193: * @caseblock Collaboration Diagram
194: * @usecase Check context menu of collaboration diagram
195: */
196: public void testItemInvertSelection() {
197: lastTestCase = getCurrentTestMethodName();
198: String itemName = PopupConstants.EDIT + "|"
199: + PopupConstants.INVERT_SELECTION;
200: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
201: diagram, itemName);
202: if (item == null) {
203: fail("Diagram popum menu item '" + itemName + "' not found");
204: } else if (!item.isEnabled()) {
205: fail("Diagram popum menu item '" + itemName
206: + "' is disabled but should not be");
207: }
208: }
209:
210: /**
211: * @caseblock Collaboration Diagram
212: * @usecase Check context menu of collaboration diagram
213: */
214: public void testItemSetDimensions() {
215: lastTestCase = getCurrentTestMethodName();
216: String itemName = PopupConstants.EDIT + "|"
217: + PopupConstants.SET_DIMESIONS;
218: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
219: diagram, itemName);
220: if (item == null) {
221: fail("Diagram popum menu item '" + itemName + "' not found");
222: } else if (item.isEnabled()) {
223: fail("Diagram popum menu item '" + itemName
224: + "' is enabled but should not be");
225: }
226: }
227:
228: /**
229: * @caseblock Collaboration Diagram
230: * @usecase Check context menu of collaboration diagram
231: */
232: public void testItemLayoutHierarchical() {
233: lastTestCase = getCurrentTestMethodName();
234: String itemName = DCMUtils.DiagramPopupConstants.LAYOUT + "|"
235: + DCMUtils.DiagramPopupConstants.LAYOUT_HIERARCHICAL;
236: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
237: diagram, itemName);
238: if (item == null) {
239: fail("Diagram popum menu item '" + itemName + "' not found");
240: } else if (!item.isEnabled()) {
241: fail("Diagram popum menu item '" + itemName
242: + "' is disabled but should not be");
243: }
244: }
245:
246: /**
247: * @caseblock Collaboration Diagram
248: * @usecase Check context menu of collaboration diagram
249: */
250: public void testItemLayoutOrthogonal() {
251: lastTestCase = getCurrentTestMethodName();
252: String itemName = DCMUtils.DiagramPopupConstants.LAYOUT + "|"
253: + DCMUtils.DiagramPopupConstants.LAYOUT_ORTHOGONAL;
254: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
255: diagram, itemName);
256: if (item == null) {
257: fail("Diagram popum menu item '" + itemName + "' not found");
258: } else if (!item.isEnabled()) {
259: fail("Diagram popum menu item '" + itemName
260: + "' is disabled but should not be");
261: }
262: }
263:
264: /**
265: * @caseblock Collaboration Diagram
266: * @usecase Check context menu of collaboration diagram
267: */
268: public void testItemLayoutSymmetric() {
269: lastTestCase = getCurrentTestMethodName();
270: String itemName = DCMUtils.DiagramPopupConstants.LAYOUT + "|"
271: + DCMUtils.DiagramPopupConstants.LAYOUT_SYMMETRIC;
272: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
273: diagram, itemName);
274: if (item == null) {
275: fail("Diagram popum menu item '" + itemName + "' not found");
276: } else if (!item.isEnabled()) {
277: fail("Diagram popum menu item '" + itemName
278: + "' is disabled but should not be");
279: }
280: }
281:
282: /**
283: * @caseblock Collaboration Diagram
284: * @usecase Check context menu of collaboration diagram
285: */
286: public void testItemLayoutIncremental() {
287: lastTestCase = getCurrentTestMethodName();
288: String itemName = DCMUtils.DiagramPopupConstants.LAYOUT + "|"
289: + DCMUtils.DiagramPopupConstants.LAYOUT_INCREMENTAL;
290: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
291: diagram, itemName);
292: if (item == null) {
293: fail("Diagram popum menu item '" + itemName + "' not found");
294: } else if (!item.isEnabled()) {
295: fail("Diagram popum menu item '" + itemName
296: + "' is disabled but should not be");
297: }
298: }
299:
300: /**
301: * @caseblock Collaboration Diagram
302: * @usecase Check context menu of collaboration diagram
303: */
304: public void testItemLayoutProperties() {
305: lastTestCase = getCurrentTestMethodName();
306: String itemName = DCMUtils.DiagramPopupConstants.LAYOUT + "|"
307: + DCMUtils.DiagramPopupConstants.LAYOUT_PROPERTIES;
308: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
309: diagram, itemName);
310: if (item == null) {
311: fail("Diagram popum menu item '" + itemName + "' not found");
312: } else if (!item.isEnabled()) {
313: fail("Diagram popum menu item '" + itemName
314: + "' is disabled but should not be");
315: } else {
316: DCMUtils.pushDiagramPopupMenuItem(diagram, itemName);
317: if (!DCMUtils
318: .findAndCloseDialog(DCMUtils.DialogTitles.LAYOUT_PROPERTIES)) {
319: fail("Dialog with title '" + itemName
320: + "' not found or not closed correctly");
321: }
322: }
323: }
324:
325: /**
326: * @caseblock Collaboration Diagram
327: * @usecase Check context menu of collaboration diagram
328: */
329: public void testItemZoom() {
330: lastTestCase = getCurrentTestMethodName();
331: String itemName = DCMUtils.DiagramPopupConstants.ZOOM;
332: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
333: diagram, itemName);
334: if (item == null) {
335: fail("Diagram popum menu item '" + itemName + "' not found");
336: } else if (!item.isEnabled()) {
337: fail("Diagram popum menu item '" + itemName
338: + "' is disabled but should not be");
339: } else {
340: DCMUtils.pushDiagramPopupMenuItem(diagram, itemName);
341: if (!DCMUtils
342: .findAndCloseDialog(DCMUtils.DialogTitles.ZOOM)) {
343: fail("Dialog with title '" + itemName
344: + "' not found or not closed correctly");
345: }
346: }
347: }
348:
349: /**
350: * @caseblock Collaboration Diagram
351: * @usecase Check context menu of collaboration diagram
352: */
353: public void testItemZoomIn() {
354: lastTestCase = getCurrentTestMethodName();
355: String itemName = DCMUtils.DiagramPopupConstants.ZOOM_IN;
356: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
357: diagram, itemName);
358: if (item == null) {
359: fail("Diagram popum menu item '" + itemName + "' not found");
360: } else if (!item.isEnabled()) {
361: fail("Diagram popum menu item '" + itemName
362: + "' is disabled but should not be");
363: }
364: }
365:
366: /**
367: * @caseblock Collaboration Diagram
368: * @usecase Check context menu of collaboration diagram
369: */
370: public void testItemZoomOut() {
371: lastTestCase = getCurrentTestMethodName();
372: String itemName = DCMUtils.DiagramPopupConstants.ZOOM_OUT;
373: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
374: diagram, itemName);
375: if (item == null) {
376: fail("Diagram popum menu item '" + itemName + "' not found");
377: } else if (!item.isEnabled()) {
378: fail("Diagram popum menu item '" + itemName
379: + "' is disabled but should not be");
380: }
381: }
382:
383: /**
384: * @caseblock Collaboration Diagram
385: * @usecase Check context menu of collaboration diagram
386: */
387: public void testItemSynchronize() {
388: lastTestCase = getCurrentTestMethodName();
389: String itemName = DCMUtils.DiagramPopupConstants.SYNCHRONIZE;
390: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
391: diagram, itemName);
392: if (item == null) {
393: fail("Diagram popum menu item '" + itemName + "' not found");
394: } else if (!item.isEnabled()) {
395: fail("Diagram popum menu item '" + itemName
396: + "' is disabled but should not be");
397: }
398: }
399:
400: /**
401: * @caseblock Collaboration Diagram
402: * @usecase Check context menu of collaboration diagram
403: */
404: public void testItemAssociateWith() {
405: lastTestCase = getCurrentTestMethodName();
406: String itemName = DCMUtils.DiagramPopupConstants.ASSOCIATE_WITH;
407: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
408: diagram, itemName);
409: if (item == null) {
410: fail("Diagram popum menu item '" + itemName + "' not found");
411: } else if (!item.isEnabled()) {
412: fail("Diagram popum menu item '" + itemName
413: + "' is disabled but should not be");
414: } else {
415: DCMUtils.pushDiagramPopupMenuItem(diagram, itemName);
416: if (!DCMUtils
417: .findAndCloseDialog(DCMUtils.DialogTitles.ASSOCIATE_WITH)) {
418: fail("Dialog with title '" + itemName
419: + "' not found or not closed correctly");
420: }
421: }
422: }
423:
424: /**
425: * @caseblock Collaboration Diagram
426: * @usecase Check context menu of collaboration diagram
427: */
428: public void testItemApplyDesignPattern() {
429: lastTestCase = getCurrentTestMethodName();
430: String itemName = DCMUtils.DiagramPopupConstants.APPLY_DESIGN_PATTERN;
431: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
432: diagram, itemName);
433: if (item == null) {
434: fail("Diagram popum menu item '" + itemName + "' not found");
435: } else if (!item.isEnabled()) {
436: fail("Diagram popum menu item '" + itemName
437: + "' is disabled but should not be");
438: } else {
439: DCMUtils.pushDiagramPopupMenuItem(diagram, itemName);
440: if (!DCMUtils
441: .findAndCloseDialog(DCMUtils.DialogTitles.APPLY_DESIGN_PATTERN)) {
442: fail("Dialog with title '" + itemName
443: + "' not found or not closed correctly");
444: }
445: }
446: }
447:
448: /**
449: * @caseblock Collaboration Diagram
450: * @usecase Check context menu of collaboration diagram
451: */
452: public void testItemProperties() {
453: lastTestCase = getCurrentTestMethodName();
454: String itemName = DCMUtils.DiagramPopupConstants.PROPERTIES;
455: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
456: diagram, itemName);
457: if (item == null) {
458: fail("Diagram popum menu item '" + itemName + "' not found");
459: } else if (!item.isEnabled()) {
460: fail("Diagram popum menu item '" + itemName
461: + "' is disabled but should not be");
462: } else {
463: DCMUtils.pushDiagramPopupMenuItem(diagram, itemName);
464: if (!DCMUtils
465: .findAndCloseDialog(DCMUtils.DialogTitles.PROPERTIES)) {
466: fail("Dialog with title '" + itemName
467: + "' not found or not closed correctly");
468: }
469: }
470: }
471:
472: /**
473: * @caseblock Collaboration Diagram
474: * @usecase Check context menu of collaboration diagram
475: */
476: public void testItemShowMessageNumbers() {
477: lastTestCase = getCurrentTestMethodName();
478: String itemName = DCMUtils.DiagramPopupConstants.SHOW_MESSAGE_NUMBERS;
479: JMenuItemOperator item = DCMUtils.checkDiagramPopupMenuItem(
480: diagram, itemName);
481: if (item == null) {
482: fail("Diagram popum menu item '" + itemName + "' not found");
483: } else if (!item.isEnabled()) {
484: fail("Diagram popum menu item '" + itemName
485: + "' is disabled but should not be");
486: }
487: }
488:
489: /**
490: * @caseblock Collaboration Diagram
491: * @usecase Check context menu of collaboration diagram
492: */
493: public void testCheckUnnecessaryItems() {
494: lastTestCase = getCurrentTestMethodName();
495: String[] itemsNecessary = new String[] {
496: PopupConstants.EDIT + "|" + PopupConstants.COPY,
497: PopupConstants.EDIT + "|" + PopupConstants.CUT,
498: PopupConstants.EDIT + "|" + PopupConstants.DELETE,
499: PopupConstants.EDIT + "|" + PopupConstants.PASTE,
500: PopupConstants.EDIT + "|" + PopupConstants.SELECT_ALL,
501: PopupConstants.EDIT + "|"
502: + PopupConstants.SELECT_ALL_SIMILAR,
503: PopupConstants.EDIT + "|"
504: + PopupConstants.INVERT_SELECTION,
505: PopupConstants.EDIT + "|"
506: + PopupConstants.SET_DIMESIONS,
507: DCMUtils.DiagramPopupConstants.LAYOUT
508: + "|"
509: + DCMUtils.DiagramPopupConstants.LAYOUT_HIERARCHICAL,
510: DCMUtils.DiagramPopupConstants.LAYOUT
511: + "|"
512: + DCMUtils.DiagramPopupConstants.LAYOUT_ORTHOGONAL,
513: DCMUtils.DiagramPopupConstants.LAYOUT
514: + "|"
515: + DCMUtils.DiagramPopupConstants.LAYOUT_SYMMETRIC,
516: DCMUtils.DiagramPopupConstants.LAYOUT
517: + "|"
518: + DCMUtils.DiagramPopupConstants.LAYOUT_INCREMENTAL,
519: DCMUtils.DiagramPopupConstants.LAYOUT
520: + "|"
521: + DCMUtils.DiagramPopupConstants.LAYOUT_PROPERTIES,
522: DCMUtils.DiagramPopupConstants.ZOOM,
523: DCMUtils.DiagramPopupConstants.ZOOM_IN,
524: DCMUtils.DiagramPopupConstants.ZOOM_OUT,
525: DCMUtils.DiagramPopupConstants.SYNCHRONIZE,
526: DCMUtils.DiagramPopupConstants.ASSOCIATE_WITH,
527: DCMUtils.DiagramPopupConstants.APPLY_DESIGN_PATTERN,
528: DCMUtils.DiagramPopupConstants.PROPERTIES,
529: DCMUtils.DiagramPopupConstants.SELECT_IN_MODEL,
530: DCMUtils.DiagramPopupConstants.SHOW_MESSAGE_NUMBERS };
531:
532: String result = DCMUtils.checkUnnecessaryItems(diagram,
533: itemsNecessary, getLog());
534: if (!result.equals("")) {
535: fail("Diagram context menu contains unnecessary items (see log also): "
536: + result);
537: }
538: }
539:
540: //------------------------------------------------------------------------------
541:
542: public void setUp() throws FileNotFoundException {
543: System.out.println("######## " + getName() + " #######");
544: JemmyProperties.setCurrentTimeout(
545: "DialogWaiter.WaitDialogTimeout", 1000);
546: JemmyProperties.setCurrentTimeout("Waiter.WaitingTime", 1000);
547: JemmyProperties.setCurrentTimeout(
548: "JMenuOperator.WaitPopupTimeout", 2000);
549: JemmyProperties.setCurrentTimeout(
550: "ComponentOperator.WaitComponentTimeout", 2000);
551: JemmyProperties.setCurrentTimeout(
552: "WindowWaiter.WaitWindowTimeout", 2000);
553:
554: OUT_LOG_FILE = workDir + File.separator + "jout_" + getName()
555: + ".log";
556: ERR_LOG_FILE = workDir + File.separator + "jerr_" + getName()
557: + ".log";
558:
559: myOut = new PrintStream(new FileOutputStream(OUT_LOG_FILE),
560: true);
561: myErr = new PrintStream(new FileOutputStream(ERR_LOG_FILE),
562: true);
563: JemmyProperties.setCurrentOutput(new TestOut(System.in, myOut,
564: myErr));
565:
566: diagram = DCMUtils
567: .openDiagram(prName, codName,
568: NewDiagramWizardOperator.COLLABORATION_DIAGRAM,
569: workDir);
570: if (diagram == null) {
571: fail("Can't open diagram '" + codName + "', project '"
572: + prName + "'.");
573: }
574: }
575:
576: public void tearDown() throws FileNotFoundException, IOException,
577: InterruptedException {
578: org.netbeans.test.umllib.util.Utils
579: .makeScreenShot(lastTestCase);
580: //org.netbeans.test.umllib.util.Utils.tearDown();
581: diagram.getDrawingArea().pushKey(
582: java.awt.event.KeyEvent.VK_ESCAPE);
583: try {
584: JDialogOperator dlgError = new JDialogOperator(
585: "Unexpected Exception");
586: JTextAreaOperator textarea = new JTextAreaOperator(dlgError);
587: String str = textarea.getDisplayedText();
588: int pos = str.indexOf("\n");
589: if (pos != -1) {
590: str = str.substring(1, pos - 1);
591: }
592: dlgError.close();
593: fail(" " + str);
594: } catch (TimeoutExpiredException e) {
595: }
596:
597: myIn = new BufferedReader(new FileReader(ERR_LOG_FILE));
598: String line;
599: do {
600: line = myIn.readLine();
601: if (line != null && line.indexOf("Exception") != -1) {
602: if ((line.indexOf("Unexpected Exception") == -1)
603: && (line.indexOf("TimeoutExpiredException") == -1)) {
604: //fail(line);
605: }
606: }
607: } while (line != null);
608: }
609:
610: private DiagramOperator diagram = null;
611: }
|