Package com.qspin.qtaste.testsuite

Examples of com.qspin.qtaste.testsuite.QTasteException


        } catch (InstantiationException e) {
            logger.error("SingletonFactory cannot instantiate the constructor of " + componentClass.getName(), e);
        } catch (IllegalAccessException e) {
            logger.error("SingletonFactory cannot access the constructor of " + componentClass.getName(), e);
        }
        throw new QTasteException("ComponentClass " + componentClass + " cannot be instantiated");
    }
View Full Code Here


    public void throwQTasteDataException() throws QTasteDataException {
        throw new QTasteDataException("Invalid data");
    }

    public void throwQTasteException() throws QTasteException {
        throw new QTasteException("Generic QTasteException");
    }
View Full Code Here

            String keyToFind = "multiple_instances_components." + component + "(" + instanceIndex + ")";           
            List<?> list = testbedConfig.configurationsAt(keyToFind);           
            if (!list.isEmpty()) {               
                Class<?> c = ComponentsLoader.getInstance().getComponentImplementationClass(component);
                if (c == null) {
                    throw new QTasteException("The class implementing the component " + component + " is not registered in testapi_implementation.import(s) selected in the Testbed configuration.");
                }               
                Component componentImpl = createComponentInstance(instanceId, c);              
                map.put(key, componentImpl);               
                return componentImpl;
            } else {
View Full Code Here

            Throwable targetException = e.getTargetException();
            if (targetException instanceof QTasteException) {
                throw (QTasteException)targetException;
            }
        }
        throw new QTasteException("ComponentClass " + component + " cannot be instantiated");
    }
View Full Code Here

public class JavaGUIImpl implements JavaGUI {

  public JavaGUIImpl(String url) throws Exception {
    mClient = new JMXClient(url);
    if ( mClient == null ) {
      throw new QTasteException("Unable to connect to the JMX client");
    }
    initialize();
  }
View Full Code Here

      mProxy = getProxy();
     }
     catch (Exception pExc)
     {
       pExc.printStackTrace();
       throw new QTasteException("Unable to initialize the JMX client");
     }
   }
View Full Code Here

  {
    try {
      mClient.disconnect();
    } catch (Exception e) {
      e.printStackTrace();
      throw new QTasteException(e.getMessage());
    }
  }
View Full Code Here

        this.reason = reason;
    }

    public Data getLast(String name) throws QTasteException, QTasteTestFailException {
        if (!isValid) {
            throw new QTasteException("Cache is not valid. Reason:" + reason);
        }
        Data data = hash.getLast(name);
        if (data == null) {
            throw new QTasteTestFailException("Variable " + name + " is not present in cache");
        }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.testsuite.QTasteException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.