Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailSuendukov committed Aug 17, 2023
1 parent 689134d commit e1f44b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,13 @@ public void readNotNullDataResidencyRegionTest() throws JSONException {
mockLog.read(mockJsonObject);

assertEquals(dataResidencyRegion, mockLog.getDataResidencyRegion());

// Additional verification to ensure mock interactions
verify(mockJsonObject).has(DATA_RESIDENCY_REGION);
verify(mockJsonObject).optString(DATA_RESIDENCY_REGION, null);
}


@Test
public void writeNotNullDataResidencyRegionTest() throws JSONException {
JSONStringer mockJsonStringer = mock(JSONStringer.class);
Expand Down

0 comments on commit e1f44b5

Please sign in to comment.