ac = pkgConfig.getAllActionConfigs().get("exception1");
assertNotNull(ac);
List<ExceptionMappingConfig> exceptions = ac.getExceptionMappings();
assertNotNull(exceptions);
assertEquals(2, exceptions.size());
ExceptionMappingConfig exception = exceptions.get(0);
assertEquals("NPE1", exception.getExceptionClassName());
assertEquals("success", exception.getResult());
exception = exceptions.get(1);
assertEquals("NPE2", exception.getExceptionClassName());
assertEquals("success", exception.getResult());
params = exception.getParams();
assertNotNull(params);
assertEquals(1, params.size());
assertEquals("val1", params.get("param1"));
ac = pkgConfig.getAllActionConfigs().get("exceptions-action-level");
assertNotNull(ac);
exceptions = ac.getExceptionMappings();
assertNotNull(exceptions);
assertEquals(2, exceptions.size());
exception = exceptions.get(0);
assertEquals("NPE1", exception.getExceptionClassName());
assertEquals("success", exception.getResult());
exception = exceptions.get(1);
assertEquals("NPE2", exception.getExceptionClassName());
assertEquals("success", exception.getResult());
params = exception.getParams();
assertNotNull(params);
assertEquals(1, params.size());
assertEquals("val1", params.get("param1"));
/* org.apache.struts2.convention.actions.idx */