Package org.hudsonci.inject.internal

Examples of org.hudsonci.inject.internal.SmoothieContainerBootstrap


    protected final Logger log = LoggerFactory.getLogger(getClass());

    @Before
    public void setUp() throws Exception {
        SmoothieUtil.reset();
        new SmoothieContainerBootstrap().bootstrap(getClass().getClassLoader(), Smoothie.class, getClass());
    }
View Full Code Here


     * @return  The container instance; never null
     */
    public static synchronized SmoothieContainer getContainer() {
        if (container == null) {
            // This should really be done by a ServletContextListener when the webapp loads, but for now we are not modifying hudson-core, so bootstrap the container here.
            return new SmoothieContainerBootstrap().bootstrap();
        }
        return container;
    }
View Full Code Here

        AbstractProject.WORKSPACE.toString();
        User.clear();

        // Bootstrap the container with details about our testing classes, so it can figure out what to scan/include
        SmoothieUtil.reset(); // force-reset, some tests may not properly hit the tear-down to reset so do it again here
        new SmoothieContainerBootstrap().bootstrap(getClass().getClassLoader(), Hudson.class, Smoothie.class, HudsonTestCase.class, getClass());

        try {
            hudson = newHudson();
        } catch (Exception e) {
            // if Hudson instance fails to initialize, it leaves the instance field non-empty and break all the rest of the tests, so clean that up.
View Full Code Here

TOP

Related Classes of org.hudsonci.inject.internal.SmoothieContainerBootstrap

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.