@Test public void shouldMergeMultiplePropFilesTogether() { assertThat(System.getProperty("TestFileA.foo"), is(emptyOrNullString())); assertThat(System.getProperty("TestFileB.foo"), is(emptyOrNullString())); loadPropertiesFiles(new String[]{ "TestFileA.properties", "TestFileB.properties" }); assertThat(System.getProperty("TestFileA.foo"), is("AAA")); assertThat(System.getProperty("TestFileB.foo"), is("BBB")); }
public static void loadPropertiesFiles(final String[] filenamesOrUrls) { for (final String filenameOrUrl : filenamesOrUrls) { loadPropertiesFile(filenameOrUrl); } }
SystemUtil { public static void loadPropertiesFiles(final String[] filenamesOrUrls) { for (final String filenameOrUrl : filenamesOrUrls) { loadPropertiesFile(filenameOrUrl); } } }
SystemUtil { public static void loadPropertiesFiles(final String[] filenamesOrUrls) { for (final String filenameOrUrl : filenamesOrUrls) { loadPropertiesFile(filenameOrUrl); } } private  SystemUtil(); }
SystemUtil { public static void loadPropertiesFiles(final String[] filenamesOrUrls) { for (final String filenameOrUrl : filenamesOrUrls) { loadPropertiesFile(filenameOrUrl); } } private  SystemUtil(); static String osName(); static long getPid(); static boolean isWindows(); static boolean isLinux(); static boolean isDebuggerAttached(); static String tmpDirName(); static String threadDump(); static void loadPropertiesFile(final String filenameOrUrl); static void loadPropertiesFiles(final String[] filenamesOrUrls); static int getSizeAsInt(final String propertyName, final int defaultValue); static long getSizeAsLong(final String propertyName, final long defaultValue); static long parseSize(final String propertyName, final String propertyValue); static long getDurationInNanos(final String propertyName, final long defaultValue); static long parseDuration(final String propertyName, final String propertyValue); }
SystemUtil { public static void loadPropertiesFiles(final String[] filenamesOrUrls) { for (final String filenameOrUrl : filenamesOrUrls) { loadPropertiesFile(filenameOrUrl); } } private  SystemUtil(); static String osName(); static long getPid(); static boolean isWindows(); static boolean isLinux(); static boolean isDebuggerAttached(); static String tmpDirName(); static String threadDump(); static void loadPropertiesFile(final String filenameOrUrl); static void loadPropertiesFiles(final String[] filenamesOrUrls); static int getSizeAsInt(final String propertyName, final int defaultValue); static long getSizeAsLong(final String propertyName, final long defaultValue); static long parseSize(final String propertyName, final String propertyValue); static long getDurationInNanos(final String propertyName, final long defaultValue); static long parseDuration(final String propertyName, final String propertyValue); static final long PID_NOT_FOUND; }