コード例 #1
0
 @Test
 public void testGetByShortNameAndUrl() {
   assertEquals(
       "1.4",
       jenkinsPlugins
           .getByShortNameAndUrl("mailer", "http://wiki.jenkins-ci.org/display/JENKINS/Mailer")
           .getVersion());
 }
コード例 #2
0
 @Test(expected = IllegalArgumentException.class)
 public void testGetByShortNameAndUrlWhoseUrlDoesNotMatch() {
   jenkinsPlugins.getByShortNameAndUrl(
       "mailer", "http://wiki.jenkins-ci.org/display/JENKINS/MailerXXX");
 }