Class HybrisLicenceValidatorTest

java.lang.Object
de.hybris.platform.licence.HybrisLicenceValidatorTest

public class HybrisLicenceValidatorTest extends Object
  • Field Details

  • Constructor Details

    • HybrisLicenceValidatorTest

      public HybrisLicenceValidatorTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • licenceShouldNotBeValidWhenItIsNull

      public void licenceShouldNotBeValidWhenItIsNull() throws Exception
      Throws:
      Exception
    • licenceShouldNotBeValidWhenSignatureIsWrong

      public void licenceShouldNotBeValidWhenSignatureIsWrong() throws Exception
      Throws:
      Exception
    • licenceShouldNotBeValidWhenItIsExpired

      public void licenceShouldNotBeValidWhenItIsExpired() throws Exception
      Throws:
      Exception
    • licenseShouldNotBeExpiredIfCurrentDateIsBeforeExpirationDate

      public void licenseShouldNotBeExpiredIfCurrentDateIsBeforeExpirationDate() throws Exception
      Throws:
      Exception
    • licenseShouldNotBeExpiredIfCurrentDateIsThirtyDaysAfterStartingPoint

      public void licenseShouldNotBeExpiredIfCurrentDateIsThirtyDaysAfterStartingPoint() throws Exception
      Throws:
      Exception
    • licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint

      public void licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint() throws Exception
      Throws:
      Exception
    • shouldReturnMinusOneDayLeftIfStartingPointDateIs31DaysBackFromNow

      public void shouldReturnMinusOneDayLeftIfStartingPointDateIs31DaysBackFromNow() throws Exception
      Throws:
      Exception
    • shouldReturnZeroDaysLeftIfStartingPointDateIs30DaysBackFromNow

      public void shouldReturnZeroDaysLeftIfStartingPointDateIs30DaysBackFromNow() throws Exception
      Throws:
      Exception
    • shouldReturnOneDayLeftIfStartingPointDateIs29DaysBackFromNow

      public void shouldReturnOneDayLeftIfStartingPointDateIs29DaysBackFromNow() throws Exception
      Throws:
      Exception
    • shouldReturn30DaysLeftIfStartingPointDateIsNow

      public void shouldReturn30DaysLeftIfStartingPointDateIsNow() throws Exception
      Throws:
      Exception
    • shouldReturnNullAsDaysLeftIfPassedLicenceIsNotDemoOrDevelop

      public void shouldReturnNullAsDaysLeftIfPassedLicenceIsNotDemoOrDevelop() throws Exception
      Throws:
      Exception