Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for exactly (2.42 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

            // Verify that the wrap method was called exactly once
            verify(dcerpcSecurityProvider, times(1)).wrap(mockNdrBuffer);
        }
    
        @Test
        void testUnwrapMethodIsCalled() throws DcerpcException {
            // Test that the unwrap method can be called without throwing an exception
            dcerpcSecurityProvider.unwrap(mockNdrBuffer);
    
            // Verify that the unwrap method was called exactly once with the mockNdrBuffer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ResolverTypeTest.java

        }
    
        /**
         * Tests the total number of enum constants.
         */
        @Test
        void testNumberOfEnumConstants() {
            // Ensure there are exactly 4 resolver types
            assertEquals(4, ResolverType.values().length, "There should be exactly 4 resolver types.");
        }
    
        /**
         * Tests the names of the enum constants.
         */
        @Test
        void testEnumNames() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            buffer[26] = 0x00;
            buffer[27] = 0x00;
    
            // Decode
            int bytesConsumed = response.decode(buffer, 0, 28);
    
            // Verify
            assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes");
    
            byte[] resumeKey = response.getResumeKey();
            assertNotNull(resumeKey, "Resume key should not be null");
            assertEquals(24, resumeKey.length, "Resume key should be 24 bytes");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            // Arrange & Act
            SMBProtocolDecodingException ex = new SMBProtocolDecodingException(mockCause);
    
            // Assert cause propagation
            assertSame(mockCause, ex.getCause(), "Cause should be exactly the provided instance");
    
            // Access common Throwable methods to exercise paths without touching the cause
            assertNotNull(ex.toString(), "toString should be non-null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java

            final int availableAfter = in.available();
            assertEquals("Stream should not be consumed by validation", availableBefore, availableAfter);
        }
    
        /**
         * Test that validateInputStream is called exactly once per getText call.
         */
        public void test_validateInputStream_calledOncePerGetText() {
            final InputStream in = new ByteArrayInputStream("test".getBytes());
    
            extractor.resetTestState();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Execute decode
            int bytesDecoded = response.decode(buffer, bufferIndex, 24);
    
            // Verify results
            assertEquals(24, bytesDecoded, "Should decode exactly 24 bytes");
            assertEquals(testCapabilities, response.getCapabilities(), "Capabilities should match");
            assertArrayEquals(testGuid, response.getServerGuid(), "Server GUID should match");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java

            NdrHyper ndrHyper = new NdrHyper(testValue);
    
            // Call the encode method with the mocked NdrBuffer
            ndrHyper.encode(mockNdrBuffer);
    
            // Verify that enc_ndr_hyper was called exactly once with the correct value
            verify(mockNdrBuffer, times(1)).enc_ndr_hyper(testValue);
            verifyNoMoreInteractions(mockNdrBuffer);
        }
    
        @Test
        void testDecode() throws NdrException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            int testValue = 98765;
            NdrLong ndrLong = new NdrLong(testValue);
    
            // Call the encode method
            ndrLong.encode(mockNdrBuffer);
    
            // Verify that enc_ndr_long was called exactly once with the correct value
            verify(mockNdrBuffer, times(1)).enc_ndr_long(testValue);
            // Verify that no other interactions occurred with the mock buffer
            verifyNoMoreInteractions(mockNdrBuffer);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java

            final List<String> indices = (List<String>) method.invoke(suggester, aliasName);
    
            assertNotNull("Indices list should not be null", indices);
            assertEquals("Should find exactly one index", 1, indices.size());
            assertEquals("Should return correct index name", indexName, indices.get(0));
    
            // Cleanup
            client.admin().indices().prepareDelete(indexName).execute().actionGet();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored");
    
            // Assert
            assertNotNull(entries, "Entries array should not be null");
            assertEquals(1, entries.length, "Exactly one entry is expected");
            AppConfigurationEntry e = entries[0];
            assertNotNull(e, "Entry should not be null");
            assertEquals(EXPECTED_LOGIN_MODULE, e.getLoginModuleName(), "Login module should be Kerberos");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top