Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4c23200dc611992c0d2ad9e7816937ea1bde45c0 (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
51
52
/*******************************************************************************
 * Copyright (c) 2011, 2012 Anton Gorenkov 
 * 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:
 *     Anton Gorenkov - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.testsrunner.model;

/**
 * Provides an access to the tests model.
 * 
 * @noextend This interface is not intended to be extended by clients.
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface ITestModelAccessor {

	/**
	 * Checks whether the specified testing item (case or suite) is running now.
	 * 
	 * @param item the interested item
	 * @return whether the item is running now
	 */
	public boolean isCurrentlyRunning(ITestItem item);
	
	/**
	 * Provides access to the root test suite.
	 *
	 * @return root test suite
	 */
	public ITestSuite getRootSuite();
	
	/**
	 * Adds the given listener to this registered listeners collection.
	 * Has no effect if an identical listener is already registered.
	 *
	 * @param listener the listener to add
	 */
	public void addChangesListener(ITestingSessionListener listener);

	/**
	 * Removes the given listener from registered listeners collection.
	 * Has no effect if the listener is not already registered.
	 *
	 * @param listener the listener to remove
	 */
	public void removeChangesListener(ITestingSessionListener listener);
	
}

Back to the top