Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,294 for testi (0.02 sec)

  1. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

        }
    
        @Nested
        @DisplayName("Wire Format Tests")
        class WireFormatTests {
    
            @Test
            @DisplayName("Should read parameters wire format")
            void testReadParametersWireFormat() {
                byte[] buffer = new byte[10];
                int result = response.readParametersWireFormat(buffer, 0, 2);
                assertEquals(2, result);
            }
    
            @Test
            @DisplayName("Should write setup wire format")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Comprehensive test suite for jcifs.SmbResource interface.
     * Tests SMB resource interface contract and functionality for CIFS/SMB protocol compliance.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ResolverTypeTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the {@link ResolverType} enum.
     * This class ensures that the enum constants are defined as expected.
     */
    class ResolverTypeTest {
    
        /**
         * Tests that all expected enum constants exist.
         */
        @Test
        void testEnumConstants() {
            // Verify that each enum constant exists and can be referenced
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolverTest.java

        NewestConflictResolverTest() throws Exception {
            super("newest");
        }
    
        // tests ------------------------------------------------------------------
    
        /**
         * Tests that <code>a:2.0</code> wins in the scenario:
         * <pre>
         * a:1.0
         * b:1.0 -&gt; a:2.0
         * </pre>
         */
        @Test
        void testDepth() {
            ResolutionNode a1n = createResolutionNode(a1);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Constants Tests")
        class ConstantsTests {
    
            @Test
            @DisplayName("Should have correct FLAGS_NAME_LIST_REFERRAL value")
            void testFlagsNameListReferralConstant() {
                assertEquals(0x0002, Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL);
            }
    
            @Test
            @DisplayName("Should have correct FLAGS_TARGET_SET_BOUNDARY value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. cmd/data-usage-cache_test.go

    				"BETWEEN_1024B_AND_1_MB":   2,
    				"BETWEEN_10_MB_AND_64_MB":  1,
    			},
    		},
    	}
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("Test-%d", i), func(t *testing.T) {
    			var h sizeHistogram
    			for _, sz := range test.sizes {
    				h.add(sz)
    			}
    			got := h.toMap()
    			exp := test.want
    			// what is in exp is in got
    			for k := range exp {
    				if exp[k] != got[k] {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Jan 13 07:51:08 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. cmd/utils_test.go

    		{[]string{"abcd/foo/bar/", "abcd/foo/bar/zoo"}, "abcd/foo/bar/"},
    	}
    
    	for i, test := range testCases {
    		foundPrefix := lcp(test.prefixes, true)
    		if foundPrefix != test.commonPrefix {
    			t.Fatalf("Test %d: Common prefix found: `%v`, expected: `%v`", i+1, foundPrefix, test.commonPrefix)
    		}
    	}
    }
    
    func TestGetMinioMode(t *testing.T) {
    	testMinioMode := func(expected string) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

        @Nested
        @DisplayName("Getter Method Tests")
        class GetterTests {
    
            @Test
            @DisplayName("Should return correct transport context")
            void testGetTransportContext() throws Exception {
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
                assertEquals(mockContext, handle.getTransportContext());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    
    import jcifs.smb1.UniAddress;
    
    /**
     * Unit tests for {@link NtlmChallenge}.
     */
    class NtlmChallengeTest {
    
        @Nested
        @DisplayName("Constructor and Field Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Constructor sets fields correctly")
            void testConstructorSetsFields() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Comprehensive test suite for NdrShort class
     * Tests construction, encoding, decoding, and edge cases
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top