wt., 12 lis 2024 o 08:28 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
