This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/master by this push: new 0eb3274 Update unit-testing.md new e7fafce Merge pull request #124 from mohammad-anas/patch-1 0eb3274 is described below commit 0eb327442bc21b913af9483d22a0580cda5bc09e Author: mohammad-anas <mohammad.a...@abpdigital.in> AuthorDate: Tue Mar 26 18:03:22 2019 +0530 Update unit-testing.md While using throws Exception with test methods, extra () braces are there causing compilation error --- source/getting-started/unit-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/getting-started/unit-testing.md b/source/getting-started/unit-testing.md index b7f0221..4b07788 100644 --- a/source/getting-started/unit-testing.md +++ b/source/getting-started/unit-testing.md @@ -78,7 +78,7 @@ to set these values in the request scope. ```java @Test -public void testExecuteValidationPasses() throws Exception() { +public void testExecuteValidationPasses() throws Exception { request.setParameter("personBean.firstName", "Bruce"); request.setParameter("personBean.lastName", "Phillips"); request.setParameter("personBean.email", "bphill...@ku.edu"); @@ -127,7 +127,7 @@ for that field. ```java @Test -public void testExecuteValidationFailsMissingFirstName() throws Exception() { +public void testExecuteValidationFailsMissingFirstName() throws Exception { //request.setParameter("personBean.firstName", "Bruce"); request.setParameter("personBean.lastName", "Phillips"); request.setParameter("personBean.email", "bphill...@ku.edu");