I was able to build and run all of the tests cleanly last week until late Friday and continuing today, where I'm getting a single test failure in CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife:
-------------------------------------------------------------------------------
Test set: org.togglz.core.repository.cache.CachingStateRepositoryTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.675 sec <<< FAILURE!
testCacheExpiryBecauseOfTimeToLife(org.togglz.core.repository.cache.CachingStateRepositoryTest) Time elapsed: 0.051 sec <<< FAILURE!
org.mockito.exceptions.verification.TooLittleActualInvocations:
stateRepository.getFeatureState(TEST);
Wanted 5 times:
-> at org.togglz.core.repository.cache.CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife(CachingStateRepositoryTest.java:105)
But was 3 times:
-> at org.togglz.core.repository.cache.CachingStateRepository.getFeatureState(CachingStateRepository.java:78)
at org.togglz.core.repository.cache.CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife(CachingStateRepositoryTest.java:105)
.
.
.
the test passes.
I'm guessing that maybe the granularity of the clock on my system is not as good as yours? (I'm running latest update to Java 7 on a Windows 7 64-bit machine). I can't explain though why this was passing previously.