Package de.hybris.platform.licence
Class HybrisLicenceValidatorTest
java.lang.Object
de.hybris.platform.licence.HybrisLicenceValidatorTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidsetUp()voidvoidvoidvoidvoid
-
Field Details
-
TENANT_PREFIX
- See Also:
-
-
Constructor Details
-
HybrisLicenceValidatorTest
public HybrisLicenceValidatorTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
licenceShouldNotBeValidWhenItIsNull
- Throws:
Exception
-
licenceShouldNotBeValidWhenSignatureIsWrong
- Throws:
Exception
-
licenceShouldNotBeValidWhenItIsExpired
- Throws:
Exception
-
licenseShouldNotBeExpiredIfCurrentDateIsBeforeExpirationDate
- Throws:
Exception
-
licenseShouldNotBeExpiredIfCurrentDateIsThirtyDaysAfterStartingPoint
- Throws:
Exception
-
licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint
public void licenseShouldBeExpiredIfCurrentDateIsMoreThanThirtyDaysAfterStartingPoint() throws Exception- Throws:
Exception
-
shouldReturnMinusOneDayLeftIfStartingPointDateIs31DaysBackFromNow
- Throws:
Exception
-
shouldReturnZeroDaysLeftIfStartingPointDateIs30DaysBackFromNow
- Throws:
Exception
-
shouldReturnOneDayLeftIfStartingPointDateIs29DaysBackFromNow
- Throws:
Exception
-
shouldReturn30DaysLeftIfStartingPointDateIsNow
- Throws:
Exception
-
shouldReturnNullAsDaysLeftIfPassedLicenceIsNotDemoOrDevelop
- Throws:
Exception
-