MongoDB 2.4 has been Released.
Read more here: http://blog.mongodb.org/post/45754637343/mongodb-2-4-released
Thursday, 21 March 2013
Tuesday, 12 March 2013
Garbage collection desciption & gc.log
Here are two interesting pages about GC in JVM.4
- gc.log explained: http://blogs.oracle.com/poonam/entry/understanding_cms_gc_logs
- article about Garbage collection in JVM: http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
New STS version 3.2 released
New STS version 3.2 gives big increase in performance.
Read here: http://blog.springsource.org/2013/03/12/performance-improvements-in-sts-3-2-0/
Read here: http://blog.springsource.org/2013/03/12/performance-improvements-in-sts-3-2-0/
Sunday, 10 March 2013
Red Hat Assumes Leadership of OpenJDK 6 Community
Red Hat, Inc. (NYSE: RHT), the world’s leading provider of open source solutions, today announced it has transitioned into a leadership role for the OpenJDK 6 project, effectively extending support for the technology and its users.
Read more here: http://www.redhat.com/about/news/press-archive/2013/3/red-hat-reinforces-java-commitment
Read more here: http://www.redhat.com/about/news/press-archive/2013/3/red-hat-reinforces-java-commitment
Thursday, 21 February 2013
Thursday, 14 February 2013
StampedLock - new implementation for a lock
In java 8 we there will be a new implementation of Lock class. It will allow to have a lock for reading and writing. Possibly upgrading lock from read to write and some other features.
More to be read here: http://cr.openjdk.java.net/~chegar/8005697/ver.00/javadoc/StampedLock.html
More to be read here: http://cr.openjdk.java.net/~chegar/8005697/ver.00/javadoc/StampedLock.html
Monday, 4 February 2013
Testing Spring services that uses scoped objects
I have faced problem of testing Java Services that used Session Scoped objects (Same would by with f.e. Request Scope). My Scoped object was treated as a data, but contained simple operations managing its state. My service did some operation on this object changing it state. First I tried to mock this object and mocking its methods to verify correct behavior. But it was not easy due to complicated structure of mocking object. Then I decided to use a Spy object, but the only reason is to inject this object into my Service with annotation @InjectMocks. I did not change my object at all in the Spy, but used it just for dependency injection, as I did not want to have a setter method only for testing.
So the conclusion is: In Mockito Session/Request Scope Objects can be easily tested when defined as Spy objects injected by @InjectMocks
So the conclusion is: In Mockito Session/Request Scope Objects can be easily tested when defined as Spy objects injected by @InjectMocks
Subscribe to:
Posts (Atom)