org.mockito.exceptions.verification.TooLittleActualInvocations: stateRepository.getFeatureState(TEST); Wanted 5 times:

Google Groups | Richard Steele | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Erratic test failure in CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife

    Google Groups | 2 years ago | Richard Steele
    org.mockito.exceptions.verification.TooLittleActualInvocations: stateRepository.getFeatureState(TEST); Wanted 5 times:

    Root Cause Analysis

    1. org.mockito.exceptions.verification.TooLittleActualInvocations

      stateRepository.getFeatureState(TEST); Wanted 5 times:

      at org.togglz.core.repository.cache.CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife()
    2. org.togglz.core
      CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife
      1. org.togglz.core.repository.cache.CachingStateRepositoryTest.testCacheExpiryBecauseOfTimeToLife(CachingStateRepositoryTest.java:105)
      1 frame