Package org.apache.beehive.controls.test

Examples of org.apache.beehive.controls.test.ControlTestException


    protected ControlContainerContextManager getControlContainerContextManager() {
        if(_controlContainerContextManager == null) {
            ControlContainerContext ccc = initializeControlContainerContext();

            if(ccc == null)
                throw new ControlTestException("Could not instantiate a ControlContainerContextManager as the control container context was null");

            _controlContainerContextManager = ControlContainerContextManagerFactory.getInstance(ccc);
        }

        return _controlContainerContextManager;
View Full Code Here


            Object controlBean = java.beans.Beans.instantiate(classLoader, className, ControlThreadContext.getContext());
            assert controlBean instanceof ControlBean;
            return (ControlBean)controlBean;
        }
        catch(Exception e) {
            throw new ControlTestException("Could not instantiate control with class \"" + className +
                "\".  Cause: " + e.getMessage(), e);
        }
    }
View Full Code Here

            Controls.initializeClient(Thread.currentThread().getContextClassLoader(), object, ControlThreadContext.getContext());
        }
        catch(Exception e) {
            if(e.getCause() instanceof ClassNotFoundException)
                System.err.println("Could not locate initializer for '" + getClass().getName() + "'.  Assuming no controls to initialize");
            else throw new ControlTestException("Exception initializing controls for type '" + testClass.getName() + "'", e);
        }
    }
View Full Code Here

    protected ControlContainerContextManager getControlContainerContextManager() {
        if(_controlContainerContextManager == null) {
            ControlContainerContext ccc = initializeControlContainerContext();

            if(ccc == null)
                throw new ControlTestException("Could not instantiate a ControlContainerContextManager as the control container context was null");

            _controlContainerContextManager = ControlContainerContextManagerFactory.getInstance(ccc);
        }

        return _controlContainerContextManager;
View Full Code Here

            Object controlBean = java.beans.Beans.instantiate(classLoader, className, ControlThreadContext.getContext());
            assert controlBean instanceof ControlBean;
            return (ControlBean)controlBean;
        }
        catch(Exception e) {
            throw new ControlTestException("Could not instantiate control with class \"" + className +
                "\".  Cause: " + e.getMessage(), e);
        }
    }
View Full Code Here

            Controls.initializeClient(Thread.currentThread().getContextClassLoader(), object, ControlThreadContext.getContext());
        }
        catch(Exception e) {
            if(e.getCause() instanceof ClassNotFoundException)
                System.err.println("Could not locate initializer for '" + getClass().getName() + "'.  Assuming no controls to initialize");
            else throw new ControlTestException("Exception initializing controls for type '" + testClass.getName() + "'", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.controls.test.ControlTestException

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.