mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
Merge remote-tracking branch 'security/security-rc'
This commit is contained in:
commit
dda70ee662
6 files changed
+93
-2
No files matched your search
@@ -28,6 +28,9 @@ import static org.junit.Assert.*;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.junit.Test;
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.hamcrest.CoreMatchers.not;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
|
||||
/**
|
||||
* @author sogabe
|
||||
@@ -105,4 +108,10 @@ public class FormValidationTest {
|
||||
private FormValidation aggregate(FormValidation... fvs) {
|
||||
return FormValidation.aggregate(Arrays.asList(fvs));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void formValidationException() {
|
||||
FormValidation fv = FormValidation.error(new Exception("<html"), "Message<html");
|
||||
assertThat(fv.renderHtml(), not(containsString("<html")));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user