File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
api/all/src/test/java/io/opentelemetry/api/logs Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -220,13 +220,13 @@ void valueByteAsString() {
220220 @ MethodSource ("convertArgs" )
221221 void convert (Object object , Value <?> expected ) {
222222 Value <?> converted = Value .convert (object );
223- if (Objects .requireNonNull (expected .getType ()) == ValueType .DOUBLE ) {
224- assertThat (converted .getType ()).isEqualTo (ValueType .DOUBLE );
225- assertThat ((Double ) converted .getValue ())
226- .isEqualTo ((Double ) expected .getValue (), Offset .offset (.001 ));
227- } else {
228- assertThat (converted ).isEqualTo (expected );
229- }
223+ if (Objects .requireNonNull (expected .getType ()) == ValueType .DOUBLE ) {
224+ assertThat (converted .getType ()).isEqualTo (ValueType .DOUBLE );
225+ assertThat ((Double ) converted .getValue ())
226+ .isEqualTo ((Double ) expected .getValue (), Offset .offset (.001 ));
227+ } else {
228+ assertThat (converted ).isEqualTo (expected );
229+ }
230230 }
231231
232232 @ SuppressWarnings ("cast" )
You can’t perform that action at this time.
0 commit comments