Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 5,990 for throws (0.14 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      }
    
      public void testDefaultExecutorIsShutdownWhenServiceFails() throws Exception {
        final AtomicReference<ScheduledExecutorService> executor = Atomics.newReference();
        AbstractScheduledService service =
            new AbstractScheduledService() {
              @Override
              protected void startUp() throws Exception {
                throw new Exception("Failed");
              }
    
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      }
    
      public void testDefaultExecutorIsShutdownWhenServiceFails() throws Exception {
        final AtomicReference<ScheduledExecutorService> executor = Atomics.newReference();
        AbstractScheduledService service =
            new AbstractScheduledService() {
              @Override
              protected void startUp() throws Exception {
                throw new Exception("Failed");
              }
    
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/ModuleMetadataSerializer.java

                }
            }
    
            private void writeCount(int i) throws IOException {
                encoder.writeSmallInt(i);
            }
    
            private void writeString(String str) throws IOException {
                encoder.writeString(str);
            }
    
            private void writeNullableString(String str) throws IOException {
                encoder.writeNullableString(str);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testSuccessful() throws Exception {
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

        }
    
        /**
         * @throws Exception
         */
        public void testIsExist() throws Exception {
            assertEquals("1", true, ResourceUtil.isExist("CLMessages.properties"));
            assertEquals("2", false, ResourceUtil.isExist("hoge"));
        }
    
        /**
         * @throws Exception
         */
        public void testGetExtension() throws Exception {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            assertThat(toSqlDateJdbcEscape(null), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToSqlDate_EmptyString() throws Exception {
            assertThat(toSqlDateJdbcEscape(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToSqlDate_ShortStyle() throws Exception {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        }
      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/message/MessageFormatterTest.java

    public class MessageFormatterTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
        public void tearDown() throws Exception {
            LocaleUtil.setDefault(null);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetMessage() throws Exception {
            final String s = MessageFormatter.getMessage("EMSG0000");
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf_character() throws Exception {
            final char[] array = new char[] { 'a', 'b', 'c' };
            assertThat(ArrayUtil.indexOf(array, 'a'), is(0));
            assertThat(ArrayUtil.indexOf(array, 'd'), is(-1));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveFirst() throws Exception {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    
      private static Runnable runnableThrowing(final RuntimeException e) {
        return new Runnable() {
          @Override
          public void run() {
            throw e;
          }
        };
      }
    
      @SuppressWarnings("serial")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top