Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for assertFile (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        assertThat(source.read(sourceBuffer, 1024)).isEqualTo(-1)
        assertThat(sourceBuffer.size).isEqualTo(0)
        source.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_CLEAN, 13L, metadata.size, "abcdefghijklm", metadata)
      }
    
      @Test
      fun multipleSources() {
        val upstream = Buffer()
        upstream.writeUtf8("abcdefghijklm")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonInitialCommunicationFailureIntegrationSpec.groovy

            // and the client will just throw the registry away and replace it with an empty one
            daemon.assertIdle()
            daemon.kill()
    
            and:
            //starting some service on the daemon port
            poll(60) {
                server.tryStart(daemon.port)
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 07:46:29 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/ClientShutdownCrossVersionSpec.groovy

            }
            toolingApi.daemons.daemon.assertIdle()
            toolingApi.daemons.daemon.kill()
    
            when:
            toolingApi.close()
    
            then:
            noExceptionThrown()
        }
    
        def "shutdown ignores daemons that were not started by client"() {
            given:
            daemonExecutor().run()
            toolingApi.daemons.daemon.assertIdle()
    
            withConnection { connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonAuthenticationIntegrationSpec.groovy

            and:
            // daemon is still running
            daemon.assertIdle()
        }
    
        def "daemon discards stop request that does not contain correct authentication token"() {
            given:
            buildSucceeds()
            def daemon = daemons.daemon
            daemon.assertIdle()
    
            when:
            daemon.changeTokenVisibleToClient()
            stopDaemonsNow()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerDaemonIntegrationTest.groovy

        }
    
        def "daemon process dedicated to test execution is reused if one already exists"() {
            when:
            runner().build()
    
            then:
            def pid = testKitDaemons().daemon.with {
                assertIdle()
                context.pid
            }
    
            when:
            runner().build()
    
            then:
            testKitDaemons().daemon.context.pid == pid
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/groovy/org/gradle/vfs/FileSystemWatchingSoakTest.groovy

            succeeds("assemble")
            def daemon = daemons.daemon
            def retainedFilesInLastBuild = vfsLogs.retainedFilesInCurrentBuild
            then:
            daemon.assertIdle()
    
            expect:
            long endOfDaemonLog = daemon.logLineCount
            numberOfRuns.times { iteration ->
                // when:
                println("Running iteration ${iteration + 1}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

      @Override
      public void testPut() {
        try {
          table.put("foo", 1, 'a');
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        }
        assertSize(0);
      }
    
      @Override
      public void testPutAllTable() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Table<String, Integer, Character> other = HashBasedTable.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 16:54:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertSize(3);
      }
    
      public void testEquals() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        // We know that we have only added non-null Characters.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 16:54:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

        def setup() {
            server.start()
        }
    
        def "idle daemon is reused in preference to starting a new daemon"() {
            given:
            executer.run()
            daemons.daemon.assertIdle()
    
            when:
            5.times {
                executer.run()
            }
    
            then:
            daemons.daemons.size() == 1
        }
    
        @Issue("https://github.com/gradle/gradle/issues/17345")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonFixture.java

         */
        DaemonFixture stops();
    
        /**
         * Asserts that this daemon is currently idle.
         */
        void assertIdle();
    
        /**
         * Asserts that this daemon is currently busy.
         */
        void assertBusy();
    
        /**
         * Asserts that this daemon is in a canceled state.
         */
        void assertCanceled();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top