Removed snapshot versions

This commit is contained in:
Marcin Grzejszczak
2019-01-22 20:31:10 +01:00
parent 8ebc749d2f
commit d8f5986115
2 changed files with 13 additions and 12 deletions

View File

@@ -94,11 +94,13 @@
<artifactId>spring-cloud-contract-verifier</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<!-- TODO: We had to remove any dependencies that contain snaps versions.
We have to figure out how to solve this (maybe release a RELEASE version for tests) -->
<!--<dependency>
<groupId>sagan</groupId>
<artifactId>sagan-site</artifactId>
<classifier>stubs</classifier>
<version>1.0.0.BUILD-SNAPSHOT</version>
<version>1.0.0.BUILD-SNAP...</version>
<scope>test</scope>
<exclusions>
<exclusion>
@@ -111,7 +113,7 @@
<groupId>com.example.github</groupId>
<artifactId>github-webhook</artifactId>
<classifier>stubs</classifier>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1-SNAP...</version>
<scope>test</scope>
<exclusions>
<exclusion>
@@ -119,6 +121,6 @@
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>-->
</dependencies>
</project>

View File

@@ -21,28 +21,27 @@ import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.web.client.RestTemplate;
import static org.assertj.core.api.BDDAssertions.then;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = AutoConfigureWireMockFilesApplicationWithUrlResourceTests.Config.class,
properties = "app.baseUrl=http://localhost:${wiremock.server.port}",
webEnvironment = WebEnvironment.NONE)
//@RunWith(SpringRunner.class)
//@SpringBootTest(classes = AutoConfigureWireMockFilesApplicationWithUrlResourceTests.Config.class,
// properties = "app.baseUrl=http://localhost:${wiremock.server.port}",
// webEnvironment = WebEnvironment.NONE)
// tag::load_all_stubs[]
@AutoConfigureWireMock(port = 0, stubs = "classpath*:/META-INF/**/mappings/**/*.json")
// end::load_all_stubs[]
// Ignore for a GA Release
@Ignore
public class AutoConfigureWireMockFilesApplicationWithUrlResourceTests {
@Autowired