public void beginEmptyStrings(WebRequest theRequest) {
   theRequest.setURL("localhost:8080", null, null, TEST_URI, null);
   theRequest.addParameter("number", "");
   theRequest.addParameter("date", "");
   theRequest.addParameter("text", "");
   theRequest.addParameter("hidden", "");
   theRequest.addParameter("secret", "");
 }
Пример #2
0
 /** Create header for testParameterGreaterThan method test. */
 public void beginParameterGreaterThan(WebRequest testRequest) {
   testRequest.addParameter(PARAMETER_KEY, GREATER_VAL);
 }
Пример #3
0
  public void beginUISelectMany(WebRequest theRequest) {

    // primitives
    theRequest.addParameter("bool", "false");
    theRequest.addParameter("bool", "true");
    theRequest.addParameter("bool", "false");
    theRequest.addParameter("bool2", "false");

    theRequest.addParameter("byte", Byte.toString(Byte.MIN_VALUE));
    theRequest.addParameter("byte", Byte.toString(Byte.MAX_VALUE));
    theRequest.addParameter("byte", "1");
    theRequest.addParameter("char", "Q");
    theRequest.addParameter("char", "A");
    theRequest.addParameter("char", "z");

    theRequest.addParameter("short", Short.toString(Short.MIN_VALUE));
    theRequest.addParameter("short", Short.toString(Short.MAX_VALUE));
    theRequest.addParameter("short", Short.toString((short) (Byte.MAX_VALUE + 1)));

    theRequest.addParameter("int", Integer.toString(Integer.MIN_VALUE));
    theRequest.addParameter("int", Integer.toString(Integer.MAX_VALUE));
    theRequest.addParameter("int", Integer.toString(Short.MAX_VALUE + 1));

    theRequest.addParameter("float", Float.toString(Float.MIN_VALUE));
    theRequest.addParameter("float", Float.toString(Float.MAX_VALUE));
    theRequest.addParameter("float", Float.toString(Integer.MAX_VALUE + 1));

    theRequest.addParameter("long", Long.toString(Long.MIN_VALUE));
    theRequest.addParameter("long", Long.toString(Long.MAX_VALUE));
    theRequest.addParameter("long", Long.toString(Integer.MAX_VALUE + 1));

    theRequest.addParameter("double", Double.toString(Double.MIN_VALUE));
    theRequest.addParameter("double", Double.toString(Double.MAX_VALUE));
    theRequest.addParameter("double", Double.toString(Long.MAX_VALUE + 1));

    // Objects
    theRequest.addParameter("str", "value1");
    theRequest.addParameter("str", "value2");
    theRequest.addParameter("str", "value3");

    theRequest.addParameter("str2", "");

    theRequest.addParameter("date", "Jan 1, 1967");
    theRequest.addParameter("date", "May 26, 2003");
    theRequest.addParameter("date", "Aug 19, 1946");

    theRequest.addParameter("num", "12%");
    theRequest.addParameter("num", "3.14");
    theRequest.addParameter("num", "49.99");

    theRequest.addParameter("stringList", "value1");
    theRequest.addParameter("stringList", "value2");
    theRequest.addParameter("stringList", "value3");
  }