mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-02 19:34:05 +08:00
Polish contribution
Closes gh-655
This commit is contained in:
@@ -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> {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ package io.spring.initializr.metadata;
|
||||
/**
|
||||
* An item that can describe itself.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @author Dave Syer
|
||||
*/
|
||||
public interface Describable {
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user