|
| 1 | +/* |
| 2 | + * Copyright (C) 2014 JSQLParser. |
| 3 | + * |
| 4 | + * This library is free software; you can redistribute it and/or |
| 5 | + * modify it under the terms of the GNU Lesser General Public |
| 6 | + * License as published by the Free Software Foundation; either |
| 7 | + * version 2.1 of the License, or (at your option) any later version. |
| 8 | + * |
| 9 | + * This library is distributed in the hope that it will be useful, |
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | + * Lesser General Public License for more details. |
| 13 | + * |
| 14 | + * You should have received a copy of the GNU Lesser General Public |
| 15 | + * License along with this library; if not, write to the Free Software |
| 16 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 17 | + * MA 02110-1301 USA |
| 18 | + */ |
| 19 | + |
| 20 | +package net.sf.jsqlparser.statement.execute; |
| 21 | + |
| 22 | +import net.sf.jsqlparser.JSQLParserException; |
| 23 | +import net.sf.jsqlparser.statement.StatementVisitor; |
| 24 | +import org.junit.After; |
| 25 | +import org.junit.AfterClass; |
| 26 | +import org.junit.Before; |
| 27 | +import org.junit.BeforeClass; |
| 28 | +import org.junit.Test; |
| 29 | +import static org.junit.Assert.*; |
| 30 | +import static net.sf.jsqlparser.test.TestUtils.*; |
| 31 | + |
| 32 | +/** |
| 33 | + * |
| 34 | + * @author toben |
| 35 | + */ |
| 36 | +public class ExecuteTest { |
| 37 | + |
| 38 | + public ExecuteTest() { |
| 39 | + } |
| 40 | + |
| 41 | + @BeforeClass |
| 42 | + public static void setUpClass() { |
| 43 | + } |
| 44 | + |
| 45 | + @AfterClass |
| 46 | + public static void tearDownClass() { |
| 47 | + } |
| 48 | + |
| 49 | + @Before |
| 50 | + public void setUp() { |
| 51 | + } |
| 52 | + |
| 53 | + @After |
| 54 | + public void tearDown() { |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Test of accept method, of class Execute. |
| 59 | + */ |
| 60 | + @Test |
| 61 | + public void testAccept() throws JSQLParserException { |
| 62 | + assertSqlCanBeParsedAndDeparsed("EXEC myproc 'a', 2, 'b'"); |
| 63 | + } |
| 64 | +} |
0 commit comments