Skip to content

Commit

Permalink
update TU
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Dec 2, 2024
1 parent 2a5e157 commit c4e4688
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ public void getTimeZoneShortName() {
@Test
public void getCurrentTimezoneOffset() {
assertNotEquals("", new OperatingSystem(appContext).getCurrentTimezoneOffset());

OperatingSystem operatingSystem = new OperatingSystem(appContext);
String timezoneOffset = operatingSystem.getCurrentTimezoneOffset();

assertNotNull("Timezone offset should not be null", timezoneOffset);
assertNotEquals("Timezone offset should not be empty", "", timezoneOffset);
assertTrue("Timezone offset should match the format [+/-]HHMM", timezoneOffset.matches("[+-]\\d{4}"));
}

@Test
public void getSSHKey() {
assertNotEquals("", new OperatingSystem(appContext).getSSHKey());
}
}
}

0 comments on commit c4e4688

Please sign in to comment.