use of aQute.libg.qtokens.QuotedTokenizer in project bnd by bndtools.
the class TestQuotedTokenizer method testWhiteSpace.
public static void testWhiteSpace() {
String[] s = new QuotedTokenizer(" 1.jar, 2.jar ", ",").getTokens();
assertEquals("Length", 2, s.length);
assertEquals("1.jar", s[0]);
assertEquals("2.jar", s[1]);
}
use of aQute.libg.qtokens.QuotedTokenizer in project bnd by bndtools.
the class TestQuotedTokenizer method testEscapedQuote.
public static void testEscapedQuote() {
QuotedTokenizer qt = new QuotedTokenizer("'\\'y'", ",");
String s = qt.nextToken();
assertEquals("'y", s);
}
Aggregations