Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 865 for upsert (0.04 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message")
        void byteArrayConstructor_emptyToken_throws() {
            // Arrange
            byte[] empty = new byte[0];
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0]));
            assertTrue(ex.getMessage().contains("Empty kerberos ApReq"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

        void defaultConstructor_hasNullMessageAndCause_andDefaultStatus() {
            // Arrange & Act
            SMBSignatureValidationException ex = new SMBSignatureValidationException();
    
            // Assert
            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. src/config/eclipse/formatter/java.xml

    <setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/>
    <setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/>
    <setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/>
    <setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/>
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Mar 23 21:27:06 UTC 2015
    - 30.5K bytes
    - Viewed (0)
  4. src/config/eclipse/formatter/javascript.xml

    <setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/>
    <setting id="org.eclipse.wst.jsdt.core.formatter.blank_lines_between_type_declarations" value="0"/>
    <setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
    <setting id="org.eclipse.wst.jsdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Mar 23 21:27:06 UTC 2015
    - 29.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

            opts.put("storeKey", "true");
            opts.put("principal", "user@EXAMPLE.COM");
            StaticJAASConfiguration cfg = new StaticJAASConfiguration(opts);
    
            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("any");
            AppConfigurationEntry e = entries[0];
            Map<String, ?> returned = e.getOptions();
    
            // Assert
            assertNotNull(returned, "Returned options should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SIDTest.java

                assertEquals("", domain.getAccountName());
    
                // User in regular domain
                SID user = new SID(buildSidT((byte) 1, ident, 10, 20, 99), jcifs.SID.SID_TYPE_USER, "MYDOM", "alice", false);
                assertEquals("MYDOM", user.getDomainName());
                assertEquals("alice", user.getAccountName());
                assertEquals("MYDOM\\alice", user.toDisplayString());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            when(mockConnection.getRequestProperty("Accept")).thenReturn("application/json");
    
            // Act
            ntlmConnection = new NtlmHttpURLConnection(mockConnection, mockCifsContext);
    
            // Assert
            assertEquals("GET", ntlmConnection.getRequestMethod());
            assertTrue(ntlmConnection.getAllowUserInteraction());
            assertTrue(ntlmConnection.getDoInput());
            assertTrue(ntlmConnection.getDoOutput());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            when(delegate.next()).thenReturn(e1, e2);
    
            NetServerFileEntryAdapterIterator itr = new NetServerFileEntryAdapterIterator(parent, delegate, null);
    
            // Act & Assert
            assertTrue(itr.hasNext(), "Should have first element ready");
            SmbResource r1 = itr.next();
            assertNotNull(r1, "First adapted resource must not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/security/get-current-user.md

    ## ユーザーの取得
    
    `get_current_user` は作成した(偽物の)ユーティリティ関数を使って、 `str` としてトークンを受け取り、先ほどのPydanticの `User` モデルを返却します:
    
    {* ../../docs_src/security/tutorial002.py hl[19:22,26:27] *}
    
    ## 現在のユーザーの注入
    
    ですので、 `get_current_user` に対して同様に *path operation* の中で `Depends` を利用できます。
    
    {* ../../docs_src/security/tutorial002.py hl[31] *}
    
    Pydanticモデルの `User` として、 `current_user` の型を宣言することに注意してください。
    
    その関数の中ですべての入力補完や型チェックを行う際に役に立ちます。
    
    /// tip | 豆知識
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial002_an_py310.py hl[25] *}
    
    ## Obtener el usuario
    
    `get_current_user` usará una función de utilidad (falsa) que creamos, que toma un token como un `str` y devuelve nuestro modelo de Pydantic `User`:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[19:22,26:27] *}
    
    ## Inyectar al usuario actual
    
    Entonces ahora podemos usar el mismo `Depends` con nuestro `get_current_user` en la *path operation*:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top