Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 2,560 for void (0.01 seconds)

  1. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

    import okhttp3.Response;
    
    public class CancelCall {
      private final ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
            .build();
    
        final long startNanos = System.nanoTime();
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

        @Test
        void testThatLocalRepositoryWithSpacesIsProperlyHandled() throws Exception {
            File basedir = new File("target/spacy path").getAbsoluteFile();
            ArtifactRepository repo = repositorySystem.createLocalRepository(basedir);
            assertEquals(basedir, new File(repo.getBasedir()));
        }
    
        @Test
        void testAuthenticationHandling() {
            Server server = new Server();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedComponentConfigurator.java

    public class EnhancedComponentConfigurator extends BasicComponentConfigurator {
    
        public EnhancedComponentConfigurator() {
            converterLookup = new EnhancedConverterLookup();
        }
    
        @Override
        public void configureComponent(
                final Object component,
                final PlexusConfiguration configuration,
                final ExpressionEvaluator evaluator,
                final ClassRealm realm,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    /**
     */
    class LifecyclePhaseTest {
        @Test
        void testToString() {
            LifecyclePhase phase = new LifecyclePhase();
            assertEquals("", phase.toString());
    
            LifecycleMojo mojo1 = new LifecycleMojo();
            mojo1.setGoal("jar:jar");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/project/ConnectedResource.java

            this.scope = scope;
            this.project = project;
        }
    
        @Override
        public void addInclude(String include) {
            // Update the underlying Resource model
            super.addInclude(include);
    
            // Update the project's SourceRoots
            updateProjectSourceRoot();
        }
    
        @Override
        public void removeInclude(String include) {
            // Update the underlying Resource model
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableClassToInstanceMapTest.java

        assertSame(map, ImmutableClassToInstanceMap.copyOf(map));
      }
    
      public void testOf_zero() {
        assertTrue(ImmutableClassToInstanceMap.of().isEmpty());
      }
    
      public void testOf_one() {
        ImmutableClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.of(int.class, 1);
        assertEquals(1, map.size());
      }
    
      public void testCopyOf_map_valid() {
        Map<Class<? extends Number>, Number> in = new HashMap<>();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

                    return null;
                }
            };
        }
    
        @Test
        void testGetModel() {
            ToolchainModel model = new ToolchainModel();
            DefaultToolchain toolchain = newDefaultToolchain(model);
            assertEquals(model, toolchain.getModel());
        }
    
        @Test
        void testGetType() {
            ToolchainModel model = new ToolchainModel();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 11 12:33:57 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckPositive_maxLong() {
        MathPreconditions.checkPositive("long", Long.MAX_VALUE);
      }
    
      public void testCheckPositive_minLong() {
        assertThrows(
            IllegalArgumentException.class,
            () -> MathPreconditions.checkPositive("long", Long.MIN_VALUE));
      }
    
      public void testCheckPositive_positiveLong() {
        MathPreconditions.checkPositive("long", 1);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      @Override
      public void testNullPointerInstance() {}
    
      // put() and putAll() aren't supported.
      @Override
      public void testPut() {
        assertThrows(UnsupportedOperationException.class, () -> table.put("foo", 1, 'a'));
        assertSize(0);
      }
    
      @Override
      public void testPutAllTable() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

        int cacheSize = 10 * 1024 * 1024; // 10 MiB
        Cache cache = new Cache(cacheDirectory, cacheSize);
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
        String response1Body;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 2.4K bytes
    - Click Count (0)
Back to Top