Package org.netbeans.modules.gsf.testrunner.api

Examples of org.netbeans.modules.gsf.testrunner.api.TestSession


        public MockSession(String name, Project project) {
            super("MockSession." + name);

            this.name = name;
            this.project = project;
            this.gsfSession = new TestSession(name, project, TestSession.SessionType.TEST);
            this.suites = new ConcurrentLinkedQueue<>();
            this.closed = new AtomicBoolean(false);
        }
View Full Code Here


            RerunHandler rerunHandler) {

        ExceptionHelper.checkNotNullArgument(name, "name");
        ExceptionHelper.checkNotNullArgument(project, "project");

        TestSession session = nodeFactory != null
                ? new TestSession(name, project, TestSession.SessionType.TEST, nodeFactory)
                : new TestSession(name, project, TestSession.SessionType.TEST);
        // RerunHandler must be added right after creating the session
        // otherwise it will be ignore by the rerun buttons.
        if (rerunHandler != null) {
            session.setRerunHandler(rerunHandler);
        }
        manager.testStarted(session);

        return new NbGradleTestSessionImpl(manager, session);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.gsf.testrunner.api.TestSession

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.