Thanks.
I did get the same error with Struts 2.0.6 and Junit 4.0. After adding the
statement of ObjectFactory in setUpBeforeClass, it works.
Daniel H.
Ben Morgan wrote:
>
>
> k hall wrote:
>>
>> I really like Struts 2 but has anyone had any success in testing Struts
>> 2's action validatio
k hall wrote:
>
> I really like Struts 2 but has anyone had any success in testing Struts
> 2's action validation logic?
>
I also really like Struts2 and have been suffering the same irritation with
testing validation logic.
Having spent a while stepping through the code, it appears that the
I made a test that ran successfully when extending StrutsTestCase.
Attached the test to the Jira issue. As a result of extending
StrutsTestCase, I encountered a new bug in the spring-plugin, but
that's another story.
I still would like some dev to comment on whether there is an actual
requirement
Tried extending XWorkTestCase in a sample test, but sgot the same error. I'm
extending MockObjectTestCase anyway, so inheritance wouldn't be the best
solution for me.
Doesn't look like there's been any traction on this issue in Jira yet:
https://issues.apache.org/struts/browse/WW-1868
qmnonic
I experienced the same problem in a test case (though different
circumstances), and it was solved by extending XWorkTestCase instead of
TestCase as noted in the example -
http://struts.apache.org/2.x/docs/how-do-i-unit-test-my-actions-validation-logic.html
. This might help...
--
View this m
I'm seeing the same issue folks have described below. BTW, the validation
testing described in:
http://struts.apache.org/2.x/docs/how-do-i-unit-test-my-actions-validation-logic.html
did work, at least in Struts 2.0.1. I've entered the following jira issue
on the matter:
https://issues.apache.
I'm getting the same problem. The problem occurs in the
ValidatorFileParser.addValidatorConfigs method on :
objectFactory.buildValidator(className, new HashMap(), null);
The objectFactory originates from ObjectFactory.getObjectFactory()
where it is set by some Guice DI:
@Inject
public static
7 matches
Mail list logo