Class PeriodicVoterTest


  • @UnitTest
    public class PeriodicVoterTest
    extends java.lang.Object
    • Constructor Detail

      • PeriodicVoterTest

        public PeriodicVoterTest()
    • Method Detail

      • setupMocks

        public void setupMocks()
      • shouldReturnDefaultVoteWhenNoConfigurations

        public void shouldReturnDefaultVoteWhenNoConfigurations()
      • shouldReturnDefaultVoteWhenNoProperUserTypeConfigurationsRegistered

        public void shouldReturnDefaultVoteWhenNoProperUserTypeConfigurationsRegistered()
      • shouldReturnDefaultVoteWhenNoProperUserTypeConfigurationsAnonymous

        public void shouldReturnDefaultVoteWhenNoProperUserTypeConfigurationsAnonymous()
      • shouldReturnDefaultVoteWhenOnlyOneNotExistingAction

        public void shouldReturnDefaultVoteWhenOnlyOneNotExistingAction()
      • shouldReturnOnlyExistingActions

        public void shouldReturnOnlyExistingActions()
      • shouldReturnAllBasicActions

        public void shouldReturnAllBasicActions()
      • shouldReturnOnlyUniqueActions

        public void shouldReturnOnlyUniqueActions()
      • shouldReturnActionForRegisteredUser

        public void shouldReturnActionForRegisteredUser()
      • shouldReturnActionForAnonymousUser

        public void shouldReturnActionForAnonymousUser()
      • shouldReturnActionsWithPostiveMinimalNumberOfRequests

        public void shouldReturnActionsWithPostiveMinimalNumberOfRequests()
      • shouldReturnDefaultVoteWithNegativeMinimalNumberOfRequests

        public void shouldReturnDefaultVoteWithNegativeMinimalNumberOfRequests()
      • shouldReturnActionsAfterPostitiveIntervalTime

        public void shouldReturnActionsAfterPostitiveIntervalTime()
      • shouldReturnDefaultVoteAfterNegativeIntervalTime

        public void shouldReturnDefaultVoteAfterNegativeIntervalTime()
      • shouldReturnDefaultVoteWhenNegativeMinimalNumberOfRequestsAndNegativeIntervalTime

        public void shouldReturnDefaultVoteWhenNegativeMinimalNumberOfRequestsAndNegativeIntervalTime()
      • shouldReturnActionsForEveryRequest

        public void shouldReturnActionsForEveryRequest()