Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2861 - 2870 of 3,016 for value1 (0.33 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

            assertEquals(status, response.getErrorCode());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 255 })
        @DisplayName("Should handle various credit values")
        void testVariousCreditValues(int credits) {
            response.setCreditForTest(credits);
            assertEquals(credits, response.getGrantedCredits());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                int maxReferralLevel = -1;
    
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
                assertNotNull(buffer);
                // Negative values will be cast to unsigned when encoded
                assertEquals(4 + 2 * path.length(), buffer.size());
            }
        }
    
        @Nested
        @DisplayName("Size Calculation Tests")
        class SizeTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

             */
            public long getTimestamp() {
                return timestamp;
            }
    
            /**
             * Sets the notification timestamp.
             *
             * @param timestamp the timestamp value in FILETIME format (100-nanosecond intervals since January 1, 1601 UTC)
             */
            public void setTimestamp(long timestamp) {
                this.timestamp = timestamp;
            }
    
            /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. cmd/erasure-metadata_test.go

    			t.Fatalf("%+v: expected = %d, got: %d", testCase, testCase.expectedIndex, index)
    		}
    	}
    }
    
    // Test objectPartIndex(). generates a sample FileInfo data and asserts
    // the output of objectPartIndex() with the expected value.
    func TestObjectPartIndex(t *testing.T) {
    	testCases := []struct {
    		partNum       int
    		expectedIndex int
    	}{
    		{2, 1},
    		{1, 0},
    		{5, 3},
    		{4, 2},
    		{7, 4},
    	}
    
    	// Setup.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
       * Test for an invalid hashCode method, i.e., one that returns different value for objects that
       * are equal according to the equals method
       */
      public void testInvalidHashCode() {
        Object a = new InvalidHashCodeObject(1, 2);
        Object b = new InvalidHashCodeObject(1, 2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              @Override
              public Adder apply(Adder adder) {
                return new FailsToForwardReturnValue(adder);
              }
            },
            "add(",
            "Return value");
      }
    
      public void testFailsToPropagateException() {
        assertFailure(
            Adder.class,
            new Function<Adder, Adder>() {
              @Override
              public Adder apply(Adder adder) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SIDTest.java

            assertEquals(544, sid.sub_authority[1]);
            assertEquals(adminSidString, sid.toString());
        }
    
        /**
         * Test constructor with a SID string containing a hex value.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testStringConstructorWithHex() throws SmbException {
            SID sid = new SID("S-1-0x12-21-1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            assertSame(handle, out);
            verify(treeConnection, times(2)).acquire(); // constructor + here
        }
    
        @Test
        @DisplayName("getRemoteHostName returns transport value and closes resources")
        void getRemoteHostNameHappyPath() {
            // Ensures remote host name is sourced from transport and resources are closed
            when(transport.getRemoteHostName()).thenReturn("remote.example");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

                    : new SmbFileHandleImpl(cfg, 33, tC, "//eq/c", 0, 0, 0, 0, 0L);
    
            assertNotEquals(hA, hC);
        }
    
        @Test
        @DisplayName("getInitialSize returns constructor value")
        void getInitialSize_returnsValue() {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(1L, true, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertArrayEquals(expectedName, actualName);
                verify(response, times(1)).getName();
            }
    
            @Test
            @DisplayName("getName() should handle null return value")
            void testGetNameWithNull() {
                CreateContextResponse response = mock(CreateContextResponse.class);
                when(response.getName()).thenReturn(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
Back to top