Class DefaultPunchOutSessionServiceTest
java.lang.Object
de.hybris.platform.b2b.punchout.services.impl.DefaultPunchOutSessionServiceTest
Test cases for
DefaultPunchOutSessionService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidTests that the session will be expired when the timeout kicks in, having in mind the session has lived for longer than the timeout period.voidTests that when the session is created and the timeout is later than the current time the session is still not expired.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
DefaultPunchOutSessionServiceTest
public DefaultPunchOutSessionServiceTest()
-
-
Method Details
-
testInitAndActivatePunchOutSession
public void testInitAndActivatePunchOutSession() -
testActivate
public void testActivate() -
testGeneratePunchoutSessionId
public void testGeneratePunchoutSessionId() -
testSaveCurrentPunchoutSession
public void testSaveCurrentPunchoutSession() -
testSetCurrentCartFromPunchOutSetup
public void testSetCurrentCartFromPunchOutSetup() -
testSetCurrentCartFromPunchOutSetupWithResultIsNull
public void testSetCurrentCartFromPunchOutSetupWithResultIsNull() -
testSetCurrentCartFromPunchOutSetupResultIsEmpty
public void testSetCurrentCartFromPunchOutSetupResultIsEmpty() -
testSetCurrentCartFromPunchOutSetupHandleNPE
public void testSetCurrentCartFromPunchOutSetupHandleNPE() -
testLoadExpiredSession
public void testLoadExpiredSession()Tests that the session will be expired when the timeout kicks in, having in mind the session has lived for longer than the timeout period.- Throws:
Exception- on error
-
testLoadNonExpiredSession
public void testLoadNonExpiredSession()Tests that when the session is created and the timeout is later than the current time the session is still not expired. -
testLoadSessionNoStoredSession
public void testLoadSessionNoStoredSession() -
testLoadSessionNoStoredSession2
public void testLoadSessionNoStoredSession2() -
testLoadSessionMultiStoredSessions
public void testLoadSessionMultiStoredSessions() -
testLoadSessionNotFound
public void testLoadSessionNotFound() -
testRetrieveUserIdWithNoOrgs
public void testRetrieveUserIdWithNoOrgs() -
testRetrieveUserIdWithInvalidOrgs
public void testRetrieveUserIdWithInvalidOrgs() -
testRetrieveUserIdWithOrgs
public void testRetrieveUserIdWithOrgs()
-