Monday, September 29, 2008
Struts 1: Action to DispatchAction
In order to convert Action to DispatchAction, change the action name from 'execute' to 'unspecified' and add a 'parameter="something"' attribute to action node in struts.xml.
Tuesday, September 23, 2008
Mockito matchers
Configuration: Mockito 1.5, TestNG 5.8 jdk15, maven-surefire 2.4.2
Don't use mockito matchers (anyInt, anyString, ...) to 'mock' arguments for non-mocked/stubbed method calls. Using matchers this way can cause unpredictable test failures, as the state of matchers is being tracked statically (simpliest explanation I could come up with without digging into source). You might get an InvalidUseOfMatchersException in a test case different to the one matchers were used in.
Don't use mockito matchers (anyInt, anyString, ...) to 'mock' arguments for non-mocked/stubbed method calls. Using matchers this way can cause unpredictable test failures, as the state of matchers is being tracked statically (simpliest explanation I could come up with without digging into source). You might get an InvalidUseOfMatchersException in a test case different to the one matchers were used in.
Monday, September 22, 2008
LDAP and user rights
If, for some reason, you don't see what you definitely should (such as the 'memberOf' attributes) - check the rights of the account you're connected to LDAP with. Lost half of the day trying to figure out why nothing works after LDAP has migrated to another server.
Sunday, September 21, 2008
Cygwin bash won't start? Uninstall Agnitum Outpost
I'm not much of a writer, so... uhm... see the subj.
Subscribe to:
Posts (Atom)