File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
ibm-mq-metrics/src/test/java/io/opentelemetry/ibm/mq/opentelemetry Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,11 @@ class ConfigWrapperTest {
1818 String file ;
1919
2020 @ BeforeEach
21- @ SuppressWarnings ("SystemOut" )
2221 void setUp () {
2322 file = ConfigWrapperTest .class .getResource ("/conf/config.yml" ).getFile ();
2423 // Windows resources can contain a colon, which can't be mapped to a Path cleanly
25- if (file .contains (":" )) {
26- System .err .println ("resource => " + ConfigWrapperTest .class .getResource ("/conf/config.yml" ));
27- System .err .println ("config file => " + file );
28- String file2 = file .replaceFirst ("^/([A-Z]:)/" , "$1/" );
29- System .err .println ("file2 => " + file2 );
30- String userDir = System .getProperty ("user.dir" );
31- System .err .println ("user.dir => " + userDir );
32- file = file2 ;
33- }
24+ // They look like /D:/a/path/to/whatever
25+ file = file .replaceFirst ("^/([A-Z]:)/" , "$1/" );
3426 }
3527
3628 @ Test
You can’t perform that action at this time.
0 commit comments