Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 651 for assertThrows (0.08 sec)

  1. src/test/java/jcifs/smb/SSPContextTest.java

                byte[] buf = new byte[] { 1, 2, 3 };
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, -1, 1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 0, -1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 3, 1));
                assertThrows(CIFSException.class, () -> ctx.initSecContext(buf, 2, 2));
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    import java.io.IOException;
    import java.nio.charset.StandardCharsets;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/UUIDTest.java

    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    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.junit.jupiter.MockitoExtension;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/HandlerTest.java

    import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.IOException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> getList().addAll(0, null));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_negative() {
        assertThrows(
            IndexOutOfBoundsException.class, () -> getList().addAll(-1, MinimalCollection.of(e3())));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

      public void testParse_weakValuesCannotHaveValue() {
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues=true"));
      }
    
      public void testParse_repeatedValueStrength() {
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        assertSize(3);
        assertThrows(NullPointerException.class, () -> table.put(null, 2, cellValue('d')));
        assertThrows(NullPointerException.class, () -> table.put("cat", null, cellValue('d')));
        if (supportsNullValues()) {
          assertNull(table.put("cat", 2, null));
          assertTrue(table.contains("cat", 2));
        } else {
          assertThrows(NullPointerException.class, () -> table.put("cat", 2, null));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

    package jcifs.dcerpc;
    
    import static org.junit.jupiter.api.Assertions.assertArrayEquals;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertThrows;
    import static org.junit.jupiter.api.Assertions.fail;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.ArgumentMatchers.anyInt;
    import static org.mockito.Mockito.doCallRealMethod;
    import static org.mockito.Mockito.doThrow;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testCeilingPowerOfTwoNegative() {
        for (BigInteger x : NEGATIVE_BIGINTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.ceilingPowerOfTwo(x));
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (BigInteger x : NEGATIVE_BIGINTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.floorPowerOfTwo(x));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            doThrow(new SmbException("opt error")).when(transport).isSigningOptional();
            doThrow(new SmbException("enf error")).when(transport).isSigningEnforced();
    
            assertThrows(SmbException.class, () -> transport.isSigningOptional());
            assertThrows(SmbException.class, () -> transport.isSigningEnforced());
            verify(transport).isSigningOptional();
            verify(transport).isSigningEnforced();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top