Coverage Report - org.eclipse.swtbot.swt.finder.resolvers.NullResolver
 
Classes in this File Line Coverage Branch Coverage Complexity
NullResolver
100%
7/7
N/A
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  
 package org.eclipse.swtbot.swt.finder.resolvers;
 12  
 
 13  
 import java.util.ArrayList;
 14  
 import java.util.List;
 15  
 
 16  
 import org.eclipse.swt.widgets.Widget;
 17  
 
 18  
 /**
 19  
  * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
 20  
  * @version $Id$
 21  
  */
 22  5058
 public class NullResolver implements IChildrenResolver, IParentResolver {
 23  
 
 24  
         public boolean canResolve(Widget w) {
 25  1
                 return true;
 26  
         }
 27  
 
 28  
         public List getChildren(Widget w) {
 29  1
                 return new ArrayList();
 30  
         }
 31  
 
 32  
         public Widget getParent(Widget w) {
 33  1
                 return null;
 34  
         }
 35  
 
 36  
         public Class[] getResolvableClasses() {
 37  5053
                 return new Class[0];
 38  
         }
 39  
 
 40  
         public boolean hasChildren(Widget w) {
 41  1
                 return false;
 42  
         }
 43  
 
 44  
         public boolean hasParent(Widget w) {
 45  1
                 return false;
 46  
         }
 47  
 
 48  
 }