Package uk.co.javahelp.maven.plugin.fitnesse.util

Examples of uk.co.javahelp.maven.plugin.fitnesse.util.Interrupter


  @Test
  public void testWikiMojoBasic() throws Exception {
   
    mojo.createSymLink = false;
   
    new Interrupter(Thread.currentThread(), 100L).start();
    mojo.executeInternal();
   
    verify(fitNesseHelper, times(1)).launchFitNesseServer(PORT_STRING, mojo.workingDir, mojo.root, mojo.logDir);
    verify(fitNesseHelper, never()).createSymLink(any(File.class), anyString(), anyInt(), any(Launch.class));
    verify(fitNesseHelper, times(1)).shutdownFitNesseServer(PORT_STRING);
View Full Code Here


    //mojo.suite = "suite";
    //mojo.test = "test";
    mojo.testResourceDirectory = "testResourceDirectory";
   
    Launch launch =  new Launch("suite", "test");
    new Interrupter(Thread.currentThread(), 100L).start();
   
    mojo.executeInternal(launch);
   
    verify(fitNesseHelper, times(1)).launchFitNesseServer(PORT_STRING, mojo.workingDir, mojo.root, mojo.logDir);
    verify(fitNesseHelper, times(1)).createSymLink(mojo.project.getBasedir(), mojo.testResourceDirectory, PORT, launch);
View Full Code Here

  @Override
    protected final void executeInternal(final Launch... launches)
          throws MojoExecutionException, MojoFailureException {
      final String portString = this.port.toString();
        try {
          Runtime.getRuntime().addShutdownHook(new Interrupter(Thread.currentThread(), 0L));
            this.fitNesseHelper.launchFitNesseServer(portString, this.workingDir, this.root, this.logDir);
        if(this.createSymLink) {
              this.fitNesseHelper.createSymLink(
                  this.project.getBasedir(), this.testResourceDirectory, this.port, launches);
        }
View Full Code Here

TOP

Related Classes of uk.co.javahelp.maven.plugin.fitnesse.util.Interrupter

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.