Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 3,084 for shouldn (0.04 sec)

  1. src/main/java/jcifs/dcerpc/DcerpcHandle.java

     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     *
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                    if (value == 4) {
                        // Should succeed
                        assertDoesNotThrow(() -> {
                            int result = response.readBytesWireFormat(buffer, 0);
                            assertEquals(4, result);
                        });
                    } else {
                        // Should throw exception
                        SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java

            NdrSmall ndrSmall = new NdrSmall(123);
            assertEquals(123, ndrSmall.value, "Value should be initialized correctly for valid input.");
        }
    
        @Test
        void testConstructor_maxValue() {
            // Test with the maximum byte value
            NdrSmall ndrSmall = new NdrSmall(255);
            assertEquals(255, ndrSmall.value, "Value should be initialized correctly for max byte value.");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                // Should encode successfully at the beginning
                int encoded = context.encode(smallBuffer, 0);
                assertEquals(6, encoded);
    
                // Should handle encoding at the end of buffer correctly
                assertDoesNotThrow(() -> context.encode(smallBuffer, 4));
            }
    
            @Test
            @DisplayName("Should preserve data integrity through encode/decode cycle")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        }
    
        @Test
        @DisplayName("Should get local host name")
        void testGetLocalName() {
            // When
            NetbiosName localName = nameServiceClient.getLocalName();
    
            // Then
            assertNotNull(localName, "Local name should not be null");
            assertTrue(localName.getName().length() > 0, "Local name should not be empty");
        }
    
        @Test
        @DisplayName("Should get unknown name")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                // Should throw exception for unsupported version
                assertThrows(Exception.class, () -> {
                    buffer.decode(testBuffer, 0, testBuffer.length);
                });
            }
        }
    
        @Nested
        @DisplayName("ToString Tests")
        class ToStringTests {
    
            @Test
            @DisplayName("Should return string representation with no referrals")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

                // Assert - verify inheritance chain
                assertTrue(msg instanceof samr.SamrConnect2, "Should extend SamrConnect2");
                assertTrue(msg instanceof DcerpcMessage, "Should extend DcerpcMessage");
                assertTrue(msg instanceof NdrObject, "Should extend NdrObject");
            }
    
            @Test
            @DisplayName("should inherit getOpnum method")
            void testGetOpnumMethod() {
                // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/ByteEncodableTest.java

            int encodedLen = encodable.encode(dest, 0);
    
            // Verify encoded length
            assertEquals(3, encodedLen, "Encoded length should be equal to the specified length");
    
            // Verify content
            assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset");
        }
    
        @Test
        void testEncodeWithOffset() {
            // Test encoding with a destination offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            // The method should write parameter words
            assertTrue(result >= 0, "writeParameterWordsWireFormat should return non-negative value");
        }
    
        @Test
        void testReadParameterWordsWireFormat() {
            byte[] buffer = new byte[1024];
            int result = response.readParameterWordsWireFormat(buffer, 0);
    
            // The method should read parameter words
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

      for (i in 0 until length) {
        val c = this[i]
        if (c <= '\u001f' || c >= '\u007f') {
          return i
        }
      }
      return -1
    }
    
    /** Returns true if we should void putting this this header in an exception or toString(). */
    internal fun isSensitiveHeader(name: String): Boolean =
      name.equals("Authorization", ignoreCase = true) ||
        name.equals("Cookie", ignoreCase = true) ||
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top