Skip to content

Commit c31fc8d

Browse files
ahmetcetin39pivovarit
authored andcommitted
BAEL-1070 - CharSequence vs String in Java (Fixed Test Method) (eugenp#2499)
* Different types of bean injection classes are added. * JUnit Tests for Zoo and Forest Class * Necessary dependency is added to pom.xml * Updated pom.xml Carried dependency to into another dependency tag. * dependency added. * dependency is carried. * dependency is added. * A test dependency is added. * dependency is changed. * Dependency is changed. * Test classes are changed and moved. * test correction * correction * String vs CharSequence * unnecesseray files are deleted. * correction * Assert statemenet is changed from java to junit * Assert is changed. * changed the name of the test methods. * Chaned assertEquals() to assertNotEquals(). We expected the result to be not equal!
1 parent 9b563d8 commit c31fc8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core-java/src/test/java/com/baeldung/string/CharSequenceVsStringUnitTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void givenString_whenAppended_thenUnmodified() {
3131
test += "b";
3232
int secondAddressOfTest = System.identityHashCode(test);
3333

34-
assertEquals(firstAddressOfTest, secondAddressOfTest);
34+
assertNotEquals(firstAddressOfTest, secondAddressOfTest);
3535
}
3636

3737
@Test

0 commit comments

Comments
 (0)