| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| DefaultCondition |
|
| 1.0;1 |
| 1 | /******************************************************************************* | |
| 2 | * Copyright (c) 2008 Ketan Padegaonkar 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 | * Ketan Padegaonkar - initial API and implementation | |
| 10 | *******************************************************************************/ | |
| 11 | ||
| 12 | package org.eclipse.swtbot.swt.finder.waits; | |
| 13 | ||
| 14 | import org.eclipse.swtbot.swt.finder.SWTBot; | |
| 15 | ||
| 16 | /** | |
| 17 | * This is an abstract implementation of the condition interface to simplify the implementing classes. | |
| 18 | * | |
| 19 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
| 20 | * @version $Id$ | |
| 21 | */ | |
| 22 | 4831 | public abstract class DefaultCondition implements ICondition { |
| 23 | ||
| 24 | /** the SWTBot instance that this instance may use to evaluate the test. */ | |
| 25 | protected SWTBot bot; | |
| 26 | ||
| 27 | /** | |
| 28 | * Initializes the condition with the given {@link SWTBot}. | |
| 29 | * | |
| 30 | * @see org.eclipse.swtbot.swt.finder.waits.ICondition#init(org.eclipse.swtbot.swt.finder.SWTBot) | |
| 31 | * @param bot The bot to use. This should never be <code>null</code>. | |
| 32 | */ | |
| 33 | public void init(SWTBot bot) { | |
| 34 | 4827 | this.bot = bot; |
| 35 | 4827 | } |
| 36 | ||
| 37 | } |