Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertThrows (0.08 sec)

  1. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

            req.addHeader("Authorization", token);
            assertThrows(InvalidAccessTokenException.class, () -> accessTokenHelper.getAccessTokenFromRequest(req));
        }
    
        public void test_getAccessTokenFromRequest_bad2() {
            final String token = "Bearer";
            MockletHttpServletRequest req = getMockRequest();
            req.addHeader("Authorization", token);
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. .teamcity/src/test/kotlin/VersionedSettingsBranchTest.kt

            val vsb = VersionedSettingsBranch(branchName)
            assertFalse(vsb.enableVcsTriggers)
            assertNull(vsb.nightlyPromotionTriggerHour)
        }
    
        @Test
        fun invalidBranches() {
            Assertions.assertThrows(Exception::class.java) {
                VersionedSettingsBranch("release28x")
            }
        }
    Registered: Wed Oct 30 11:36:09 UTC 2024
    - Last Modified: Tue Jan 31 07:59:58 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top