Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 651 for assertThrows (0.06 sec)

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

    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    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.ArgumentMatchers.any;
    import static org.mockito.Mockito.mock;
    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
    - 7.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/JoinerTest.java

        checkResult(J, OVERREPORTING_SIZE_LIST, "1-2-3");
    
        assertThrows(NullPointerException.class, () -> J.join(iterableNull));
        assertThrows(NullPointerException.class, () -> J.join(iterable1Null2));
    
        assertThrows(NullPointerException.class, () -> J.join(iterableNull.iterator()));
        assertThrows(NullPointerException.class, () -> J.join(iterable1Null2.iterator()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            invalidBuffer[2] = 0x00;
            invalidBuffer[3] = 0x00;
    
            assertThrows(IllegalArgumentException.class, () -> {
                Smb2TransformHeader.decode(invalidBuffer, 0);
            });
        }
    
        @Test
        @DisplayName("Should handle null nonce")
        void testNullNonce() {
            // When/Then
            assertThrows(NullPointerException.class, () -> {
                transformHeader.setNonce(null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Predicate;
    import com.google.common.base.Predicates;
    import java.util.Map;
    import java.util.Map.Entry;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            }
        }
    
        @Test
        @DisplayName("assertThrows captures and exposes the default message")
        void assertThrows_capturesDefaultMessage() {
            // Act & Assert
            SmbUnsupportedOperationException ex = assertThrows(SmbUnsupportedOperationException.class, () -> {
                throw new SmbUnsupportedOperationException();
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(NullPointerException.class, () -> putAll(containsNullValue));
        expectUnchanged();
        expectNullValueMissingWhenNullValuesUnsupported(
            "Should not contain null value after unsupported putAll(containsNullValue)");
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_nullCollectionReference() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            assertEquals(uuid, guid1.getUuid());
        }
    
        @Test
        public void testHandleGuidInvalidBytes() {
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[8]); // Wrong length
            });
    
            assertThrows(IllegalArgumentException.class, () -> {
                new HandleGuid(new byte[20]); // Wrong length
            });
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lock2.lock());
        checkMessage(expected, "MyOrder.THIRD -> MyOrder.SECOND");
    
        expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
        checkMessage(expected, "MyOrder.THIRD -> MyOrder.FIRST");
    
        lock3.unlock();
        lock2.lock();
    
        expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lock2.lock());
        checkMessage(expected, "MyOrder.THIRD -> MyOrder.SECOND");
    
        expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
        checkMessage(expected, "MyOrder.THIRD -> MyOrder.FIRST");
    
        lock3.unlock();
        lock2.lock();
    
        expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top