test_class.file: base/lang/src/test/java/leap/lang/jsoup/nodes/FormElementTest.java
test_class.identifier: FormElementTest
test_case.body: @Test public void actionWithNoBaseUri() {
          String html = "<form><input name='q'></form>";
          Document doc = Jsoup.parse(html);
          FormElement form = ((FormElement) doc.select("form").first());
  
  
          boolean threw = false;
          try {
              Connection con = form.submit();
          } catch (IllegalArgumentException e) {
              threw = true;
              assertEquals("Could not determine a form action URL for submit. Ensure you set a base URI when parsing.",
                      e.getMessage());
          }
          assertTrue(threw);
      }
test_case.class_method_signature: FormElementTest.actionWithNoBaseUri()
test_case.full_signature: @Test public void actionWithNoBaseUri()
test_case.identifier: actionWithNoBaseUri
test_case.invocations: parse first select submit assertEquals getMessage assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void actionWithNoBaseUri()
focal_class.declarator: elements = new Elements()
focal_class.modifier: private final
focal_class.original_string: private final Elements elements = new Elements();
focal_class.type: Elements
focal_class.var_name: elements
focal_class.file: base/lang/src/main/java/leap/lang/jsoup/nodes/FormElement.java
focal_class.identifier: FormElement
focal_class.class_method_signature: FormElement.FormElement(Tag tag, String baseUri, Attributes attributes)
focal_class.full_signature: public  FormElement(Tag tag, String baseUri, Attributes attributes)
focal_class.identifier: FormElement
focal_class.modifiers: public
focal_class.parameters: (Tag tag, String baseUri, Attributes attributes)
focal_class.signature:  FormElement(Tag tag, String baseUri, Attributes attributes)
focal_class.class_method_signature: FormElement.elements()
focal_class.full_signature: public Elements elements()
focal_class.identifier: elements
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Elements
focal_class.signature: Elements elements()
focal_class.class_method_signature: FormElement.addElement(Element element)
focal_class.full_signature: public FormElement addElement(Element element)
focal_class.identifier: addElement
focal_class.modifiers: public
focal_class.parameters: (Element element)
focal_class.return: FormElement
focal_class.signature: FormElement addElement(Element element)
focal_class.class_method_signature: FormElement.submit()
focal_class.full_signature: public Connection submit()
focal_class.identifier: submit
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Connection
focal_class.signature: Connection submit()
focal_class.class_method_signature: FormElement.formData()
focal_class.full_signature: public List<Connection.KeyVal> formData()
focal_class.identifier: formData
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Connection.KeyVal>
focal_class.signature: List<Connection.KeyVal> formData()
focal_class.class_method_signature: FormElement.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.superclass: extends Element
focal_method.body: public Connection submit() {
          String action = hasAttr("action") ? absUrl("action") : baseUri();
          Validate.notEmpty(action, "Could not determine a form action URL for submit. Ensure you set a base URI when parsing.");
          Connection.Method method = attr("method").toUpperCase().equals("POST") ?
                  Connection.Method.POST : Connection.Method.GET;
  
          Connection con = Jsoup.connect(action)
                  .data(formData())
                  .method(method);
  
          return con;
      }
focal_method.class_method_signature: FormElement.submit()
focal_method.full_signature: public Connection submit()
focal_method.identifier: submit
focal_method.invocations: hasAttr absUrl baseUri notEmpty equals toUpperCase attr method data connect formData
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Connection
focal_method.signature: Connection submit()