After installing Java 9 on my Mac, Netbeans 8.2 options to start new project, or open settings, don’t work.
Continue reading “NetBeans 8 new project not working with JDK 9”
Just another Wordpress blogger blogging on Wordpress.
After installing Java 9 on my Mac, Netbeans 8.2 options to start new project, or open settings, don’t work.
Continue reading “NetBeans 8 new project not working with JDK 9”
While working with iReport, I wanted to test my report with a default Collection value for my Hibernate Query.
The HQL is something like this,
SELECT person.fullName as personName
FROM Person person
WHERE person.id in ($P{people})
Continue reading “Instantiating an iReport Collection parameter from an Array in one line”
When it comes to JNDI Datasources, you really need a fast way to test outside of the container without changing all of your configuration just because your testing.
One of the problems with using a JNDI Datasource is Unit Testing outside of the container. Testing in the container is a pain and it’s slow if you are fixing bugs or just testing to make sure what you have works after a few changes. It’s OK for system tests.
Another option might be to have one set of configuration for the container and one for Unit Testing. An example might be to have two files controlled by your classpath or even worse, one file which you comment/uncomment to get the datasource you need. Then hope you package up the right configuration for the release.
What you really need a fast way to test outside of the container without changing all of your configuration just because your testing. Thankfully, spring provides a nice way to test your application outside of the container. Just bind your resource to a SimpleNamingContext mock and voila!
Continue reading “JUnit Testing JNDI Datasources: Thinking outside of the Container”
You must be logged in to post a comment.