public class TextLineParserTest extends Object
TextLineParser.| Modifier and Type | Class and Description |
|---|---|
static class |
TextLineParserTest.CustomBaseParser
A test parser without encoding.
|
static class |
TextLineParserTest.CustomExBaseParser
A test parser with encoding.
|
| Constructor and Description |
|---|
TextLineParserTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testConverterFail()
Tests cases where the converter shall fail.
|
void |
testCreateInstance()
Tests
ParserUtils#createInstance(ClassLoader, String, Class, String). |
void |
testTextLineParser()
Tests basic successful text line parsing with different charsets and separators.
|
private de.iip_ecosphere.platform.connectors.parser.TextLineParser.TextLineParseResult |
testTextLineParser(String[] parts,
String charset,
String separator)
Tests text line parsing with varying parts, charset and separator.
|
public void testTextLineParser()
throws IOException
IOException - shall not occurprivate de.iip_ecosphere.platform.connectors.parser.TextLineParser.TextLineParseResult testTextLineParser(String[] parts, String charset, String separator) throws IOException
parts - the parts to be tested in positional modecharset - the charsetseparator - the separatorIOException - in case that parsing failspublic void testConverterFail()
public void testCreateInstance()
ParserUtils#createInstance(ClassLoader, String, Class, String).Copyright © 2022. All rights reserved.