mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 09:09:01 +00:00
Don't use snapshot repos for CLI test
Update SampleIntegrationTests to only use local maven repo when running integration tests.
This commit is contained in:
+11
@@ -24,6 +24,7 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.apache.ivy.util.FileUtil;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
@@ -64,6 +65,16 @@ public class SampleIntegrationTests {
|
||||
this.command = future.get(4, TimeUnit.MINUTES);
|
||||
}
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
System.setProperty("disableSpringSnapshotRepos", "true");
|
||||
}
|
||||
|
||||
@After
|
||||
public void teardown() {
|
||||
System.clearProperty("disableSpringSnapshotRepos");
|
||||
}
|
||||
|
||||
@After
|
||||
public void stop() {
|
||||
if (this.command != null) {
|
||||
|
||||
Reference in New Issue
Block a user