Skip to content

Commit 7a3c134

Browse files
committed
spotless
1 parent e5d8ea1 commit 7a3c134

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

smoke-tests/apps/Logback/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/LogbackTest.java

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,15 @@ void test() throws Exception {
9898
.hasProperty("MethodName", "doGet")
9999
.hasProperty("LineNumber", "28")
100100
.hasPropertyCount(7))
101-
.hasMessageSatisying(
102-
message -> message.hasProperty("Marker", "aMarker")));
101+
.hasMessageSatisying(message -> message.hasProperty("Marker", "aMarker")));
103102
} else {
104103
testing.waitAndAssertTrace(
105104
trace ->
106105
trace
107106
.hasMessageSatisying(
108-
message ->
109-
message
110-
.hasMessage("This is logback warn.")
111-
.hasPropertyCount(4))
107+
message -> message.hasMessage("This is logback warn.").hasPropertyCount(4))
112108
.hasMessageSatisying(
113-
message ->
114-
message
115-
.hasMessage("This is logback error.")
116-
.hasPropertyCount(3)));
109+
message -> message.hasMessage("This is logback error.").hasPropertyCount(3)));
117110
}
118111
}
119112

@@ -162,9 +155,7 @@ void testWithException() throws Exception {
162155
.hasPropertyCount(9)));
163156
} else {
164157
testing.waitAndAssertTrace(
165-
trace ->
166-
trace.hasExceptionSatisying(
167-
exception -> exception.hasPropertyCount(5)));
158+
trace -> trace.hasExceptionSatisying(exception -> exception.hasPropertyCount(5)));
168159
}
169160

170161
// Verify that no EventData items are present

smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/ExceptionAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ private ExceptionData getExceptionData() {
9999
Data<?> data = (Data<?>) actual.getData();
100100
return (ExceptionData) data.getBaseData();
101101
}
102-
}
102+
}

smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest/MessageAssert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ private MessageData getMessageData() {
9292
Data<?> data = (Data<?>) actual.getData();
9393
return (MessageData) data.getBaseData();
9494
}
95-
}
95+
}

0 commit comments

Comments
 (0)