Use simplified @Grab where possible

This commit is contained in:
Dave Syer
2013-10-09 10:16:01 -04:00
parent 1dd0cca294
commit 3adfdd34ec
8 changed files with 13 additions and 46 deletions

View File

@@ -16,9 +16,6 @@
package org.springframework.boot.cli;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.net.URL;
import java.util.concurrent.Callable;
@@ -37,6 +34,9 @@ import org.springframework.boot.OutputCapture;
import org.springframework.boot.cli.command.CleanCommand;
import org.springframework.boot.cli.command.RunCommand;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Integration tests to exercise the samples.
*
@@ -95,13 +95,6 @@ public class SampleIntegrationTests {
assertTrue("Wrong output: " + output, output.contains("Hello World"));
}
@Test
public void simpleGrabSample() throws Exception {
start("samples/simpleGrab.groovy");
String output = this.outputCapture.getOutputAndRelease();
assertTrue("Wrong output: " + output, output.contains("Hello World"));
}
@Test
public void templateSample() throws Exception {
start("samples/template.groovy");