mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 05:30:43 +00:00
add /apis.json and (re)add .../versions.json paths
This commit is contained in:
@ -22,6 +22,8 @@
|
||||
package com.kingsrook.qqq.backend.core.utils.collections;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@ -69,4 +71,22 @@ class ListBuilderTest
|
||||
///////////////////////////////////////
|
||||
list.add(4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
**
|
||||
*******************************************************************************/
|
||||
@Test
|
||||
void testBuilderMode()
|
||||
{
|
||||
List<String> builtList = new ListBuilder<String>().with("A").with("B").build();
|
||||
assertEquals(List.of("A", "B"), builtList);
|
||||
assertEquals(ArrayList.class, builtList.getClass());
|
||||
|
||||
List<String> builtLinkedList = new ListBuilder<String>(new LinkedList<>()).with("A").with("B").build();
|
||||
assertEquals(List.of("A", "B"), builtLinkedList);
|
||||
assertEquals(LinkedList.class, builtLinkedList.getClass());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user