Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 648 for yields (0.56 sec)

  1. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

            assertEquals(expectedNt, actual.get(), String.format("NTSTATUS for %08x should be %08x", dosErr, expectedNt));
        }
    
        @Test
        @DisplayName("Unknown DOS error code yields empty Optional")
        void testUnknownCode() {
            Optional<Integer> noMatch = findNtStatus(0xdeadbeef);
            assertFalse(noMatch.isPresent(), "Mapping for unknown code should be absent");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            verify(spyAuth, times(1)).getPasswordAsCharArray();
        }
    
        @Test
        @DisplayName("clone: copies fields and cached subject; instances are independent")
        void testCloneCopiesFieldsAndIndependence() throws Exception {
            // Use configuration-based constructor to also exercise copying of configuration/service fields
            JAASAuthenticator orig = new JAASAuthenticator(new HashMap<String, String>(), "DOM", "user", "pass");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

    class StaticJAASConfigurationTest {
    
        // Constants used in assertions
        private static final String EXPECTED_LOGIN_MODULE = "com.sun.security.auth.module.Krb5LoginModule";
    
        @Test
        @DisplayName("Default constructor yields REQUIRED Krb5 entry with empty options")
        void defaultConstructor_producesRequiredKrb5EntryWithEmptyOptions() {
            // Arrange
            StaticJAASConfiguration cfg = new StaticJAASConfiguration();
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            // Act
            itr.remove();
    
            // Assert
            verify(delegate, times(1)).remove();
        }
    
        @Test
        @DisplayName("Edge: empty delegate yields no elements")
        void emptyDelegate_hasNoNext() {
            // Arrange - no parent setup needed since no URLs are created
            when(delegate.hasNext()).thenReturn(false);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SecurityBlobTest.java

            // Arrange
            SecurityBlob blob = new SecurityBlob(new byte[] { 1, 2, 3 });
    
            // Force internal field to null via reflection to exercise defensive branch
            Field field = SecurityBlob.class.getDeclaredField("b");
            field.setAccessible(true);
            field.set(blob, null);
    
            // Act & Assert
            assertEquals(0, blob.length(), "length() should return 0 when internal array is null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/Kerb5ContextTest.java

            ASN1ObjectIdentifier[] mechs = ctx.getSupportedMechs();
            assertNotNull(mechs);
            assertArrayEquals(Kerb5Context.SUPPORTED_MECHS, mechs);
        }
    
        @Test
        @DisplayName("getFlags with all false yields 0")
        void getFlags_allFalse() {
            when(gssContext.getCredDelegState()).thenReturn(false);
            when(gssContext.getMutualAuthState()).thenReturn(false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            Class<?> cls = req.getClass().getSuperclass(); // ServerMessageBlock2Request
            Field f = cls.getSuperclass().getDeclaredField("next"); // ServerMessageBlock2.next
            f.setAccessible(true);
            return f.get(req);
        }
    
        /**
         * Reflectively set the private 'results' field on Smb2QueryDirectoryResponse.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            verify(nsc, times(1)).getAllByName("server", true);
            assertTrue(l3.hasNextAddress());
            assertSame(a3, l3.getNextAddress());
            assertFalse(l3.hasNextAddress());
    
            // UnknownHostException yields CIFSException
            when(nsc.getAllByName("badhost", true)).thenThrow(new UnknownHostException("nope"));
            SmbResourceLocatorImpl bad = locator("smb://badhost/");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            List<String> readings = Arrays.asList("reading1", "reading2");
            List<String> fields = Arrays.asList("field1", "field2", "field3");
            List<String> tags = Arrays.asList("tag1", "tag2");
            List<String> roles = Arrays.asList("role1", "role2", "role3");
    
            elevateWord = new ElevateWord(word, boost, readings, fields, tags, roles);
            SuggestItem suggestItem = elevateWord.toSuggestItem();
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  10. README.md

    // JSON utilities with proper escaping
    String escaped = JsonUtil.escape("Hello \"World\" with special chars");
    String unescaped = JsonUtil.unescape(escaped);
    
    // Text tokenization
    Tokenizer tokenizer = new Tokenizer("field1,field2,field3", ",");
    while (tokenizer.hasMoreTokens()) {
        String token = tokenizer.nextToken();
        // Process each token
    }
    
    // Decimal formatting
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top