Пример #1
0
 @Test
 public void testHandlesPrefix() throws Exception {
   // http: part is stripped at PictureUrlRegistry level
   String avatarUrl =
       subject.imageUrlFor("//assets.github.com/images/modules/about_page/octocat.png");
   // Throws an exception if any errors are found
   URL url = new URL(avatarUrl);
   assertThat(url.toExternalForm(), notNullValue());
 }
Пример #2
0
 @Test
 public void testImageUrlFor() throws Exception {
   assertThat(subject.handlesPrefix(), notNullValue());
 }