Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 200 for 1239 (0.01 sec)

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

        }
    
        @Test
        @DisplayName("Should get challenge from server")
        void testGetChallenge() throws Exception {
            // Given: Mock transport with server key
            byte[] expectedKey = { 1, 2, 3, 4 };
    
            SmbTransportPoolImpl poolSpy = spy(pool);
            when(ctx.getTransportPool()).thenReturn(poolSpy);
    
            SmbTransportImpl mockTransport = mock(SmbTransportImpl.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    func TestWriterDirAttributes(t *testing.T) {
    	var buf bytes.Buffer
    	w := NewWriter(&buf)
    	if _, err := w.CreateHeader(&FileHeader{
    		Name:               "dir/",
    		Method:             Deflate,
    		CompressedSize64:   1234,
    		UncompressedSize64: 5678,
    	}); err != nil {
    		t.Fatal(err)
    	}
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    	b := buf.Bytes()
    
    	var sig [4]byte
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/LogStreamTest.java

            logStream.print("test");
            logStream.print(123);
            logStream.print(true);
            logStream.println();
            logStream.println("line");
            logStream.printf("formatted %d%n", 42);
            logStream.flush();
    
            String output = testOutput.toString();
            assertTrue(output.contains("test"));
            assertTrue(output.contains("123"));
            assertTrue(output.contains("true"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

        }
    
        @Test
        void testToStringWithOptions() throws DcerpcException {
            dcerpcBinding.setOption("connect", "80");
            dcerpcBinding.setOption("bind", "123");
            // Order of options in toString might vary due to HashMap, so check for containment
            String result = dcerpcBinding.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

            final Annotation anno = m.getAnnotation(Hoge.class);
            final Map<String, Object> props = AnnotationUtil.getProperties(anno);
            assertThat((String) props.get("aaa"), is("123"));
            assertThat((String) props.get("bbb"), is("3"));
            assertThat(props.get("ccc"), is(nullValue()));
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

         */
        @Test
        @DisplayName("Test constructor with mock configuration")
        public void testConstructorWithMockConfig() {
            // Setup mock to return a valid PID
            when(mockConfig.getPid()).thenReturn(1234);
    
            // When
            smbComTreeDisconnect = new SmbComTreeDisconnect(mockConfig);
    
            // Then
            assertNotNull(smbComTreeDisconnect);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/HexdumpTest.java

            // Test different sizes
            assertEquals("00", Hexdump.toHexString(0, 2));
            assertEquals("FF", Hexdump.toHexString(255, 2));
            assertEquals("1234", Hexdump.toHexString(0x1234, 4));
        }
    
        @Test
        @DisplayName("Should convert long to hex string with padding")
        void testLongToHexString() {
            // Test various long values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/OptionalUtilTest.java

            CustomTestObject testValue = new CustomTestObject("test", 123);
            OptionalEntity<CustomTestObject> result = OptionalUtil.ofNullable(testValue);
    
            assertNotNull(result);
            assertTrue(result.isPresent());
            assertEquals(testValue, result.get());
            assertEquals("test", result.get().getName());
            assertEquals(123, result.get().getValue());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 13K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            SmbSessionImpl session = mock(SmbSessionImpl.class);
            when(tree.getSession()).thenReturn(session);
            when(session.getSessionKey()).thenReturn(new byte[] { 1, 2, 3 });
    
            byte[] key = target.getSessionKey();
            assertArrayEquals(new byte[] { 1, 2, 3 }, key);
            verify(tree, times(1)).getSession();
            verify(session, times(1)).getSessionKey();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            pythonJob.filename("test.py");
            pythonJob.sessionId = "custom-session-123";
    
            testProcessHelper.exitValue = 0;
    
            String result = pythonJob.execute();
    
            assertTrue(result.contains("Session Id: custom-session-123"));
            assertEquals("custom-session-123", pythonJob.sessionId);
        }
    
        // Test execute with process failure
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top