Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2731 - 2740 of 2,910 for From (0.02 sec)

  1. guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<? super Integer, Y> g = SerializableTester.reserializeAndAssert(f);
        for (int i = 1; i < 5; i++) {
          // convoluted way to check that the same result happens from each
          Y expected = null;
          try {
            expected = f.apply(i);
          } catch (IllegalArgumentException e) {
            try {
              g.apply(i);
              fail();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDCacheImplTest.java

    import jcifs.dcerpc.UnicodeString;
    import jcifs.dcerpc.msrpc.LsaPolicyHandle;
    import jcifs.dcerpc.msrpc.lsarpc;
    
    @ExtendWith(MockitoExtension.class)
    class SIDCacheImplTest {
    
        // Helper to create a SID from text without throwing in the test body
        private static SID sid(String textual) {
            try {
                return new SID(textual);
            } catch (SmbException e) {
                throw new RuntimeException(e);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            }
        }
    
        @Nested
        @DisplayName("ReadBytesWireFormat Tests")
        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should read valid oplock break notification from buffer")
            void testReadValidOplockBreakNotification() throws Exception {
                // Create a valid buffer with structure size 24
                byte[] buffer = new byte[64];
                int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            setupCountField.setAccessible(true);
            assertEquals(128, setupCountField.get(response));
        }
    
        @Test
        @DisplayName("Test reading from different buffer positions")
        void testReadFromDifferentPositions() throws Exception {
            byte[] buffer = new byte[200];
    
            // Test at various positions in the buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  5. cmd/sftp-server-driver.go

    	_ = w.w.CloseWithError(err)
    	_ = w.r.CloseWithError(err)
    	w.err = err
    }
    
    func (w *writerAt) Close() (err error) {
    	switch {
    	case len(w.buffer) > 0:
    		err = errors.New("some file segments were not flushed from the queue")
    		_ = w.w.CloseWithError(err)
    	case w.err != nil:
    		// No need to close here since both pipes were
    		// closing inside TransferError()
    		err = w.err
    	default:
    		err = w.w.Close()
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 10 16:35:49 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableRangeMap.java

          checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range);
          entries.add(immutableEntry(range, value));
          return this;
        }
    
        /** Copies all associations from the specified range map into this builder. */
        @CanIgnoreReturnValue
        public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
          for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

                        return new CurlResponse() {
                            @Override
                            public InputStream getContentAsStream() throws IOException {
                                // Use the actual file path from the DictionaryFile
                                return new FileInputStream(new File(file.getPath()));
                            }
    
                            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

    import java.util.regex.Pattern;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Generates fresh instances of types that are different from each other (if possible).
     *
     * @author Ben Yu
     */
    @GwtIncompatible
    @J2ktIncompatible
    @NullUnmarked
    @SuppressWarnings("nullness")
    class FreshValueGenerator {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/DoublesTest.java

        list.set(0, 4.0);
        assertThat(newArray).isEqualTo(new double[] {0.0, 1.0, 2.0});
        newArray[1] = 5.0;
        assertThat((double) list.get(1)).isEqualTo(1.0);
      }
    
      // This test stems from a real bug found by andrewk
      public void testAsList_subList_toArray_roundTrip() {
        double[] array = {0.0, 1.0, 2.0, 3.0};
        List<Double> list = Doubles.asList(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // When
                Type2Message message = new Type2Message(mockContext, type1);
    
                // Then
                assertNotNull(message);
                // Verify flags are derived from Type1Message and context
                int expectedFlags =
                        Type2Message.NTLMSSP_NEGOTIATE_NTLM | Type2Message.NTLMSSP_NEGOTIATE_VERSION | Type2Message.NTLMSSP_NEGOTIATE_UNICODE
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top