- Sort Score
- Result 10 results
- Languages All
Results 311 - 320 of 583 for incorrectly (0.16 sec)
-
src/test/java/jcifs/EncodableTest.java
for (int i = 0; i < n; i++) { a[i] = (byte) i; } return a; } @ParameterizedTest @MethodSource("byteEncodableArgs") @DisplayName("encode() copies bytes correctly and returns size") void encodeCopiesAndReportsSize(byte[] src, int off, int len, int dstIndex) { Encodable enc = new ByteEncodable(src, off, len);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
@Inject private RepositorySystem repoSystem; @Inject private LegacySupport legacySupport; /** @deprecated we want to use the artifact method only, and ensure artifact.file is set correctly. */ @Deprecated @Override public void install(String basedir, String finalName, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationException {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertEquals(second, third.next()); assertEquals(referralData, second.next()); } @Test @DisplayName("Should handle next() correctly") void testNext() { DfsReferralDataImpl second = new DfsReferralDataImpl(); referralData.append(second); DfsReferralDataImpl next = referralData.next();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
assertEquals("Expected structureSize = 4", exception.getMessage()); } @Test @DisplayName("Should handle different buffer positions correctly") void testReadBytesWireFormatDifferentPositions() throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; // Test at different positionsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertEquals("FFFE80", Hexdump.toHexString(data2, 0, 6)); // 6 chars = 3 bytes assertEquals("FFFE807F", Hexdump.toHexString(data2, 0, 8)); // 8 chars = 4 bytes // Test odd size (should handle correctly) byte[] data3 = { 0x0A, 0x0B, 0x0C }; assertEquals("0", Hexdump.toHexString(data3, 0, 1)); // 1 char = 0.5 bytes (rounds up to 1) assertEquals("0A", Hexdump.toHexString(data3, 0, 2)); // 2 chars = 1 byte
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java
// Mock configuration setup when(mockConfig.getTransactionBufferSize()).thenReturn(65535); } @Test @DisplayName("Test constructor initializes fields correctly") void testConstructor() { netShareEnum = new NetShareEnum(realConfig); assertNotNull(netShareEnum); assertEquals("\\PIPE\\LANMAN", getFieldValue(netShareEnum, "name"));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
buffer[bufferIndex + 36] = 0x00; int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex); assertEquals(37, bytesRead); // Verify maximum values are correctly handled Field setupCountField = response.getClass().getSuperclass().getSuperclass().getDeclaredField("setupCount"); setupCountField.setAccessible(true); assertEquals(255, setupCountField.get(response));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
.addEqualityGroup(Functions.constant("incorrect")) .addEqualityGroup(Functions.toStringFunction()) .addEqualityGroup(g) .testEquals(); new EqualsTester() .addEqualityGroup(g, Functions.<@Nullable Object>constant(null)) .addEqualityGroup(Functions.constant("incorrect")) .addEqualityGroup(Functions.toStringFunction())
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 16K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java
} assertEquals(expected, ex.getNtStatus(), "Status should match mapping or fallback"); } /** * Verify that root causes are stored and returned correctly. */ @Test @DisplayName("Root cause propagation") void testRootCausePropagation() { Throwable root = mock(Throwable.class); SmbException ex = new SmbException(0, root);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
* directly. Since the byte‑encoding logic is located in the superclass, the * tests verify that the byte buffer created by {@link * SmbComQueryInformation#writeBytesWireFormat(byte[], int)} is correctly built * for both Unicode and OEM encodings. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbComQueryInformationTest { @Mock Configuration mockConfig;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0)