Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toString_established_throws (0.48 sec)

  1. src/test/java/jcifs/smb/Kerb5ContextTest.java

            String s = ctx.toString();
            assertEquals("KERB5[src=client,targ=service,mech=1.2.3]", s);
        }
    
        @Test
        @DisplayName("toString falls back when GSS access fails")
        void toString_established_throws() throws Exception {
            when(gssContext.isEstablished()).thenReturn(true);
            when(gssContext.getSrcName()).thenThrow(new GSSException(GSSException.FAILURE));
            String s = ctx.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top