Examples of RunResult


Examples of org.apache.maven.surefire.suite.RunResult

            new ThreadPoolExecutor( forkCount, forkCount, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>() );

        try
        {
            // Ask to the executorService to run all tasks
            RunResult globalResult = new RunResult( 0, 0, 0, 0 );
            final Iterator<Class<?>> suites = getSuitesIterator();
            while ( suites.hasNext() )
            {
                final Object testSet = suites.next();
                Callable<RunResult> pf = new Callable<RunResult>()
                {
                    public RunResult call()
                        throws Exception
                    {
                        int thisThreadsThreadNumber = threadNumber.get();
                        if ( thisThreadsThreadNumber > forkCount )
                        {
                            // this would be a bug in the ThreadPoolExecutor
                            throw new IllegalStateException(
                                "More threads than " + forkCount + " have been created by the ThreadPoolExecutor." );
                        }

                        ForkClient forkClient = new ForkClient( defaultReporterFactory,
                                                                startupReportConfiguration.getTestVmSystemProperties() );
                        return fork( testSet, new PropertiesWrapper( providerConfiguration.getProviderProperties() ),
                                     forkClient, effectiveSystemProperties, thisThreadsThreadNumber, null );
                    }
                };
                results.add( executorService.submit( pf ) );

            }

            for ( Future<RunResult> result : results )
            {
                try
                {
                    RunResult cur = result.get();
                    if ( cur != null )
                    {
                        globalResult = globalResult.aggregate( cur );
                    }
                    else
View Full Code Here

Examples of org.openjdk.jmh.logic.results.RunResult

                        .verbosity(VerboseMode.SILENT)
                        .include(benchmark.getUsername())
                        .jvmArgs("-Dtestdata=testdata/" + dataset.getFileName())
                        .build();

                RunResult result = new Runner(opt).runSingle();
                Result uncompressedBytes = result.getSecondaryResults().get("getUncompressedBytes");

                Statistics stats = uncompressedBytes.getStatistics();
                System.out.printf("  %-14s %10s ± %10s (%5.2f%%) (N = %d, \u03B1 = 99.9%%)\n",
                        getBenchmarkName(benchmark),
                        Util.toHumanReadableSpeed((long) stats.getMean()),
View Full Code Here

Examples of org.wildfly.extension.requestcontroller.RunResult

                injector.inject(new ManagedReferenceFactory() {
                    @Override
                    public ManagedReference getReference() {
                        ControlPoint cp = controlPointInjectedValue.getValue();
                        try {
                            RunResult res = cp.beginRequest();
                            if(res != RunResult.RUN) {
                                throw EjbLogger.ROOT_LOGGER.containerSuspended();
                            }
                            try {
                                return delegateInjection.getValue().getReference();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.