Class GeneralSingleCookieServiceTest


  • public class GeneralSingleCookieServiceTest
    extends java.lang.Object
    Unit tests for GeneralSingleCookieService.
    • Constructor Detail

      • GeneralSingleCookieServiceTest

        public GeneralSingleCookieServiceTest()
    • Method Detail

      • initStatics

        public static void initStatics()
      • tearDownStatics

        public static void tearDownStatics()
      • setup

        public void setup()
      • fetchWorkerIdByStudy_returnsNullWhenNoCookie

        public void fetchWorkerIdByStudy_returnsNullWhenNoCookie()
      • fetchWorkerIdByStudy_returnsWorkerIdWhenSingleMatch

        public void fetchWorkerIdByStudy_returnsWorkerIdWhenSingleMatch()
      • fetchWorkerIdByStudy_returnsLatestWorkerIdWhenMultipleForSameStudy

        public void fetchWorkerIdByStudy_returnsLatestWorkerIdWhenMultipleForSameStudy()
      • fetchWorkerIdByStudy_ignoresMalformedEntries

        public void fetchWorkerIdByStudy_ignoresMalformedEntries()
      • addStudy_createsNewWhenNoExistingCookie

        public void addStudy_createsNewWhenNoExistingCookie()
      • addStudy_appendsWhenExistingCookie

        public void addStudy_appendsWhenExistingCookie()
      • set_String_buildsCookieWithExpectedAttributes

        public void set_String_buildsCookieWithExpectedAttributes()