Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,989 for SHOULD (0.03 sec)

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

            verify(mockContext).getPipe(url, pipeType);
        }
    
        @Test
        @DisplayName("Should close context")
        void testClose() throws CIFSException {
            // When
            mockContext.close();
    
            // Then
            verify(mockContext).close();
        }
    
        @Test
        @DisplayName("Should get Configuration")
        void testGetConfig() {
            // Given
    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

        @DisplayName("Should handle various NetBIOS name types")
        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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. tests/lru_test.go

    		t.Fatalf("value differs from expected")
    	}
    	if !ok {
    		t.Fatalf("should be true")
    	}
    
    	if !lc.Contains("key1") {
    		t.Fatalf("should contain key1")
    	}
    	if lc.Contains("key2") {
    		t.Fatalf("should not contain key2")
    	}
    
    	v, ok = lc.Peek("key2")
    	if v != "" {
    		t.Fatalf("should be empty")
    	}
    	if ok {
    		t.Fatalf("should be false")
    	}
    
    	if !reflect.DeepEqual(lc.Keys(), []string{"key1"}) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        @DisplayName("Should setup response correctly")
        void testSetupResponse() {
            // Given
            Response resp = mock(Response.class);
    
            // When
            response.setupResponse(resp);
    
            // Then - nothing should happen (empty implementation)
            verifyNoInteractions(resp);
        }
    
        @Test
        @DisplayName("Should read valid negotiate response from wire format")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. tests/group_by_test.go

    		t.Errorf("name should be groupby, but got %v, total should be 60, but got %v", name, total)
    	}
    
    	if err := DB.Model(&User{}).Select("name, sum(age) as total").Where("name LIKE ?", "groupby%").Group("name").Having("name = ?", "groupby1").Row().Scan(&name, &total); err != nil {
    		t.Errorf("no error should happen, but got %v", err)
    	}
    
    	if name != "groupby1" || total != 660 {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
            assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException");
        }
    
        @Test
        @DisplayName("Message constructor should create exception with specified message")
        void testMessageConstructor() {
            // Given & When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/av/AvFlagsTest.java

            assertNotNull(avFlags, "AvFlags object should not be null");
            assertEquals(0x04030201, avFlags.getFlags(), "Flags should match the raw bytes (little-endian)");
    
            // Test with zero
            byte[] zeroBytes = new byte[] { 0x00, 0x00, 0x00, 0x00 };
            AvFlags zeroAvFlags = new AvFlags(zeroBytes);
            assertNotNull(zeroAvFlags, "AvFlags object should not be null for zero bytes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            assertEquals(mid, request.getMid(), "MID should be set correctly");
            assertEquals(asyncId, request.getAsyncId(), "AsyncId should be set correctly");
            assertEquals(credits, request.getCredit(), "Credits should be set correctly");
            assertEquals(treeId, request.getTreeId(), "Tree ID should be set correctly");
            assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set for non-zero asyncId");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

        }
    
        @Test
        @DisplayName("Should handle null path")
        void testNullPath() {
            // When creating with null path
            Smb2TreeConnectRequest reqWithNull = new Smb2TreeConnectRequest(mockConfig, null);
    
            // Then - should not throw during construction
            assertNotNull(reqWithNull);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/util/MimeMapTest.java

        @Nested
        @DisplayName("Edge cases and special scenarios")
        class EdgeCases {
    
            @Test
            @DisplayName("Should handle multiple extensions for same mime type")
            void testMultipleExtensionsForSameMimeType() throws IOException {
                // Both jpg and jpeg should map to image/jpeg
                String jpgMime = mimeMap.getMimeType("jpg");
                String jpegMime = mimeMap.getMimeType("jpeg");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top