Last active
August 29, 2015 14:12
-
-
Save sizovs/d41fe7a4c5e79d03f1dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method method = PersonController.class.getMethod("show", Long.class); | |
Link link = linkTo(method, 2L).withSelfRel(); | |
assertThat(link.getHref(), is("/people/2"))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment