Package org.apache.maven.surefire.booter

Examples of org.apache.maven.surefire.booter.SurefireExecutionException


            return ProviderFactory.invokeProvider( null, testsClassLoader, factory,
                                                   providerConfiguration, false, startupConfiguration, true );
        }
        catch ( InvocationTargetException e )
        {
            throw new SurefireExecutionException( "Exception in provider", e.getTargetException() );
        }
    }
View Full Code Here


        } else if (ForkConfiguration.FORK_ONCE.equals(forkConfiguration.getForkMode())) {
            result = runSuitesForkOnce();
        } else if (ForkConfiguration.FORK_ALWAYS.equals(forkConfiguration.getForkMode())) {
            result = runSuitesForkPerTestSet();
        } else {
            throw new SurefireExecutionException("Unknown forkmode: " + forkConfiguration.getForkMode(), null);
        }
        return result;
    }
View Full Code Here

                (Integer)run.invoke(surefire, new Object[] {reports, testSuites.get(0), testSet, surefireClassLoader,
                                                            testsClassLoader, results, new Boolean(failIfNoTests)});

            return result.intValue();
        } catch (InvocationTargetException e) {
            throw new SurefireExecutionException(e.getTargetException().getMessage(), e.getTargetException());
        } catch (Exception e) {
            throw new SurefireExecutionException("Unable to instantiate and execute Surefire", e);
        } finally {
            stop();
            Thread.currentThread().setContextClassLoader(oldContextClassLoader);
        }
    }
View Full Code Here

                (Integer)run.invoke(surefire, new Object[] {reports, testSuites, surefireClassLoader, testsClassLoader,
                                                            new Boolean(failIfNoTests)});

            return result.intValue();
        } catch (InvocationTargetException e) {
            throw new SurefireExecutionException(e.getTargetException().getMessage(), e.getTargetException());
        } catch (Exception e) {
            throw new SurefireExecutionException("Unable to instantiate and execute Surefire", e);
        } finally {
            stop();
            Thread.currentThread().setContextClassLoader(oldContextClassLoader);
        }
    }
View Full Code Here

                result = runSuitesForkPerTestSet( providerConfiguration.getProviderProperties(),
                                                  forkConfiguration.getThreadCount() );
            }
            else
            {
                throw new SurefireExecutionException( "Unknown forkmode: " + requestedForkMode, null );
            }
        }
        finally
        {
            fileReporterFactory.close();
View Full Code Here

                    result = runSuitesForkPerTestSet( effectiveSystemProperties, forkConfiguration.getForkCount() );
                }
            }
            else
            {
                throw new SurefireExecutionException( "Unknown forkmode: " + requestedForkMode, null );
            }
        }
        finally
        {
            defaultReporterFactory.close();
View Full Code Here

            return ProviderFactory.invokeProvider( null, testsClassLoader, surefireClassLoader, factory,
                                                   providerConfiguration, false, startupConfiguration, true );
        }
        catch ( InvocationTargetException e )
        {
            throw new SurefireExecutionException( "Exception in provider", e.getTargetException() );
        }
    }
View Full Code Here

            {
                result = runSuitesForkPerTestSet( providerProperties, effectiveSystemProperties, forkConfiguration.getForkCount() );
            }
            else
            {
                throw new SurefireExecutionException( "Unknown forkmode: " + requestedForkMode, null );
            }
        }
        finally
        {
            fileReporterFactory.close();
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.booter.SurefireExecutionException

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.