4
package cz.startnet.utils.pgdiff.parsers;
6
import org.hamcrest.core.IsEqual;
7
import org.junit.Assert;
11
* Tests {@link ParserUtils}.
16
public class ParserUtilsTest {
19
* Tests getting of command length if more single quotes and commas are
23
public void getCommandEndSingleQuotes() {
25
ParserUtils.getCommandEnd(
26
"CREATE TABLE user_preferences (exboxes text " +
27
"DEFAULT '''test1'',''test2'',''test3'',''test4'''::text )",
29
Assert.assertThat(result, IsEqual.equalTo(100));