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:
Phillip Webb
2013-08-06 01:22:59 -07:00
parent e773db2401
commit f4c129a063
2 changed files with 17 additions and 4 deletions

View File

@@ -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) {