Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for testBroken (0.53 seconds)

  1. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

        assertFalse(empty.hasNext());
        assertThrows(NoSuchElementException.class, empty::next);
        assertThrows(UnsupportedOperationException.class, empty::remove);
      }
    
      public void testBroken() {
        Iterator<Object> broken = new BrokenAbstractSequentialIterator();
        assertTrue(broken.hasNext());
        // We can't retrieve even the known first element:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/it/ITBase.java

        public static final String DEFAULT_TEST_TOKEN_ID = "testToken";
        private static final String TEST_TOKEN = "test.token";
    
        public static String getTestToken() {
            return System.getProperty(TEST_TOKEN, DEFAULT_TEST_TOKEN);
        }
    
        public static String settingTestToken() {
            final String testToken = System.getProperty(TEST_TOKEN);
            if (testToken != null) {
                logger.info("Token: {}", testToken);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. tests/test_security_oauth2_authorization_code_bearer.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_token_with_whitespaces():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  4. tests/test_security_oauth2_authorization_code_bearer_description.py

        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_openapi_schema():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  5. tests/test_security_oauth2_password_bearer_optional.py

    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Notexistent testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  6. tests/test_security_oauth2_password_bearer_optional_description.py

    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Notexistent testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  7. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

        )
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Admin Access"}
    
    
    def test_read_token():
        response = client.get("/items/", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_create_token():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            int securityBufferOffset = SMBUtil.readInt2(buffer, bodyOffset + 12);
            byte[] actualToken = new byte[TEST_TOKEN.length];
            System.arraycopy(buffer, headerStart + securityBufferOffset, actualToken, 0, TEST_TOKEN.length);
            assertArrayEquals(TEST_TOKEN, actualToken);
        }
    
        @Test
        @DisplayName("Should write correct bytes to wire format without session binding")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
Back to Top