Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 2,773 for throwIt (0.04 sec)

  1. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

         * @see jcifs.SmbWatchHandle#call()
         */
        @Override
        public List<FileNotifyInformation> call() throws CIFSException {
            return watch();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#close()
         */
        @Override
        public void close() throws CIFSException {
            if (this.handle.isValid()) {
                this.handle.close(0L);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            assertEquals(expected, result);
            verify(transport, times(1)).disconnect(hard, inuse);
        }
    
        // Error case: disconnect throws IOException
        @Test
        @DisplayName("disconnect throws IOException when underlying close fails")
        void disconnect_throwsIOException() throws Exception {
            doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            // The iterator returns null when no elements, doesn't throw exception
            assertNull(iterator.next(), "Should return null when no elements");
        }
    
        /**
         * Test close method delegates to underlying iterator.
         */
        @Test
        void testClose() throws CIFSException {
            // Given
            when(mockDelegate.hasNext()).thenReturn(false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/EncodableTest.java

        }
    
        @Test
        @DisplayName("encode() throws when destination too small")
        void encodeThrowsWhenDestinationTooSmall() {
            byte[] src = makeSeq(5);
            Encodable enc = new ByteEncodable(src, 0, 5);
            byte[] dst = new byte[4]; // too small
    
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> enc.encode(dst, 0),
                    "System.arraycopy should throw for insufficient destination space");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

        }
    
        @Test
        @DisplayName("close calls release and decrements usage; double release throws")
        void closeAndReleaseBehavior() {
            // Validates usage counting and that an extra release() throws RuntimeCIFSException
            // First close -> usage 1 -> 0, triggers treeConnection.release()
            handle.close();
            verify(treeConnection, times(1)).release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            // Test multiple releases (should not throw)
            assertThrows(RuntimeException.class, () -> session.release(), "Additional release should throw RuntimeCIFSException");
        }
    
        /**
         * Test tree creation and cleanup
         */
        @Test
        @Timeout(5)
        public void testTreeManagement() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

     * @author Sven Mawson
     */
    @NullUnmarked
    public class ExecutionListTest extends TestCase {
    
      private final ExecutionList list = new ExecutionList();
    
      public void testRunOnPopulatedList() throws Exception {
        Executor exec = newCachedThreadPool();
        CountDownLatch countDownLatch = new CountDownLatch(3);
        list.add(new MockRunnable(countDownLatch), exec);
        list.add(new MockRunnable(countDownLatch), exec);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt

            else -> type
          }
    
      companion object {
        @Throws(IOException::class)
        @JvmStatic
        @JvmName("get")
        fun SSLSession.handshake(): Handshake {
          val cipherSuite =
            when (val cipherSuiteString = checkNotNull(cipherSuite) { "cipherSuite == null" }) {
              "TLS_NULL_WITH_NULL_NULL", "SSL_NULL_WITH_NULL_NULL" -> {
                throw IOException("cipherSuite == $cipherSuiteString")
              }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 05 09:48:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            @Override
            public long process() {
                return returnValue;
            }
        }
    
        // Test class that throws exception
        private static class ExceptionScoreBooster extends ScoreBooster {
            @Override
            public long process() {
                throw new RuntimeException("Test exception");
            }
        }
    
        // Test class with priority tracking
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ThemeHelper.java

         * @param artifact the theme artifact
         * @return the theme name
         * @throws ThemeException if theme name cannot be determined
         */
        protected String getThemeName(final Artifact artifact) {
            final String themeName = artifact.getName().substring(ArtifactType.THEME.getId().length() + 1);
            if (StringUtil.isBlank(themeName)) {
                throw new ThemeException("Theme name is empty: " + artifact);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top