File tree 2 files changed +5
-4
lines changed
jmx-scraper/src/test/java/io/opentelemetry/contrib/jmxscraper
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ void shouldThrowExceptionWhenTooManyCommandLineArgsProvided() {
46
46
void shouldCreateConfig_propertiesLoadedFromFile ()
47
47
throws ConfigurationException , ArgumentsParsingException {
48
48
// Given
49
- String filePath = ClassLoader .getSystemClassLoader ().getResource ("validConfig.properties" ).getPath ();
49
+ String filePath =
50
+ ClassLoader .getSystemClassLoader ().getResource ("validConfig.properties" ).getPath ();
50
51
List <String > args = Arrays .asList ("-config" , filePath );
51
52
JmxScraperConfigFactory configFactory = new JmxScraperConfigFactory ();
52
53
@@ -61,7 +62,8 @@ void shouldCreateConfig_propertiesLoadedFromFile()
61
62
void shouldCreateConfig_propertiesLoadedFromStdIn ()
62
63
throws ConfigurationException , ArgumentsParsingException , IOException {
63
64
InputStream originalIn = System .in ;
64
- try (InputStream stream = ClassLoader .getSystemClassLoader ().getResourceAsStream ("validConfig.properties" )) {
65
+ try (InputStream stream =
66
+ ClassLoader .getSystemClassLoader ().getResourceAsStream ("validConfig.properties" )) {
65
67
// Given
66
68
System .setIn (stream );
67
69
List <String > args = Arrays .asList ("-config" , "-" );
Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ void shouldFailValidation_missingConfigPathAndTargetSystem() {
147
147
// When and Then
148
148
assertThatThrownBy (() -> configFactory .createConfig (properties ))
149
149
.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." );
152
151
}
153
152
154
153
@ Test
You can’t perform that action at this time.
0 commit comments