Class SessionAccessServiceImplTest

java.lang.Object
de.hybris.platform.sap.productconfig.services.impl.SessionAccessServiceImplTest

@UnitTest public class SessionAccessServiceImplTest extends Object
  • Constructor Details

    • SessionAccessServiceImplTest

      public SessionAccessServiceImplTest()
  • Method Details

    • setup

      public void setup()
    • testCartEntryConfigId

      public void testCartEntryConfigId()
    • testUIStatus

      public void testUIStatus()
    • testUIStatusProduct

      public void testUIStatusProduct()
    • testConfigIdForCartEntry

      public void testConfigIdForCartEntry()
    • testConfigIdForCartEntryEnsureLastAssignmentWins

      public void testConfigIdForCartEntryEnsureLastAssignmentWins()
    • testConfigIdForCartEntryEnsureFirstAssignmentGone

      public void testConfigIdForCartEntryEnsureFirstAssignmentGone()
    • testRemoveConfigIdForCartEntry

      public void testRemoveConfigIdForCartEntry()
    • testRemoveSessionArtifactsForCartEntryDraftConfigRemoved

      public void testRemoveSessionArtifactsForCartEntryDraftConfigRemoved()
    • testRemoveSessionArtifactsForCartEntryConfigMap

      public void testRemoveSessionArtifactsForCartEntryConfigMap()
    • testRemoveSessionArtifactsForCartEntryConfigDraftMap

      public void testRemoveSessionArtifactsForCartEntryConfigDraftMap()
    • testRetrieveSessionAttributeContainerThreadsWait

      public void testRetrieveSessionAttributeContainerThreadsWait() throws InterruptedException
      Throws:
      InterruptedException
    • testRetrieveSessionAttributeContainerThreadsDontWait

      public void testRetrieveSessionAttributeContainerThreadsDontWait() throws InterruptedException
      Throws:
      InterruptedException
    • sleep

      protected void sleep(long waitTimeInMiliSeconds) throws InterruptedException
      Throws:
      InterruptedException
    • waitForBothThreadsFinished

      protected void waitForBothThreadsFinished(de.hybris.platform.sap.productconfig.services.impl.SessionAccessServiceImplTest.SessionAccessThread firstThread, de.hybris.platform.sap.productconfig.services.impl.SessionAccessServiceImplTest.SessionAccessThread secondThread) throws InterruptedException
      Throws:
      InterruptedException
    • delaySynchronizedCalls

      protected void delaySynchronizedCalls()
    • delayNextCall

      protected void delayNextCall(boolean delay)
    • testPurge

      public void testPurge()
    • testLinkWithProductCode

      public void testLinkWithProductCode()
    • testLinkWithProductCodeIsCleanedUp

      public void testLinkWithProductCodeIsCleanedUp()
    • testGetProductForConfigId

      public void testGetProductForConfigId()
    • testGetProductForConfigIdNoProduct

      public void testGetProductForConfigIdNoProduct()
    • testGetProductForConfigIdNull

      public void testGetProductForConfigIdNull()
    • testFindInMapNullEntriesWork

      public void testFindInMapNullEntriesWork()
    • testGetCartEntryForDraftConfigIdReturnsNull

      public void testGetCartEntryForDraftConfigIdReturnsNull()
    • testGetCartEntryForDraftConfigIdThrowsExpection

      public void testGetCartEntryForDraftConfigIdThrowsExpection()
    • testGetCartEntryForDraftConfigId

      public void testGetCartEntryForDraftConfigId()