Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 428 for Temp (0.12 sec)

  1. guava-testlib/src/com/google/common/testing/ClusterException.java

            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
      /** See {@link #create(Collection)}. */
      static RuntimeException create(Throwable... exceptions) {
        ArrayList<Throwable> temp = new ArrayList<>(Arrays.asList(exceptions));
        return create(temp);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

          assertThrows(IllegalStateException.class, Files::createTempDir);
          return;
        }
        File temp = Files.createTempDir();
        try {
          assertThat(temp.exists()).isTrue();
          assertThat(temp.isDirectory()).isTrue();
          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/maven/MavenProjectsCreatorSpec.groovy

            given:
            Directory target = Mock() {
                _ * getAsFile() >> temp.testDirectory
                _ * file(_) >> { String path ->
                    Mock(RegularFile) {
                        _ * getAsFile() >> temp.file(path)
                    }
                }
            }
    
            def parentPom = temp.file("pom.xml")
            parentPom.text = """\
    <project>
      <modelVersion>4.0.0</modelVersion>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ClusterException.java

            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
      /** See {@link #create(Collection)}. */
      static RuntimeException create(Throwable... exceptions) {
        ArrayList<Throwable> temp = new ArrayList<>(Arrays.asList(exceptions));
        return create(temp);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStoreTest.groovy

    import org.junit.Rule
    import spock.lang.Specification
    
    class DefaultBinaryStoreTest extends Specification {
    
        @Rule TestNameTestDirectoryProvider temp = new TestNameTestDirectoryProvider(getClass())
    
        def "stores binary data"() {
            def store = new DefaultBinaryStore(temp.file("foo.bin"))
    
            when:
            store.write({ it.writeInt(10) } as BinaryStore.WriteAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/main/java/org/gradle/api/internal/tasks/AntGroovydoc.java

        private String getGroovyVersion(List<File> combinedClasspath) {
            File temp;
            final String tempPath;
            try {
                temp = temporaryFileProvider.createTemporaryFile("temp", "");
                String p = temp.getCanonicalPath();
                tempPath = File.separatorChar == '/' ? p : p.replace(File.separatorChar, '/');
                temp.deleteOnExit();
            } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/ResolutionResultsStoreFactory.java

         * @param maxSize - indicates the approx. maximum size of the binary store that will trigger rolling of the file
         */
        ResolutionResultsStoreFactory(TemporaryFileProvider temp, int maxSize) {
            this.temp = temp;
            this.maxSize = maxSize;
        }
    
        private final Map<String, DefaultBinaryStore> stores = new HashMap<>();
        private final CompositeStoppable cleanUpLater = new CompositeStoppable();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

          assertThrows(IllegalStateException.class, Files::createTempDir);
          return;
        }
        File temp = Files.createTempDir();
        try {
          assertThat(temp.exists()).isTrue();
          assertThat(temp.isDirectory()).isTrue();
          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. testing/internal-testing/src/test/groovy/org/gradle/util/TempDirIsUniquePerTestSpec.groovy

        @Rule TestNameTestDirectoryProvider temp = new TestNameTestDirectoryProvider(getClass())
        static tests = new HashSet()
        static tmpDirs = new HashSet()
    
        def setup() {
            //it's very important we try to access the test dir in the setup()
            temp.testDirectory
        }
    
        def "testOne"() {
            when:
            tests << "testOne"
            tmpDirs << temp.testDirectory
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/file-temp/src/test/groovy/org/gradle/api/internal/file/temp/TempFilesTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.api.internal.file.temp
    
    import spock.lang.Specification
    import spock.lang.TempDir
    
    class TempFilesTest extends Specification {
    
        @TempDir
        File tempDir;
    
        def "can generate temp files for short prefixes"() {
            when:
            def file = TempFiles.createTempFile("ok", "", tempDir)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:50:17 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top