Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 2,907 for 2test (0.22 sec)

  1. src/test/java/jcifs/internal/dtyp/ACETest.java

        }
    
        @Test
        @DisplayName("Test appendCol helper method")
        void testAppendCol() {
            StringBuffer sb = new StringBuffer();
    
            // Test with short string
            ace.appendCol(sb, "test", 10);
            assertEquals("test      ", sb.toString());
    
            // Test with exact width string
            sb = new StringBuffer();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t03/ProjectInheritanceTest.java

    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    /**
     * A test which demonstrates maven's recursive inheritance where
     * a distinct value is taken from each parent contributing to
     * the final model of the project being assembled. There is no
     * overriding going on amongst the models being used in this test:
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEqualityGroup(Equivalence.equals().<@Nullable Object>wrap(null))
            .testEquals();
      }
    
      public void testWrap_get() {
        String test = "test";
        Wrapper<String> wrapper = LENGTH_EQUIVALENCE.wrap(test);
        assertSame(test, wrapper.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEqualityGroup(Equivalence.equals().<@Nullable Object>wrap(null))
            .testEquals();
      }
    
      public void testWrap_get() {
        String test = "test";
        Wrapper<String> wrapper = LENGTH_EQUIVALENCE.wrap(test);
        assertSame(test, wrapper.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

                throw new RuntimeCIFSException("Test exception");
            });
    
            // Test that it can be caught specifically
            assertThrows(RuntimeCIFSException.class, () -> {
                throw new RuntimeCIFSException("Test exception");
            });
    
            // Test exception handling behavior
            try {
                throw new RuntimeCIFSException("Original message", new IllegalStateException("Cause"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            }
    
            @Test
            @DisplayName("Should return 0 with null array")
            void testWriteBytesWireFormatWithNullArray() {
                // Given
                byte[] dst = null;
    
                // When
                int result = response.writeBytesWireFormat(dst, 0);
    
                // Then
                assertEquals(0, result);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                assertEquals("Named pipes are only valid on IPC$", ex.getMessage());
            }
    
            @Test
            @DisplayName("Null context throws NPE (invalid input)")
            void nullContextThrows() {
                assertThrows(NullPointerException.class, () -> new SmbNamedPipe("smb://server/IPC$/foo", 0, null));
            }
    
            @Test
            @DisplayName("Second constructor sets unshared based on flags")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

    import static org.mockito.Mockito.when;
    
    import java.util.function.Supplier;
    import java.util.stream.Stream;
    
    import org.junit.jupiter.api.DisplayName;
    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.MethodSource;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertEquals(0, result);
    
            // Test with different parameters
            result = netShareEnum.readParametersWireFormat(buffer, 25, 75);
            assertEquals(0, result);
    
            // Test with zero length
            result = netShareEnum.readParametersWireFormat(buffer, 0, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readDataWireFormat returns 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/util/HMACT64Test.java

            Arrays.fill(LONG_TEST_KEY, (byte) 0xAB);
        }
    
        @Test
        void testConstructorWithNormalKey() {
            // Test constructor with a normal length key
            HMACT64 hmac = new HMACT64(TEST_KEY);
            assertNotNull(hmac);
        }
    
        @Test
        void testConstructorWithLongKey() {
            // Test constructor with a key longer than BLOCK_LENGTH (64 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top