Skip to content

Commit

Permalink
Fix potential NullPointer in ClientQueryCacheUpdateTest
Browse files Browse the repository at this point in the history
  • Loading branch information
sancar committed Mar 29, 2018
1 parent 7cb1708 commit a937938
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -37,6 +37,7 @@
import java.io.Serializable;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

@RunWith(HazelcastParallelClassRunner.class)
@Category({QuickTest.class, ParallelTest.class})
Expand Down Expand Up @@ -80,6 +81,7 @@ public void query_cache_gets_latest_updated_value_when_map_is_updated_via_set_me
@Override
public void run() {
IdWrapper idWrapper = queryCache.get(1);
assertNotNull(idWrapper);
assertEquals(9, idWrapper.value);
}
});
Expand Down

0 comments on commit a937938

Please sign in to comment.