Package de.hybris.platform.licence
Class HybrisLicenceValidatorTest
- java.lang.Object
-
- de.hybris.platform.licence.HybrisLicenceValidatorTest
-
public class HybrisLicenceValidatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTENANT_PREFIX
-
Constructor Summary
Constructors Constructor Description HybrisLicenceValidatorTest()
-
Method Summary
-
-
-
Field Detail
-
TENANT_PREFIX
public static final java.lang.String TENANT_PREFIX
- See Also:
- Constant Field Values
-
-
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
-
-