- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 960 for correctly (0.1 sec)
-
guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java
import junit.framework.TestCase; /** * Since annotations have some reusability issues that force copy and paste all over the place, it's * worth having a test to ensure that all our Feature enums have their annotations correctly set up. * * @author George van den Driessche */ public class FeatureEnumTest extends TestCase { private static void assertGoodTesterAnnotation(Class<? extends Annotation> annotationClass) { assertNotNull(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java
when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name()); } @Test void testConstructor() { // Test that the constructor correctly sets the command and path String directoryName = "testDir"; SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsReferralTest.java
import org.junit.jupiter.api.Test; /** * Tests for the DfsReferral class. * This class tests the functionality of the DfsReferral class, * ensuring that objects are constructed correctly, appended properly, * and that the toString method returns the expected format. */ class DfsReferralTest { /** * Tests the default constructor of the DfsReferral class.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java
class SessionRetargetResponsePacketTest { @Mock private InputStream mockInputStream; @Test void constructorShouldInitializeTypeAndLength() { // Test that the constructor correctly initializes the type and length fields. SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket(); assertEquals(SessionServicePacket.SESSION_RETARGET_RESPONSE, packet.type);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvChannelBindingsTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; class AvChannelBindingsTest { /** * Test that the constructor correctly initializes with a valid channel binding hash. */ @Test void testConstructorWithValidHash() { byte[] testHash = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java
public void testSubmit() throws Exception { /* * Mostly just tests that TrustedListenableFutureTask are created and run; tests for * TrustedListenableFutureTask should ensure that listeners are called correctly. */ TestListeningExecutorService e = new TestListeningExecutorService(); TestRunnable runnable = new TestRunnable(); ListenableFuture<?> runnableFuture = e.submit(runnable);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java
public void testSubmit() throws Exception { /* * Mostly just tests that TrustedListenableFutureTask are created and run; tests for * TrustedListenableFutureTask should ensure that listeners are called correctly. */ TestListeningExecutorService e = new TestListeningExecutorService(); TestRunnable runnable = new TestRunnable(); ListenableFuture<?> runnableFuture = e.submit(runnable);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java
public void setUp() { smbComDelete = new SmbComDelete(TEST_FILE_NAME); } @Test public void testConstructor() { // Test if the constructor sets the file name and command correctly assertEquals(TEST_FILE_NAME, smbComDelete.path); assertEquals(ServerMessageBlock.SMB_COM_DELETE, smbComDelete.command); } @Test public void testWriteParameterWordsWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
assertEquals(0, msg.readBytesWireFormat(new byte[15], index)); assertEquals(0, msg.readBytesWireFormat(null, index)); } @Test @DisplayName("toString formats correctly") void toStringFormatsCorrectly() { SmbComLogoffAndX msg = new SmbComLogoffAndX(null); String s = msg.toString(); assertNotNull(s, "toString should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0)