Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 484 for given (0.02 sec)

  1. src/test/java/jcifs/CIFSContextTest.java

                mockContext.renewCredentials("hint", new Exception());
            });
        }
    
        @Test
        @DisplayName("Should get SmbResource")
        void testGet() throws CIFSException {
            // Given
            String url = "smb://server/share/file";
            SmbResource mockResource = mock(SmbResource.class);
            when(mockContext.get(url)).thenReturn(mockResource);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/NetbiosNameTest.java

        void testVariousNameTypes(int nameType) {
            // Given
            when(mockNetbiosName.getNameType()).thenReturn(nameType);
    
            // When
            int result = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(nameType, result);
        }
    
        @Test
        @DisplayName("Should handle null name")
        void testNullName() {
            // Given
            when(mockNetbiosName.getName()).thenReturn(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

        void testInterfaceCanBeMocked() {
            // Given
            SmbNegotiationRequest mockRequest = mock(SmbNegotiationRequest.class);
    
            // Then
            assertNotNull(mockRequest, "Mock should be created successfully");
        }
    
        @Test
        @DisplayName("Test default behavior of mock without stubbing")
        void testDefaultBehaviorOfMock() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/CryptoTest.java

     */
    @DisplayName("Crypto Utility Tests")
    class CryptoTest extends BaseTest {
    
        @Test
        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
            byte[] hash = md4.digest(data);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

            config = new PropertyConfiguration(new Properties());
        }
    
        /**
         * Test of readParameterWordsWireFormat method
         */
        @Test
        public void testReadParameterWordsWireFormat() {
            // Given
            byte[] buffer = new byte[] { (byte) 0xff, (byte) 0xff, 0, 0, 0, 0, 0, 0 };
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. CITATION.cff

        given-names: Lukasz
      - family-names: Kudlur
        given-names: Manjunath
      - family-names: Levenberg
        given-names: Josh
      - family-names: Mané
        given-names: Dan
      - family-names: Schuster
        given-names: Mike
      - family-names: Monga
        given-names: Rajat
      - family-names: Moore
        given-names: Sherry
      - family-names: Murray
        given-names: Derek
      - family-names: Olah
        given-names: Chris
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Sep 06 15:26:23 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

     */
    class Trans2FindNext2Test {
    
        /**
         * Verifies constructor initializes protocol fields and limits correctly.
         */
        @Test
        void testConstructorInitializesFields() {
            // Given
            int sid = 0x2222;
            int resumeKey = 0x12345678;
            String filename = "dir\\pattern*";
    
            // When
            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, filename);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/BufferCacheTest.java

        }
    
        @Test
        @DisplayName("BufferCache interface should define correct method signatures")
        void testInterfaceContract() {
            // Given
            BufferCache cache = mockBufferCache;
    
            // When & Then - verify interface methods exist and can be called
            assertDoesNotThrow(() -> {
                cache.getBuffer();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

        return randomSource.nextLong();
      }
    
      // A random value that cannot be 0 and that is unsigned-less-than or equal
      // to the given dividend, so that we don't have half of our divisions being
      // trivial because the divisor is bigger than the dividend.
      // Using remainder here does not give us a uniform distribution but it should
      // not have a big impact on the measurement.
      private static long randomDivisor(long dividend) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

     */
    class Trans2QueryPathInformationTest {
    
        /**
         * Tests the constructor of Trans2QueryPathInformation.
         */
        @Test
        void testConstructor() {
            // Given
            String filename = "testFile.txt";
            int informationLevel = 0x0100; // SMB_QUERY_FILE_BASIC_INFO
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top