17h
comment Null pointer exception depending on statement chaining in Mockito?
If you find it useful to do both, then definitely continue to do so. I usually find when I get data-access code wrong, it's because I misunderstood how the database worked, and so I don't find it out until I use a real one.
18h
comment Null pointer exception depending on statement chaining in Mockito?
IMHO, you should test this kind of code against a real database with an integration test, instead of mocking
18h
answered Cargo:run If you specify a containerId, you also need to specify a containerUrl
1d
comment Make working jar file
I recommend Spring Boot if you want to create a runnable jar from a Spring project
1d
comment Cargo:run If you specify a containerId, you also need to specify a containerUrl
I think the Cannot find 'containerURL' problem is just a case-sensitivity issue, try containerUrl
May
1
comment Autowired beans into java List, and mock it
In addition to the other comments which are spot-on, you generally shouldn't mock a list with Mockito. Just create a real list with Arrays.asList or similar.
Apr
29
comment How to avoid StaleElementReferenceException
what line is failing?
Apr
28
comment Java parameter to load class from non internal path
I suspect you are having trouble with a non-Oracle JVM (IBM J9?). Try setting the DocumentBuilderFactory (see Q14 jaxp.java.net/1.4/JAXP-FAQ.html)
Apr
27
answered maven build projects in sequence automatically in my case
Apr
20
awarded Caucus
Apr
17
comment Can't set the email sender in JavaMail - Spring
possible duplicate of How to change from-address when using gmail smtp server
Apr
17
comment The value for annotation attribute AssertTrue.message must be a constant expression
possible duplicate of Why should the value for an annotation attribute be a constant expression?
Apr
17
revised Eclipse doesn't suggest imports for external libraries and wont let me enable it to?
edited tags
Apr
16
awarded Nice Answer
Apr
14
answered Is it possible to attain 100% pass rate using Selenium Webdriver?
Apr
13
answered Powermock SerializationIssue
Apr
10
comment How do I run my selenium tests with Jenkins/Maven?
You are running Maven 2 which is old and deprecated. Please upgrade to Maven 3.
Apr
7
answered Jersey custom provider throws IOException for UTF-8 encoding
Apr
7
comment Compiled classes missing in WAR file
good thorough answer. I would only add the the servlet dependency should be scope provided
Apr
5
answered Sending Email in Android using JavaMail API without using the default/built-in app
1 2 3 4 5