- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 284 for originals (0.04 sec)
-
src/test/java/org/codelibs/fess/entity/RequestParameterTest.java
// Test that modifying the original values array doesn't affect the parameter String name = "immutableParam"; String[] originalValues = { "original1", "original2" }; RequestParameter param = new RequestParameter(name, originalValues); // Get values and verify they match String[] retrievedValues = param.getValues(); assertEquals("original1", retrievedValues[0]);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
// Ensure changes to derived buffer don't affect original's index/start derivedBuffer.advance(5); assertEquals(15, derivedBuffer.index); assertEquals(50, ndrBuffer.index); // Original index should be unchanged } @Test void testReset() { ndrBuffer.advance(100); ndrBuffer.setLength(150); ndrBuffer.reset();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
when(decodeBuffer.dec_ndr_small()).thenReturn((int) originalSid.revision, (int) originalSid.sub_authority_count, (int) originalSid.identifier_authority[0], (int) originalSid.identifier_authority[1], (int) originalSid.identifier_authority[2], (int) originalSid.identifier_authority[3],
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/DocumentHelper.java
final int[] spaceChars = getSpaceChars(); try (final Reader reader = new StringReader(subContent)) { final String originalStr = TextUtil.normalizeText(reader).initialCapacity(content.length()).spaceChars(spaceChars).execute(); return StringUtils.abbreviate(originalStr, maxWidth); } catch (final IOException e) { return StringUtil.EMPTY; // empty } } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 17.2K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
There are some scenarios where you might want to override a dependency during testing. You don't want the original dependency to run (nor any of the sub-dependencies it might have). Instead, you want to provide a different dependency that will be used only during tests (possibly only some specific tests), and will provide a value that can be used where the value of the original dependency was used. ### Use cases: external service { #use-cases-external-service }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
data[0] = 99; assertFalse(original.equals(copy), "After mutation, original should not equal previous clone"); // Ensure arrays are independent: mutate clone's buffer via getter copy.get()[1] = 77; assertNotEquals(original.toString(), copy.toString(), "Mutating clone should not affect original"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
*/ @ParameterizedTest @ValueSource(ints = { 0, 42, 255, -1, 128 }) void encodeDecodeRoundTrip(int original) throws Exception { // The constructor masks to 0xFF (8 bits) int expected = original & 0xFF; NdrShort ns = new NdrShort(original); buf.reset(); ns.encode(buf); // should not throw // After encoding, check how many bytes were used
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
// Verify it returns a clone, not the original password[0] = 'X'; char[] password2 = authenticator.getPasswordAsCharArray(); assertNotEquals(password[0], password2[0], "Should return a clone, not the original"); } @Test public void testPasswordConstructorWithCharArray() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
assertSame(Ordering.natural(), copy.comparator()); } public void testCopyOf() { Map<String, Integer> original = new LinkedHashMap<>(); original.put("one", 1); original.put("two", 2); original.put("three", 3); ImmutableSortedMap<String, Integer> copy = ImmutableSortedMap.copyOf(original); assertMapEquals(copy, "one", 1, "three", 3, "two", 2); assertSame(copy, ImmutableSortedMap.copyOf(copy));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java
static <E> Set<E> reserializeAndAssertLenient(Set<E> original) { Set<E> copy = reserialize(original); assertEquals(original, copy); assertTrue(copy instanceof ImmutableSet); return copy; } @CanIgnoreReturnValue @GwtIncompatible // SerializableTester static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) { Multiset<E> copy = reserialize(original); assertEquals(original, copy);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.6K bytes - Viewed (0)