Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 3,008 for SHOULD (0.08 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            assertEquals(2, lsarSidArrayX.num_sids, "num_sids should match the array length");
    
            // Verify sids array and its contents
            assertNotNull(lsarSidArrayX.sids, "sids array should not be null");
            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(sidT1, lsarSidArrayX.sids[0].sid, "First SID should be unwrapped correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
            void testReadInvalidStructureSize() {
                // Create buffer with invalid structure size
                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(23, buffer, 0); // Invalid size (should be 24)
    
                SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

        class ConstructorTests {
    
            @Test
            @DisplayName("Should create response with configuration")
            void testConstructor() {
                Smb2EchoResponse response = new Smb2EchoResponse(mockConfig);
                assertNotNull(response);
                assertEquals(mockConfig, response.getConfig());
            }
    
            @Test
            @DisplayName("Should extend ServerMessageBlock2Response")
            void testInheritance() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/NtlmFlags.java

        /**
         * Specifies that communication across the authenticated channel
         * should carry a digital signature (message integrity).
         */
        int NTLMSSP_NEGOTIATE_SIGN = 0x00000010;
    
        /**
         * Specifies that communication across the authenticated channel
         * should be encrypted (message confidentiality).
         */
        int NTLMSSP_NEGOTIATE_SEAL = 0x00000020;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java

      public void testEquals_self() {
        assertTrue("An Object should be equal to itself.", collection.equals(collection));
      }
    
      // Comparisons to null *are* defined.
      @SuppressWarnings("UndefinedEquals")
      public void testEquals_null() {
        // noinspection ObjectEqualsNull
        assertFalse("An object should not be equal to null.", collection.equals(null));
      }
    
      // A collection should essentially never be equal to a non-collection.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

        /**
         * Test for the writeParameterWordsWireFormat method.
         * It should always return 0.
         */
        @Test
        void testWriteParameterWordsWireFormat() {
            assertEquals(0, response.writeParameterWordsWireFormat(buffer, 0), "writeParameterWordsWireFormat should return 0");
        }
    
        /**
         * Test for the writeBytesWireFormat method.
         * It should always return 0.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/LmhostsTest.java

            }
    
            when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath());
    
            // First call should read the file
            NbtAddress result1 = lmhosts.getByName("TESTHOST", mockContext);
            assertNotNull(result1);
    
            // Second call should use cached data (file not modified)
            NbtAddress result2 = lmhosts.getByName("TESTHOST", mockContext);
            assertNotNull(result2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/util/Base64Test.java

            // Assert
            assertArrayEquals(expected, actual, "Base64.decode should return original bytes");
        }
    
        @Test
        @DisplayName("encode should throw NPE on null input")
        void testEncodeNull() {
            assertThrows(NullPointerException.class, () -> Base64.encode(null));
        }
    
        @Test
        @DisplayName("decode should throw NPE on null input")
        void testDecodeNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java

      public void testPutIfAbsent_supportedAbsent() {
        assertNull("putIfAbsent(notPresent, value) should return null", putIfAbsent(e3()));
        expectAdded(e3());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutIfAbsent_supportedPresent() {
        assertEquals(
            "putIfAbsent(present, value) should return existing value",
            v0(),
            getMap().putIfAbsent(k0(), v3()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. tests/upsert_test.go

    	}
    
    	if err := DB.Find(&langs, "code = ?", lang.Code).Error; err != nil {
    		t.Errorf("no error should happen when find languages with code, but got %v", err)
    	} else if len(langs) != 1 {
    		t.Errorf("should only find only 1 languages, but got %+v", langs)
    	} else if langs[0].Name != "upsert-new" {
    		t.Errorf("should update name on conflict, but got name %+v", langs[0].Name)
    	}
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top