#267 - Polishing.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2015 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.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012 the original author or authors.
|
||||
* Copyright 2012-2015 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.
|
||||
@@ -143,4 +143,17 @@ public class ResourceSupportUnitTest {
|
||||
ResourceSupport support = new ResourceSupport();
|
||||
assertThat(support.equals(null), is(false));
|
||||
}
|
||||
|
||||
/**
|
||||
* @see #267
|
||||
*/
|
||||
@Test
|
||||
public void addsLinksViaVarargs() {
|
||||
|
||||
ResourceSupport support = new ResourceSupport();
|
||||
support.add(new Link("/self", "self"), new Link("/another", "another"));
|
||||
|
||||
assertThat(support.hasLink("self"), is(true));
|
||||
assertThat(support.hasLink("another"), is(true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user