This commit is contained in:
Alex Golub 2022-04-21 11:27:51 +03:00
parent 4a30842e10
commit 9df069c862

View File

@ -70,7 +70,7 @@ class Junit5AssertionsUnitTest {
} }
@Test @Test
void whenAssertingSameObject_thenSuccessfull() { void whenAssertingSameObject_thenSuccessful() {
String language = "Java"; String language = "Java";
Optional<String> optional = Optional.of(language); Optional<String> optional = Optional.of(language);
@ -115,7 +115,7 @@ class Junit5AssertionsUnitTest {
assertTimeout( assertTimeout(
ofSeconds(2), ofSeconds(2),
() -> { () -> {
// code that requires less then 2 minutes to execute // code that requires less than 2 minutes to execute
Thread.sleep(1000); Thread.sleep(1000);
} }
); );
@ -126,7 +126,7 @@ class Junit5AssertionsUnitTest {
assertTimeoutPreemptively( assertTimeoutPreemptively(
ofSeconds(2), ofSeconds(2),
() -> { () -> {
// code that requires less then 2 minutes to execute // code that requires less than 2 minutes to execute
Thread.sleep(1000); Thread.sleep(1000);
} }
); );