Class HybrisLicenceValidatorTest


  • public class HybrisLicenceValidatorTest
    extends java.lang.Object
    • Constructor Detail

      • HybrisLicenceValidatorTest

        public HybrisLicenceValidatorTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenceShouldNotBeValidWhenItIsNull

        public void licenceShouldNotBeValidWhenItIsNull()
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenceShouldNotBeValidWhenSignatureIsWrong

        public void licenceShouldNotBeValidWhenSignatureIsWrong()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenceShouldNotBeValidWhenItIsExpired

        public void licenceShouldNotBeValidWhenItIsExpired()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenseShouldNotBeExpiredIfCurrentDateIsBeforeExpirationDate

        public void licenseShouldNotBeExpiredIfCurrentDateIsBeforeExpirationDate()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenseShouldNotBeExpiredIfCurrentDateIsThirtyDaysAfterStartingPoint

        public void licenseShouldNotBeExpiredIfCurrentDateIsThirtyDaysAfterStartingPoint()
                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint

        public void licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint()
                                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturnMinusOneDayLeftIfStartingPointDateIs31DaysBackFromNow

        public void shouldReturnMinusOneDayLeftIfStartingPointDateIs31DaysBackFromNow()
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturnZeroDaysLeftIfStartingPointDateIs30DaysBackFromNow

        public void shouldReturnZeroDaysLeftIfStartingPointDateIs30DaysBackFromNow()
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturnOneDayLeftIfStartingPointDateIs29DaysBackFromNow

        public void shouldReturnOneDayLeftIfStartingPointDateIs29DaysBackFromNow()
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturn30DaysLeftIfStartingPointDateIsNow

        public void shouldReturn30DaysLeftIfStartingPointDateIsNow()
                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldReturnNullAsDaysLeftIfPassedLicenceIsNotDemoOrDevelop

        public void shouldReturnNullAsDaysLeftIfPassedLicenceIsNotDemoOrDevelop()
                                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception