01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.testplugin.util;
11:
12: import java.util.ArrayList;
13:
14: /*
15: * Interface to describe a visual test pass for a dialog test.
16: */
17: public interface IDialogTestPass {
18: /*
19: * @return String The title of the test pass.
20: */
21: public String title();
22:
23: /*
24: * @return String The description of the test pass.
25: */
26: public String description();
27:
28: /*
29: * @return String The label of the test pass to be used
30: * in a selection list. The return includes an '&'
31: * if a mnemonic is desired.
32: */
33: public String label();
34:
35: /*
36: * @return ArrayList A list of items to appear in a checklist.
37: * The items in the list must be Strings and should include an
38: * '&' if a mnemonic is desired.
39: */
40: public ArrayList checkListTexts();
41:
42: /*
43: * @return String[] Associated failure messages that correspond
44: * to the checklist items. The size of this array should be the
45: * same size as the checklist.
46: */
47: public String[] failureTexts();
48:
49: /*
50: * @return String The test that corresponds to the test pass to
51: * which the tester will respond with a 'yes' or 'no'.
52: */
53: public String queryText();
54:
55: /*
56: * @return int A unique number that identifies the test pass.
57: */
58: public int getID();
59: }
|