Package com.alexecollins.vbox.core

Examples of com.alexecollins.vbox.core.Context


  public void setContext(String context) {
    this.context = context;
  }

  protected Work work() {
    return new Work(new Context(context));
  }
View Full Code Here


  protected Work work() {
    return new Work(new Context(context));
  }

  protected Context context() {
    return new Context(context);
  }
View Full Code Here

    // ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD
    MavenLogAdapter.LOG = getLog();
  }

  protected Context getContext() {
    return new Context(project.getGroupId() +":"+project.getArtifactId());
  }
View Full Code Here

  }

  protected abstract void execute(VBox box) throws Exception;

  public Work getWork() {
    return new Work(new Context(project.getGroupId() + ":" + project.getArtifactId()));
  }
View Full Code Here

  }

  @Test
  public void testApply() throws Exception {
    final File tmp = Files.createTempDir();
    final Context context = new TestContext();
    new CreateDefinition(context, "CentOS_6_5", tmp).call();
    new PredefinedPatch("CentOS_6_5--tomcat6", ImmutableMap.of("hostname", "localhost")).apply(new VBox(context, tmp.toURI()));
    assertTrue(FileUtils.readFileToString(new File(tmp, "floppy0/post-install.sh")).contains("tomcat6"));
  }
View Full Code Here

TOP

Related Classes of com.alexecollins.vbox.core.Context

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.