Skip to content

Commit ea46e8d

Browse files
committed
reformat again
1 parent aecf5ff commit ea46e8d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

jmx-scraper/src/test/java/io/opentelemetry/contrib/jmxscraper/JmxScraperTest.java

+4-2
Original file line numberDiff line numberDiff 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", "-");

jmx-scraper/src/test/java/io/opentelemetry/contrib/jmxscraper/config/JmxScraperConfigFactoryTest.java

+1-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)