Polish contribution

Closes gh-655
This commit is contained in:
Stephane Nicoll
2018-04-16 16:21:30 +02:00
parent 593759f321
commit 432be66c5a
11 changed files with 18 additions and 22 deletions

View File

@@ -20,7 +20,7 @@ package io.spring.initializr.metadata;
* Metadata with a default value.
*
* @param <T> The value type
* @author Stephane Nicoll
* @author Dave Syer
*/
public interface Defaultable<T> {

View File

@@ -19,7 +19,7 @@ package io.spring.initializr.metadata;
/**
* An item that can describe itself.
*
* @author Stephane Nicoll
* @author Dave Syer
*/
public interface Describable {

View File

@@ -65,9 +65,7 @@ public class LinkTests {
Link link = Link.create("reference", "https://example.com/{a}/2/{b}");
link.resolve();
assertThat(link.isTemplated()).isTrue();
assertThat(link.getTemplateVariables()).hasSize(2);
assertThat(link.getTemplateVariables().contains("a")).isTrue();
assertThat(link.getTemplateVariables().contains("b")).isTrue();
assertThat(link.getTemplateVariables()).containsExactlyInAnyOrder("a", "b");
}
@Test