Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 677 for Failure (0.05 seconds)

  1. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

        @Test
        @DisplayName("Test decode with signature verification failure")
        void testDecodeWithSignatureVerificationFailure() {
            testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25) {
                @Override
                public boolean verifySignature(byte[] data, int offset, int length) {
                    return false; // Simulate signature verification failure
                }
    
                @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Foo> wrapper = nonCancellationPropagating(input);
        Throwable failure = new Throwable("thrown");
    
        assertFalse(wrapper.isDone());
        input.setException(failure);
        ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(wrapper));
        assertThat(expected.getCause()).isEqualTo(failure);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Foo> wrapper = nonCancellationPropagating(input);
        Throwable failure = new Throwable("thrown");
    
        assertFalse(wrapper.isDone());
        input.setException(failure);
        ExecutionException expected = assertThrows(ExecutionException.class, () -> getDone(wrapper));
        assertThat(expected.getCause()).isEqualTo(failure);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                assertEquals(0x9ABC, testBlock.getUid());
                assertEquals(0xDEF0, testBlock.getMid());
            }
    
            @Test
            @DisplayName("Test decode with signature verification failure")
            void testDecodeWithSignatureFailure() {
                testBlock = new TestServerMessageBlock(mockConfig) {
                    @Override
                    public boolean verifySignature(byte[] buffer, int i, int size) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

                logger
                    .get()
                    .log(
                        Level.WARNING,
                        "Error while attempting to shut down the service after failure.",
                        ignored);
              }
              notifyFailed(t);
              // requireNonNull is safe now, just as it was above.
              requireNonNull(runningTask).cancel(false); // prevent future invocations.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

            return;
          }
    
          oldRunCount = workerRunCount;
    
          // If the worker is not yet running, the delegate Executor might reject our attempt to start
          // it. To preserve FIFO order and failure atomicity of rejected execution when the same
          // Runnable is executed more than once, allocate a wrapper that we know is safe to remove by
          // object identity.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 10.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            assertTrue(ex.getMessage().contains("directory must end with '/'"));
            verify(tree, times(1)).acquire();
            verify(tree, times(1)).release(); // closed after failure
        }
    
        @Test
        @DisplayName("open(): invalid UNC without trailing backslash throws SmbException")
        void invalidUncThrows() throws Exception {
            // Override the default setup for this specific test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                SmbFile dest = mock(SmbFile.class);
                CIFSContext ctx = ctxWithIgnore(false);
                when(src.getContext()).thenReturn(ctx);
    
                // Force failure before any stream construction
                when(src.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenThrow(new SmbException("boom"));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

        public ChannelInfo selectChannel(CommonServerMessageBlock message) {
            return loadBalancer.selectChannel(message);
        }
    
        /**
         * Handle channel failure
         *
         * @param channel failed channel
         * @param error error that caused failure
         */
        public void handleChannelFailure(ChannelInfo channel, Exception error) {
            failover.handleFailure(channel, error);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
      public EqualsTester testEquals() {
        RelationshipTester<Object> delegate =
            new RelationshipTester<>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
Back to Top