Typos
This commit is contained in:
parent
4a30842e10
commit
9df069c862
@ -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);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user