Skip to content

Commit 83a157f

Browse files
committed
fix: formatting
1 parent 7ca9e77 commit 83a157f

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

src/test/java/net/sf/jsqlparser/expression/operators/relational/LikeExpressionTest.java

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
*/
1010
package net.sf.jsqlparser.expression.operators.relational;
1111

12+
import static org.junit.jupiter.api.Assertions.*;
13+
1214
import net.sf.jsqlparser.JSQLParserException;
1315
import net.sf.jsqlparser.expression.Expression;
1416
import net.sf.jsqlparser.expression.StringValue;
1517
import net.sf.jsqlparser.parser.CCJSqlParserUtil;
1618
import net.sf.jsqlparser.test.TestUtils;
1719
import org.junit.jupiter.api.Test;
1820

19-
import static org.junit.jupiter.api.Assertions.*;
20-
2121
/**
2222
*
2323
* @author Tobias Warneke (t.warneke@gmx.net)
@@ -61,31 +61,41 @@ void testDuckDBSimuilarTo() throws JSQLParserException {
6161

6262
@Test
6363
public void testMatchAny() throws JSQLParserException {
64-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v MATCH_ANY 'keyword1 keyword2'", true);
65-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v NOT MATCH_ANY 'keyword1 keyword2'", true);
64+
TestUtils.assertSqlCanBeParsedAndDeparsed(
65+
"select * from dual where v MATCH_ANY 'keyword1 keyword2'", true);
66+
TestUtils.assertSqlCanBeParsedAndDeparsed(
67+
"select * from dual where v NOT MATCH_ANY 'keyword1 keyword2'", true);
6668
}
6769

6870
@Test
6971
public void testMatchAll() throws JSQLParserException {
70-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v MATCH_ALL 'keyword1 keyword2'", true);
71-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v NOT MATCH_ALL 'keyword1 keyword2'", true);
72+
TestUtils.assertSqlCanBeParsedAndDeparsed(
73+
"select * from dual where v MATCH_ALL 'keyword1 keyword2'", true);
74+
TestUtils.assertSqlCanBeParsedAndDeparsed(
75+
"select * from dual where v NOT MATCH_ALL 'keyword1 keyword2'", true);
7276
}
7377

7478
@Test
7579
public void testMatchPhrase() throws JSQLParserException {
76-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v MATCH_PHRASE 'keyword1 keyword2'", true);
77-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v NOT MATCH_PHRASE 'keyword1 keyword2'", true);
80+
TestUtils.assertSqlCanBeParsedAndDeparsed(
81+
"select * from dual where v MATCH_PHRASE 'keyword1 keyword2'", true);
82+
TestUtils.assertSqlCanBeParsedAndDeparsed(
83+
"select * from dual where v NOT MATCH_PHRASE 'keyword1 keyword2'", true);
7884
}
7985

8086
@Test
8187
public void testMatchPhrasePrefix() throws JSQLParserException {
82-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v MATCH_PHRASE_PREFIX 'keyword1 keyword2'", true);
83-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v NOT MATCH_PHRASE_PREFIX 'keyword1 keyword2'", true);
88+
TestUtils.assertSqlCanBeParsedAndDeparsed(
89+
"select * from dual where v MATCH_PHRASE_PREFIX 'keyword1 keyword2'", true);
90+
TestUtils.assertSqlCanBeParsedAndDeparsed(
91+
"select * from dual where v NOT MATCH_PHRASE_PREFIX 'keyword1 keyword2'", true);
8492
}
8593

8694
@Test
8795
public void testMatchRegexp() throws JSQLParserException {
88-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v MATCH_REGEXP 'keyword1 keyword2'", true);
89-
TestUtils.assertSqlCanBeParsedAndDeparsed("select * from dual where v NOT MATCH_REGEXP 'keyword1 keyword2'", true);
96+
TestUtils.assertSqlCanBeParsedAndDeparsed(
97+
"select * from dual where v MATCH_REGEXP 'keyword1 keyword2'", true);
98+
TestUtils.assertSqlCanBeParsedAndDeparsed(
99+
"select * from dual where v NOT MATCH_REGEXP 'keyword1 keyword2'", true);
90100
}
91101
}

0 commit comments

Comments
 (0)