Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for TempDir (0.07 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/resident/DefaultResidentMavenInvokerTest.java

        @Override
        protected Parser<MavenInvokerRequest<MavenOptions>> createParser() {
            return new DefaultMavenParser();
        }
    
        @Test
        void defaultFs(@TempDir(cleanup = CleanupMode.ON_SUCCESS) Path tempDir) throws Exception {
            invoke(tempDir, Arrays.asList("clean", "verify"));
        }
    
        @Disabled("Until we move off fully from File")
        @Test
        void jimFs() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. cni/pkg/install/install_test.go

    			// Create temp directory for files
    			tempDir := t.TempDir()
    
    			// Create existing config files if specified in test case
    			for srcFilename, targetFilename := range c.existingConfFiles {
    				if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			cfg := &config.InstallConfig{
    				MountedCNINetDir: tempDir,
    				CNIConfName:      c.cniConfName,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. cni/pkg/install/cniconfig_test.go

    				// Create temp directory for files
    				tempDir := t.TempDir()
    
    				// Create existing config files if specified in test case
    				for srcFilename, targetFilename := range c.existingConfFiles {
    					if err := file.AtomicCopy(filepath.Join("testdata", srcFilename), tempDir, targetFilename); err != nil {
    						t.Fatal(err)
    					}
    				}
    
    				cfg.MountedCNINetDir = tempDir
    
    				var expectedFilepath string
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/IoTestCase.java

       * the tear-down for this test. Subsequent invocations of this method will return the same
       * directory.
       */
      protected final File getTempDir() throws IOException {
        if (tempDir == null) {
          tempDir = createTempDir();
        }
    
        return tempDir;
      }
    
      /**
       * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will
       * be deleted in the tear-down for this test.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

                    docRoot.delete();
                }
            }
        }
    
        protected static File createDocRoot(final int count) {
            try {
                final File tempDir = File.createTempFile("crawlerDocRoot", "");
                tempDir.delete();
                tempDir.mkdirs();
    
                // robots.txt
                StringBuilder buf = new StringBuilder();
                buf.append("User-agent: *").append('\n');
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/MoreFilesTest.java

      }
    
      private Path tempDir;
    
      @Override
      protected void setUp() throws Exception {
        tempDir = Files.createTempDirectory("MoreFilesTest");
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (tempDir != null) {
          // delete tempDir and its contents
          Files.walkFileTree(
              tempDir,
              new SimpleFileVisitor<Path>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  7. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

                    docRoot.delete();
                }
            }
        }
    
        protected static File createDocRoot(final int count) {
            try {
                final File tempDir = File.createTempFile("crawlerDocRoot", "");
                tempDir.delete();
                tempDir.mkdirs();
    
                final StringBuilder buf = new StringBuilder();
                buf.append("User-agent: *").append('\n');
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/forked/DefaultForkedMavenInvokerTest.java

        @Override
        protected Parser<ForkedMavenInvokerRequest> createParser() {
            return new DefaultForkedMavenParser();
        }
    
        @Test
        void defaultFs(@TempDir(cleanup = CleanupMode.ON_SUCCESS) Path tempDir) throws Exception {
            invoke(tempDir, Arrays.asList("clean", "verify"));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManagerTest.groovy

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import spock.lang.Specification
    import spock.lang.Subject
    import spock.lang.TempDir
    
    class AcceptedApiChangesJsonFileManagerTest extends Specification {
    
        @TempDir
        File temporaryFolder
    
        @Subject AcceptedApiChangesJsonFileManager jsonFileManager = new AcceptedApiChangesJsonFileManager()
    
        def jsonFile
    
        def setup() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Aug 17 08:32:56 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/local/DefaultLocalMavenInvokerTest.java

        @Override
        protected Parser<MavenInvokerRequest<MavenOptions>> createParser() {
            return new DefaultMavenParser();
        }
    
        @Test
        void defaultFs(@TempDir(cleanup = CleanupMode.ON_SUCCESS) Path tempDir) throws Exception {
            invoke(tempDir, Arrays.asList("clean", "verify"));
        }
    
        @Disabled("Until we move off fully from File")
        @Test
        void jimFs() throws Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top