Skip to content
Permalink
Browse files
  • Loading branch information
cigaly committed Aug 25, 2021
1 parent 674624c commit eeae97a2141dbe1bec8eaab4adfc5338ee2cb38c
Showing 2 changed files with 9 additions and 1 deletion.
@@ -103,7 +103,7 @@ public char getDelimiter()
@Override
public Object escapeList(final List<?> values, final ValueTransformer transformer)
{
final Object[] escapedValues = new String[values.size()];
final Object[] escapedValues = new Object[values.size()];
int idx = 0;
for (final Object v : values)
{
@@ -110,6 +110,14 @@ public void testEscapeList()
handler.escapeList(data, trans));
}

@Test
public void testEscapeIntegerList()
{
final ValueTransformer trans = ListDelimiterHandler.NOOP_TRANSFORMER;
final List<Integer> data = Arrays.asList(1, 2, 3, 4);
assertEquals("1,2,3,4", handler.escapeList(data, trans));
}

/**
* Helper methods for testing a split operation. A split is executed with
* the passed in parameters. Then the results are compared to the expected

0 comments on commit eeae97a

Please sign in to comment.