Skip to content

Commit

Permalink
Fix spring unit tests.
Browse files Browse the repository at this point in the history
Motivation
----------
afterPropertiesSet() needs to be called on the factory to actually
create the client so that it does not result in a NPE.

Change-Id: I483c045451f90ff3ed01d00db7e912e7d2484b64
Reviewed-on: http://review.couchbase.org/45554
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Reviewed-by: Simon Baslé <simon@couchbase.com>
  • Loading branch information
daschl authored and Michael Nitschinger committed Jan 19, 2015
1 parent 0283051 commit 4bb435b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public void testGetObject() throws Exception {
final Transcoder<Object> transcoder = new SerializingTranscoder();
factory.setTranscoder(transcoder);

factory.afterPropertiesSet();

final MemcachedClient memcachedClient =
(MemcachedClient) factory.getObject();

Expand Down

0 comments on commit 4bb435b

Please sign in to comment.