Merge remote-tracking branch 'security/security-rc'

This commit is contained in:
Kohsuke Kawaguchi committed 2015-03-20 15:31:10 -07:00
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")));
}
}