mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-02 03:14:01 +08:00
Upgrade to Spring Cloud Contract 1.2.0.RELEASE
Closes gh-508
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package io.spring.initializr.stub;
|
package io.spring.initializr.stub;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -38,7 +37,7 @@ public class ClientApplicationTests {
|
|||||||
private RestTemplate restTemplate;
|
private RestTemplate restTemplate;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCurrentMetadata() throws IOException {
|
public void testCurrentMetadata() {
|
||||||
RequestEntity<Void> request = RequestEntity.get(createUri("/"))
|
RequestEntity<Void> request = RequestEntity.get(createUri("/"))
|
||||||
.accept(MediaType.valueOf("application/vnd.initializr.v2.1+json"))
|
.accept(MediaType.valueOf("application/vnd.initializr.v2.1+json"))
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -81,7 +81,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-contract-dependencies</artifactId>
|
<artifactId>spring-cloud-contract-dependencies</artifactId>
|
||||||
<version>1.0.5.RELEASE</version>
|
<version>1.2.0.RELEASE</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
Reference in New Issue
Block a user