mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 20:12:14 +00:00
Better defect localization
This commit is contained in:
1 parent
a4698bacf9
commit
731c86ea3c
1 file changed
+3
-2
@@ -1,6 +1,7 @@
|
||||
package jenkins.model;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
|
||||
import com.gargoylesoftware.htmlunit.html.HtmlInput;
|
||||
import com.gargoylesoftware.htmlunit.html.HtmlPage;
|
||||
@@ -24,6 +25,6 @@ public class JenkinsLocationConfigurationTest {
|
||||
HtmlPage p = j.createWebClient().goTo("configure");
|
||||
HtmlInput url = p.getFormByName("config").getInputByName("_.url");
|
||||
url.setValueAttribute("http://localhost:1234/");
|
||||
assertTrue(p.getDocumentElement().getTextContent().contains("instead of localhost"));
|
||||
assertThat(p.getDocumentElement().getTextContent(), containsString("instead of localhost"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user