Search Options

Results per page
Sort
Preferred Languages
Advance

Results 951 - 960 of 2,652 for throwIf (0.07 sec)

  1. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        return suite;
      }
    
      public void testToString() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(I18N, Resources.toString(resource, UTF_8));
        assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N);
      }
    
      public void testToByteArray() throws IOException {
        URL resource = getClass().getResource("testdata/i18n.txt");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestNull(forPredicate(Predicates.equalTo('c')));
      }
    
      private void doTestEmpty(CharMatcher matcher) throws Exception {
        reallyTestEmpty(matcher);
        reallyTestEmpty(matcher.negate());
        reallyTestEmpty(matcher.precomputed());
      }
    
      private void reallyTestEmpty(CharMatcher matcher) throws Exception {
        assertEquals(-1, matcher.indexIn(""));
        assertEquals(-1, matcher.indexIn("", 0));
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbTreeHandle.java

         */
        @Override
        void close () throws CIFSException;
    
    
        /**
         * @return the tree is connected
         */
        boolean isConnected ();
    
    
        /**
         * @return server timezone offset
         * @throws CIFSException
         */
        long getServerTimeZoneOffset () throws CIFSException;
    
    
        /**
         * @return server reported domain name
         * @throws CIFSException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt

     */
    open class DelegatingServerSocketFactory(private val delegate: ServerSocketFactory) : ServerSocketFactory() {
      @Throws(IOException::class)
      override fun createServerSocket(): ServerSocket {
        val serverSocket = delegate.createServerSocket()
        return configureServerSocket(serverSocket)
      }
    
      @Throws(IOException::class)
      override fun createServerSocket(port: Int): ServerSocket {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/Prompter.java

         * @throws PrompterException if an exception occurs
         */
        @Nonnull
        String promptForPassword(@Nullable String message) throws PrompterException;
    
        /**
         * Displays a message to the user.
         *
         * @param message the message to display
         * @throws PrompterException if an exception occurs
         */
        void showMessage(@Nullable String message) throws PrompterException;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Nov 17 15:52:15 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

            header = new byte[4];
            tmp = new byte[TMP_BUFFER_SIZE];
        }
    
        public synchronized int read() throws IOException {
            if( read( tmp, 0, 1 ) < 0 ) {
                return -1;
            }
            return tmp[0] & 0xFF;
        }
        public synchronized int read( byte[] b ) throws IOException {
            return read( b, 0, b.length );
        }
    
        /* This method will not return until len bytes have been read
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      }
    
      public void testGetCheckedUntimed_runtimeException() throws TwoArgConstructorException {
        RuntimeException expected =
            assertThrows(
                RuntimeException.class,
                () -> getChecked(RUNTIME_EXCEPTION_FUTURE, TwoArgConstructorException.class));
        assertEquals(RUNTIME_EXCEPTION, expected);
      }
    
      public void testGetCheckedUntimed_error() throws TwoArgConstructorException {
        try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

    import org.codelibs.fess.suggest.request.suggest.SuggestResponse;
    import org.junit.Test;
    
    public class DeferredTest {
        @Test
        public void test_doneBeforeResolve() throws Exception {
            final Deferred<SuggestResponse> deferred = new Deferred<>();
    
            Thread th = new Thread(() -> {
                try {
                    Thread.sleep(1000);
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

        private Model read(String pom) throws Exception {
            String resource = "/poms/validation/" + pom;
            try (InputStream is = getClass().getResourceAsStream(resource)) {
                assertNotNull(is, "missing resource: " + resource);
                return new Model(new MavenStaxReader().read(is));
            }
        }
    
        private SimpleProblemCollector validate(String pom) throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSourceTester.java

      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
      public void testLength() throws IOException {
        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top