SubmitStrategy extends AbstractTagStrategy { public void execute(final VoiceXmlInterpreterContext context, final VoiceXmlInterpreter interpreter, final FormInterpretationAlgorithm fia, final FormItem item, final VoiceXmlNode node) throws JVoiceXMLEvent { if (LOGGER.isDebugEnabled()) { LOGGER.debug("submitting to uri '" + next.toString() + "'..."); } final DocumentDescriptor descriptor = new DocumentDescriptor(next, method, true); appendVariables(context, descriptor); throw new SubmitEvent(descriptor); } SubmitStrategy(); Collection<String> getEvalAttributes(); @Override void validateAttributes(final DataModel model); void execute(final VoiceXmlInterpreterContext context,
            final VoiceXmlInterpreter interpreter,
            final FormInterpretationAlgorithm fia, final FormItem item,
            final VoiceXmlNode node);  }
@Test public void testExecute() throws Exception, JVoiceXMLEvent { final Block block = createBlock(); final Submit submit = block.appendChild(Submit.class); final URI next = new URI("http: submit.setNextUri(next); final SubmitStrategy strategy = new SubmitStrategy(); SubmitEvent event = null; try { executeTagStrategy(submit, strategy); } catch (SubmitEvent e) { event = e; } Assert.assertNotNull(event); final DocumentDescriptor descriptor = event.getDocumentDescriptor(); Assert.assertEquals(next, descriptor.getUri()); Assert.assertEquals(RequestMethod.GET, descriptor.getMethod()); }