コード例 #1
0
 public void testValidateMinValue() throws Exception {
   checkValid();
   input.validateValue(facesContext, new Double(-23.45));
   checkInvalid();
 }
コード例 #2
0
 public void testValidateNullValue() throws Exception {
   checkValid();
   input.validateValue(facesContext, null);
   checkValid();
 }
コード例 #3
0
 public void testValidateIllegalValue() throws Exception {
   checkValid();
   input.validateValue(facesContext, "string");
   checkInvalid();
 }
コード例 #4
0
 public void testValidateValueFacesContextObject() {
   checkValid();
   input.validateValue(facesContext, new Double(23.45));
   checkValid();
 }
コード例 #5
0
 public void testValidateMaxNullMaxValue() throws Exception {
   input.setMaxValue(null);
   checkValid();
   input.validateValue(facesContext, new Double(223.45));
   checkInvalid();
 }