BAEL-1070 CharSequence vs String in Java (Test case fixed) (#2500)

* 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!

* Corrected test case.
This commit is contained in:
ahmetcetin39 2017-08-25 15:12:21 +03:00 committed by Grzegorz Piwowarek
parent c31fc8d662
commit c12ba8618e
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public class CharSequenceVsStringUnitTest {
CharSequence charSequence1 = "baeldung_1";
CharSequence charSequence2 = "baeldung_2";
assertTrue(charSequence1.toString().compareTo(charSequence2.toString()) > 0);
assertTrue(charSequence1.toString().compareTo(charSequence2.toString()) < 0);
}
@Test