java/com.sap.sailing.domain.test/src/com/sap/sailing/domain/test/SmartFutureCacheTest.java
... ...
@@ -59,10 +59,12 @@ public class SmartFutureCacheTest {
59 59
@Override
60 60
public String computeCacheUpdate(String key, EmptyUpdateInterval updateInterval) {
61 61
synchronized (SmartFutureCacheTest.this) { // make sure we see the latest change to throwException
62
- if (throwException[0]) {
63
- throw new NullPointerException("Humba");
64
- } else {
65
- return "Humba";
62
+ synchronized (SmartFutureCacheTest.this) { // force sync of throwException
63
+ if (throwException[0]) {
64
+ throw new NullPointerException("Humba");
65
+ } else {
66
+ return "Humba";
67
+ }
66 68
}
67 69
}
68 70
}