Source:
public void testlinkifyMessageUrl ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url" ) ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "https://my/url" , "url" , "https://my/url" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "https://my/url" ) ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "foo " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " bar" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "foo http://my/url bar" ) ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "foo " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " bar " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/other/url" , "url" , "http://my/other/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " baz" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "foo http://my/url bar http://my/other/url baz" ) ) ; }

Target:
public void linkifyMessageUrl ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "http://my/url" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "https://my/url" , "url" , "https://my/url" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "https://my/url" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "foo " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " bar" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "foo http://my/url bar" ) ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "foo " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/url" , "url" , "http://my/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " bar " ) , com.google.common.collect.ImmutableMap.of ( "text" , "http://my/other/url" , "url" , "http://my/other/url" ) , com.google.common.collect.ImmutableMap.of ( "text" , " baz" ) ) , l.linkify ( com.google.gitiles.LinkifierTest.REQ , "foo http://my/url bar http://my/other/url baz" ) ) ; }