Skip to content

Commit 4bb435b

Browse files
daschlMichael Nitschinger
authored andcommitted
Fix spring unit tests.
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>
1 parent 0283051 commit 4bb435b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/net/spy/memcached/spring/MemcachedClientFactoryBeanTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ public void testGetObject() throws Exception {
5555
final Transcoder<Object> transcoder = new SerializingTranscoder();
5656
factory.setTranscoder(transcoder);
5757

58+
factory.afterPropertiesSet();
59+
5860
final MemcachedClient memcachedClient =
5961
(MemcachedClient) factory.getObject();
6062

0 commit comments

Comments
 (0)