[cast-2-str-vs-str-valueOf] fix typo
This commit is contained in:
parent
c0165457b0
commit
bca0e467c9
|
@ -13,13 +13,13 @@ public class CastingToStringVsStringValueOfUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void whenCastingStringAndCallingValueOf_thenCorrect() {
|
void whenCastingStringAndCallingValueOf_thenCorrect() {
|
||||||
Object obj = "Baedlung is awesome!";
|
Object obj = "Baeldung is awesome!";
|
||||||
|
|
||||||
String castResult = (String) obj;
|
String castResult = (String) obj;
|
||||||
assertEquals("Baedlung is awesome!", castResult);
|
assertEquals("Baeldung is awesome!", castResult);
|
||||||
|
|
||||||
String valueOfResult = String.valueOf(obj);
|
String valueOfResult = String.valueOf(obj);
|
||||||
assertEquals("Baedlung is awesome!", valueOfResult);
|
assertEquals("Baeldung is awesome!", valueOfResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue