Merge branch '1.0.x'

This commit is contained in:
Andy Wilkinson
2016-04-13 14:15:04 +01:00
6 changed files with 32 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2015 the original author or authors.
* Copyright 2014-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -53,7 +53,7 @@ public class LinkExtractorsPayloadTests {
private final String linkType;
@Parameters
@Parameters(name = "{1}")
public static Collection<Object[]> data() {
return Arrays.asList(new Object[] { new HalLinkExtractor(), "hal" },
new Object[] { new AtomLinkExtractor(), "atom" });

View File

@@ -1,5 +1,9 @@
{
"_links": {
"alpha": ["http://alpha.example.com/one", "http://alpha.example.com/two"]
"links": {
"alpha": [{
"href": "http://alpha.example.com/one"
}, {
"href": "http://alpha.example.com/two"
}]
}
}

View File

@@ -1,6 +1,10 @@
{
"_links": {
"alpha": "http://alpha.example.com",
"bravo": "http://bravo.example.com"
"alpha": {
"href": "http://alpha.example.com"
},
"bravo": {
"href": "http://bravo.example.com"
}
}
}

View File

@@ -1,5 +1,9 @@
{
"_links": {
"alpha": ["http://alpha.example.com/one", "http://alpha.example.com/two"]
"alpha": [{
"href": "http://alpha.example.com/one"
}, {
"href": "http://alpha.example.com/two"
}]
}
}

View File

@@ -1,5 +1,7 @@
{
"_links": {
"alpha": "http://alpha.example.com"
"alpha": {
"href": "http://alpha.example.com"
}
}
}