KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > junit > runner > MessageIds


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.junit.runner;
12
13 /**
14  * Message identifiers for messages sent by the
15  * RemoteTestRunner.
16  *
17  * @see RemoteTestRunner
18  */

19 public class MessageIds {
20     /**
21      * The header length of a message, all messages
22      * have a fixed header length
23      */

24     public static final int MSG_HEADER_LENGTH= 8;
25     
26     /**
27      * Notification that a test trace has started.
28      * The end of the trace is signaled by a TRACE_END
29      * message. In between the TRACE_START and TRACE_END
30      * the stack trace is submitted as multiple lines.
31      */

32     public static final String JavaDoc TRACE_START= "%TRACES "; //$NON-NLS-1$
33
/**
34      * Notification that a trace ends.
35      */

36     public static final String JavaDoc TRACE_END= "%TRACEE "; //$NON-NLS-1$
37
/**
38      * Notification that the expected result has started.
39      * The end of the expected result is signaled by a Trace_END.
40      */

41     public static final String JavaDoc EXPECTED_START= "%EXPECTS"; //$NON-NLS-1$
42
/**
43      * Notification that an expected result ends.
44      */

45     public static final String JavaDoc EXPECTED_END= "%EXPECTE"; //$NON-NLS-1$
46
/**
47      * Notification that the expected result has started.
48      * The end of the expected result is signaled by a Trace_END.
49      */

50     public static final String JavaDoc ACTUAL_START= "%ACTUALS"; //$NON-NLS-1$
51
/**
52      * Notification that an expected result ends.
53      */

54     public static final String JavaDoc ACTUAL_END= "%ACTUALE"; //$NON-NLS-1$
55
/**
56      * Notification that a trace for a reran test has started.
57      * The end of the trace is signaled by a RTrace_END
58      * message.
59      */

60     public static final String JavaDoc RTRACE_START= "%RTRACES"; //$NON-NLS-1$
61
/**
62      * Notification that a trace of a reran trace ends.
63      */

64     public static final String JavaDoc RTRACE_END= "%RTRACEE"; //$NON-NLS-1$
65
/**
66      * Notification that a test run has started.
67      * MessageIds.TEST_RUN_START + testCount.toString + " " + version
68      */

69     public static final String JavaDoc TEST_RUN_START= "%TESTC "; //$NON-NLS-1$
70
/**
71      * Notification that a test has started.
72      * MessageIds.TEST_START + testID + "," + testName
73      */

74     public static final String JavaDoc TEST_START= "%TESTS "; //$NON-NLS-1$
75
/**
76      * Notification that a test has started.
77      * TEST_END + testID + "," + testName
78      */

79     public static final String JavaDoc TEST_END= "%TESTE "; //$NON-NLS-1$
80
/**
81      * Notification that a test had a error.
82      * TEST_ERROR + testID + "," + testName.
83      * After the notification follows the stack trace.
84      */

85     public static final String JavaDoc TEST_ERROR= "%ERROR "; //$NON-NLS-1$
86
/**
87      * Notification that a test had a failure.
88      * TEST_FAILED + testID + "," + testName.
89      * After the notification follows the stack trace.
90      */

91     public static final String JavaDoc TEST_FAILED= "%FAILED "; //$NON-NLS-1$
92
/**
93      * Notification that a test run has ended.
94      * TEST_RUN_END + elapsedTime.toString().
95      */

96     public static final String JavaDoc TEST_RUN_END="%RUNTIME"; //$NON-NLS-1$
97
/**
98      * Notification that a test run was successfully stopped.
99      */

100     public static final String JavaDoc TEST_STOPPED="%TSTSTP "; //$NON-NLS-1$
101
/**
102      * Notification that a test was reran.
103      * TEST_RERAN + testId + " " + testClass + " " + testName + STATUS.
104      * Status = "OK" or "FAILURE".
105      */

106     public static final String JavaDoc TEST_RERAN= "%TSTRERN"; //$NON-NLS-1$
107
/**
108      * Notification about a test inside the test suite.
109      * TEST_TREE + testId + "," + testName + "," + isSuite + "," + testcount
110      * isSuite = "true" or "false"
111      */

112     public static final String JavaDoc TEST_TREE="%TSTTREE"; //$NON-NLS-1$
113
/**
114      * Request to stop the current test run.
115      */

116     public static final String JavaDoc TEST_STOP= ">STOP "; //$NON-NLS-1$
117
/**
118      * Request to rerun a test.
119      * TEST_RERUN + testId + " " + testClass + " "+testName
120      */

121     public static final String JavaDoc TEST_RERUN= ">RERUN "; //$NON-NLS-1$
122

123     /**
124      * MessageFormat to encode test method identifiers:
125      * testMethod(testClass)
126      */

127     public static final String JavaDoc TEST_IDENTIFIER_MESSAGE_FORMAT= "{0}({1})"; //$NON-NLS-1$
128

129     /**
130      * Test identifier prefix for ignored tests.
131      */

132     public static final String JavaDoc IGNORED_TEST_PREFIX= "@Ignore: "; //$NON-NLS-1$
133
}
134
135
136
Popular Tags