Search in sources :

Example 1 with SetStatement

use of net.sf.jsqlparser.statement.SetStatement in project JSqlParser by JSQLParser.

the class StatementDeParserTest method shouldUseProvidedDeParserWhenDeParsingSetStatement.

@Test
@SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert")
public void shouldUseProvidedDeParserWhenDeParsingSetStatement() {
    String name = "name";
    Expression expression = mock(Expression.class);
    SetStatement setStatement = new SetStatement(name, expression);
    statementDeParser.visit(setStatement);
    then(expression).should().accept(expressionDeParser);
}
Also used : Expression(net.sf.jsqlparser.expression.Expression) SetStatement(net.sf.jsqlparser.statement.SetStatement) Test(org.junit.Test)

Aggregations

Expression (net.sf.jsqlparser.expression.Expression)1 SetStatement (net.sf.jsqlparser.statement.SetStatement)1 Test (org.junit.Test)1