test fix: cll - small cosmetic fix
This commit is contained in:
@@ -36,7 +36,6 @@ public class CustomLinkedListTest {
|
|||||||
@CsvSource({
|
@CsvSource({
|
||||||
"'Ahoj, jak, to, jde', 'to', true",
|
"'Ahoj, jak, to, jde', 'to', true",
|
||||||
"'Ty, jsi, ale, hloupy', 'to', false"
|
"'Ty, jsi, ale, hloupy', 'to', false"
|
||||||
|
|
||||||
})
|
})
|
||||||
void cllContains_shouldReturnCorrectResult(@ConvertWith(StringArrayConverter.class) String[] data, String toContain,
|
void cllContains_shouldReturnCorrectResult(@ConvertWith(StringArrayConverter.class) String[] data, String toContain,
|
||||||
boolean shouldContain) {
|
boolean shouldContain) {
|
||||||
@@ -125,7 +124,7 @@ public class CustomLinkedListTest {
|
|||||||
void cllInsertAfterBefore_shouldInsertItemSuccessfully(String[] initData, String toInsert, String reference,
|
void cllInsertAfterBefore_shouldInsertItemSuccessfully(String[] initData, String toInsert, String reference,
|
||||||
LlItemPosition position) {
|
LlItemPosition position) {
|
||||||
|
|
||||||
CustomLinkedList<String> list = initPopulaterList(initData);
|
CustomLinkedList<String> list = initPopulatedList(initData);
|
||||||
|
|
||||||
switch (position) {
|
switch (position) {
|
||||||
case AFTER:
|
case AFTER:
|
||||||
@@ -145,7 +144,7 @@ public class CustomLinkedListTest {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private CustomLinkedList<String> initPopulaterList(String[] initData) {
|
private CustomLinkedList<String> initPopulatedList(String[] initData) {
|
||||||
CustomLinkedList<String> list = new CustomLinkedListImpl<>();
|
CustomLinkedList<String> list = new CustomLinkedListImpl<>();
|
||||||
Stream.of(initData).forEach(list::add);
|
Stream.of(initData).forEach(list::add);
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
Reference in New Issue
Block a user