wt., 12 lis 2024 o 08:28 <michael.hinten...@silbergrau.com> napisał(a):
>
> Hallo Lukasz,
>
> for sure - the Test and Action is quite simple
>
>
>
> public class DispatcherTest extends StrutsJUnit4TestCase<Object> {
>
> @Test
>
> public void testParameters() throws UnsupportedEncodingException, 
> ServletException {
>
> request.addParameter("test", "me");
>
> executeAction("/test/dispatcher/execute.html");
>
> assertEquals("me", findValueAfterExecute("#parameters.test[0]"));
>
> assertEquals("bar", findValueAfterExecute("#parameters.foo"));
>
> }

Thanks a lot, used that in the final unit test, gives more information
about what's expected.


Cheers
Łukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to