Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 1,360 for assertEquals (2.75 sec)

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

            assertEquals(2, calls.get());
        }
    
        @Test
        @DisplayName("skipBytes(): advances file pointer for positive values")
        void skipBytes_advancesFP() throws Exception {
            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            assertEquals(0L, raf.getFilePointer());
            int skipped = raf.skipBytes(5);
            assertEquals(5, skipped);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java

                assertEquals("Hello World!", scanner.nextLine());
            }
        }
    
        @Test
        void testGetLocation() {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
            assertEquals(txtFile.getAbsolutePath(), source.getLocation());
        }
    
        @Test
        void testGetFile() {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java

        public void test_create_basic() throws Exception {
            TestComponent component = factory.create();
            assertNotNull(component);
            assertEquals(1, component.getId());
    
            TestComponent component2 = factory.create();
            assertNotNull(component2);
            assertEquals(2, component2.getId());
    
            // Different instances for prototype
            assertNotSame(component, component2);
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 13:07:01 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            int decoded = resp.decode(buf, headerStart);
            assertTrue(decoded > 0, "Decode should return positive length");
    
            assertEquals(NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, resp.getStatus());
            assertArrayEquals(blob, resp.getBlob(), "Security blob should match");
            assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/CIFSExceptionTest.java

            // When
            CIFSException exception = new CIFSException(message, cause);
    
            // Then
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
        }
    
        @Test
        @DisplayName("Should create CIFSException with cause only")
        void testCIFSExceptionWithCauseOnly() {
            // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbAuthenticationHolderTest.java

            smbAuthenticationHolder.add(fooAuth);
    
            assertEquals(hogeAuth, smbAuthenticationHolder.get("smb://hoge/"));
            assertEquals(fugaAuth, smbAuthenticationHolder.get("smb://fuga/"));
            assertEquals(fooAuth, smbAuthenticationHolder.get("smb://foo:1000/"));
            assertEquals(hogeAuth, smbAuthenticationHolder.get("smb://hoge/text.txt"));
            assertEquals(fugaAuth, smbAuthenticationHolder.get("smb://fuga/text.txt"));
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.decode_header(mockBuffer);
    
                assertEquals(DcerpcConstants.RPC_PT_RESPONSE, message.ptype);
                assertEquals(DcerpcConstants.RPC_C_PF_BROADCAST, message.flags);
                assertEquals(100, message.length);
                assertEquals(123, message.call_id);
            }
    
            @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        public void testAlgorithmNames() {
            assertEquals("None", compressionService.getAlgorithmName(CompressionService.COMPRESSION_NONE));
            assertEquals("LZ77", compressionService.getAlgorithmName(CompressionService.COMPRESSION_LZ77));
            assertEquals("LZ77+Huffman", compressionService.getAlgorithmName(CompressionService.COMPRESSION_LZ77_HUFFMAN));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfPresentTester.java

      public void testComputeIfPresent_supportedPresent() {
        assertEquals(
            "computeIfPresent(present, function) should return new value",
            v3(),
            getMap()
                .computeIfPresent(
                    k0(),
                    (k, v) -> {
                      assertEquals(k0(), k);
                      assertEquals(v0(), v);
                      return v3();
                    }));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. impl/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

            ExceptionSummary summary = handler.handleException(boom1);
    
            assertEquals("BOOM1: BOOM2: BOOM3: [CIRCULAR REFERENCE]", summary.getMessage());
            assertEquals("", summary.getReference());
            assertEquals(0, summary.getChildren().size());
            assertEquals(boom1, summary.getException());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top