- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,274 for arrayOf (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/WinErrorTest.java
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.mockito.Mockito; /** * Tests for {@link WinError} interface constants and static arrays. * The interface has no instance methods, so the tests focus on * value correctness and array integrity. A tiny Mockito example * demonstrates that the interface can be mocked if another class * depends on it. */ public class WinErrorTest { @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/annotation/SecuredTest.java
assertNotNull(target); ElementType[] targetTypes = target.value(); assertEquals(2, targetTypes.length); assertTrue(Arrays.asList(targetTypes).contains(ElementType.METHOD)); assertTrue(Arrays.asList(targetTypes).contains(ElementType.TYPE)); // Check Retention annotation Retention retention = Secured.class.getAnnotation(Retention.class);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
assertEquals("00FF7F80", result); } @Test @DisplayName("Should handle large byte arrays efficiently") void testLargeByteArray() { // Create a larger test array byte[] data = createTestData(1024); // Test full array conversion String result = Hexdump.toHexString(data); assertEquals(2048, result.length()); // 1024 bytes * 2 chars
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java
import java.util.Arrays; import java.util.List; import java.util.Set; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.jspecify.annotations.NullUnmarked; /** * Tests for CompactHashSet. * * @author Dimitris Andreou */ @GwtIncompatible // java.util.Arrays#copyOf(Object[], int), java.lang.reflect.Array @NullUnmarked
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @DisplayName("Smb2LeaseKey Tests") class Smb2LeaseKeyTest { @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java
/** * Utility class for conversions related to byte arrays. * * @author higa */ public abstract class BinaryConversionUtil { /** * Do not instantiate. */ protected BinaryConversionUtil() { } /** * Converts to a {@literal byte} array. * * @param o * The object to convert * @return The {@literal byte} array */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BooleansTest.java
List<Boolean> none = Arrays.<Boolean>asList(); assertThat(Booleans.toArray(none)).isEqualTo(EMPTY); List<Boolean> one = Arrays.asList(false); assertThat(Booleans.toArray(one)).isEqualTo(ARRAY_FALSE); boolean[] array = {false, false, true}; List<Boolean> three = Arrays.asList(false, false, true); assertThat(Booleans.toArray(three)).isEqualTo(array);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
assertArrayEquals(plaintext, decrypted1); assertArrayEquals(plaintext, decrypted2); // Clean up Arrays.fill(plaintext, '\0'); Arrays.fill(decrypted1, '\0'); Arrays.fill(decrypted2, '\0'); } @Test public void testBase64StringOperations() throws Exception { char[] plaintext = "TestPassword456".toCharArray();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
// Should only copy first 16 bytes assertArrayEquals(Arrays.copyOfRange(longFileId, 0, 16), Arrays.copyOfRange(buffer, 16, 32)); } @Test @DisplayName("Should handle file ID shorter than 16 bytes") void testShortFileId() { byte[] shortFileId = new byte[8]; Arrays.fill(shortFileId, (byte) 0xAB); request.setFileId(shortFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Types.java
} } /** Returns the {@code Class} object of arrays with {@code componentType}. */ static Class<?> getArrayClass(Class<?> componentType) { // TODO(user): This is not the most efficient way to handle generic // arrays, but is there another way to extract the array class in a // non-hacky way (i.e. using String value class names- "[L...")? return Array.newInstance(componentType, 0).getClass(); } /*
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.6K bytes - Viewed (0)