Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Refactor DeviceMeasurementValidJsonTest
Browse files Browse the repository at this point in the history
Simplified the test case in DeviceMeasurementValidJsonTest. Instead of checking for specific values, the test now simply verifies that no exception is thrown when the JSON is parsed. This makes the test less rigid and more focused on the essential operation.
  • Loading branch information
saschadoemer committed Mar 3, 2024
1 parent d7d1dfb commit ba30375
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class DeviceMeasurementValidJsonTest {

@Test
void givenDeviceMeasurement_WhenCreatingJson_ThenTheResultShouldBeValidJson() throws Exception {
void givenDeviceMeasurement_WhenCreatingJson_ThenTheResultShouldBeValidJson() {
var deviceMeasurementAsJson = new DeviceMeasurement(
UUID.randomUUID().toString(),
"SENTEK_SENSOR",
Expand Down

0 comments on commit ba30375

Please sign in to comment.