use of org.javarosa.core.model.SubmissionProfile in project javarosa by opendatakit.
the class XFormParserTest method parseFormWithSubmissionElement.
@Test
public void parseFormWithSubmissionElement() throws IOException {
// Given & When
ParseResult parseResult = parse(r("submission-element.xml"));
// Then
assertEquals(parseResult.formDef.getTitle(), "Single Submission Element");
assertNoParseErrors(parseResult);
SubmissionProfile submissionProfile = parseResult.formDef.getSubmissionProfile();
assertEquals("http://some.destination.com", submissionProfile.getAction());
assertEquals("form-data-post", submissionProfile.getMethod());
assertNull(submissionProfile.getMediaType());
assertEquals("/data/text", submissionProfile.getRef().getReference().toString());
}
Aggregations