File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
jmx-scraper/src/test/java/io/opentelemetry/contrib/jmxscraper Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ void shouldThrowExceptionWhenTooManyCommandLineArgsProvided() {
4646 void shouldCreateConfig_propertiesLoadedFromFile ()
4747 throws ConfigurationException , ArgumentsParsingException {
4848 // Given
49- String filePath = ClassLoader .getSystemClassLoader ().getResource ("validConfig.properties" ).getPath ();
49+ String filePath =
50+ ClassLoader .getSystemClassLoader ().getResource ("validConfig.properties" ).getPath ();
5051 List <String > args = Arrays .asList ("-config" , filePath );
5152 JmxScraperConfigFactory configFactory = new JmxScraperConfigFactory ();
5253
@@ -61,7 +62,8 @@ void shouldCreateConfig_propertiesLoadedFromFile()
6162 void shouldCreateConfig_propertiesLoadedFromStdIn ()
6263 throws ConfigurationException , ArgumentsParsingException , IOException {
6364 InputStream originalIn = System .in ;
64- try (InputStream stream = ClassLoader .getSystemClassLoader ().getResourceAsStream ("validConfig.properties" )) {
65+ try (InputStream stream =
66+ ClassLoader .getSystemClassLoader ().getResourceAsStream ("validConfig.properties" )) {
6567 // Given
6668 System .setIn (stream );
6769 List <String > args = Arrays .asList ("-config" , "-" );
Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ void shouldFailValidation_missingConfigPathAndTargetSystem() {
147147 // When and Then
148148 assertThatThrownBy (() -> configFactory .createConfig (properties ))
149149 .isInstanceOf (ConfigurationException .class )
150- .hasMessage (
151- "otel.jmx.custom.scraping.config or otel.jmx.target.system must be specified." );
150+ .hasMessage ("otel.jmx.custom.scraping.config or otel.jmx.target.system must be specified." );
152151 }
153152
154153 @ Test
You can’t perform that action at this time.
0 commit comments