Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 259d90921d22d72c689907ab3f4d46b94f60b53d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
 * Copyright (c) 2001, 2007 Oracle Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Oracle Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsf.common.internal;

/**
 * An injection interface that allows classes to selectively report test progress.
 * 
 * @author cbateman
 *
 */
public interface ITestTracker 
{
    /**
     * Event types
     *
     */
    public enum Event
    {
        /**
         * Signals that tracking should begin on the eventLabel
         * The seqId must be repeated on the STOP_TRACKING event
         * for the same event.
         */
        START_TRACKING,
        /**
         * Signals that tracking should stop on the named event
         * for the seqId that was passed first in the START_TRACKING.
         * 
         */
        STOP_TRACKING
    }
    
    /**
     * Fires the event of type event, a unique instance tracking seqId
     * and a label called eventLabel.
     * 
     * @param event
     * @param seqId
     * @param eventLabel
     */
    void fireEvent(Event event, long seqId, String eventLabel);
}

Back to the top