Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 256 for setters (0.49 sec)

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

        }
    
        @ParameterizedTest(name = "Int getter {2} returns {1}")
        @MethodSource("intGetterProvider")
        void intGetters_edgeCases(IntGetter getter, int value, String label) {
            // Arrange
            FileEntry e = new TestFileEntry("n", value, value, 0L, 0L, 0L, 0L, value);
            // Act
            int actual = getter.apply(e);
            // Assert
            assertEquals(value, actual, label);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java

                throw new RuntimeException("Failed to access protected fields via reflection", e);
            }
    
            // Since SamrOpenAlias's constructor parameters are not directly exposed via getters in MsrpcSamrOpenAlias,
            // we cannot directly verify them here without reflection or extending SamrOpenAlias for testing.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java

                // Expected
            }
        }
    
        public void test_getBoostedDocumentList_noBoostList() {
            KeyMatch keyMatch = new KeyMatch();
            keyMatch.setId("nonexistent");
            keyMatch.setTerm("nonexistent");
            keyMatch.setVirtualHost("");
    
            try {
                List<Map<String, Object>> result = keyMatchHelper.getBoostedDocumentList(keyMatch);
                assertNotNull(result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/SplitterTest.java

        String simple = "a,b,c";
        List<String> letters = COMMA_SPLITTER.splitToList(simple);
        assertThat(letters).containsExactly("a", "b", "c").inOrder();
      }
    
      public void testCharacterSimpleSplitToStream() {
        String simple = "a,b,c";
        List<String> letters = COMMA_SPLITTER.splitToStream(simple).collect(toImmutableList());
        assertThat(letters).containsExactly("a", "b", "c").inOrder();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

            SmbComNegotiateResponse smb1 = new SmbComNegotiateResponse(ctx);
            setField(transport, "negotiated", smb1);
            assertFalse(transport.isSMB2());
        }
    
        @Test
        @DisplayName("Digest setter/getter roundtrip")
        void digestRoundtrip() {
            SMBSigningDigest dg = mock(SMBSigningDigest.class);
            transport.setDigest(dg);
            assertSame(dg, transport.getDigest());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/spnego/NegTokenTargTest.java

            // Act – serialise and parse back
            byte[] bytes = original.toByteArray();
            NegTokenTarg roundTrip = new NegTokenTarg(bytes);
    
            // Assert – all getters match the original values
            assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip");
            assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  7. schema/field.go

    					field.ReflectValueOf(ctx, value).Set(reflectV.Elem())
    					return
    				} else {
    					err = setter(ctx, value, reflectV.Elem().Interface())
    				}
    			} else if valuer, ok := v.(driver.Valuer); ok {
    				if v, err = valuer.Value(); err == nil {
    					err = setter(ctx, value, v)
    				}
    			} else if _, ok := v.(clause.Expr); !ok {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Aug 20 04:51:17 UTC 2025
    - 32K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            if ((caps & Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION) != 0)
                capCount++;
    
            assertEquals(expectedCapabilityCount, capCount);
        }
    
        @Test
        @DisplayName("Should handle all getters correctly")
        void testAllGetters() {
            // Given
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311);
            when(mockConfig.isEncryptionEnabled()).thenReturn(true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            // Verify that the object was created
            assertNotNull(pacString, "The PacUnicodeString object should not be null.");
    
            // Verify that the getters return the correct values
            assertEquals(length, pacString.getLength(), "The length should match the value provided in the constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

    /**
     * Tests for the {@link AllocInfo} interface.
     * Since {@code AllocInfo} only declares getters, the tests focus on
     * verifying that implementations honour the contract.
     */
    @ExtendWith(MockitoExtension.class)
    public class AllocInfoTest {
    
        @Mock
        AllocInfo mockAllocInfo;
    
        /**
         * Happy path – verifies that getters return the values supplied by the
         * implementation.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top