Ignore:
Timestamp:
01/28/20 10:19:55 (5 years ago)
Author:
bart
Message:

Update 28 jan 2020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/test/java/geniusweb/profilesserver/AutoUpdatingProfilesFactoryTest.java

    r3 r8  
    4444 */
    4545public class AutoUpdatingProfilesFactoryTest {
     46
    4647        private static final String JOBS = "jobs";
    4748        private static final String JOB1 = "jobs/jobs1";
     
    242243        }
    243244
     245        @Test
     246        public void testEnvVariable() throws IOException {
     247                Path dir = Files.createTempDirectory("tempdir");
     248                // This test does not work because we can not set the env variable.
     249                // new EnvironmentVariables().set("PROFILES_ROOTDIR", "1");
     250                System.setProperty("PROFILES_ROOTDIR", "1");// dir.toAbsolutePath().toString());
     251                System.out.println(System.getenv("PROFILES_ROOTDIR"));
     252        }
     253
    244254        /**
    245255         * Copy files and all sub-files.
Note: See TracChangeset for help on using the changeset viewer.