diff --git a/src/test/java/net/sf/jsqlparser/expression/operators/arithmetic/ConcatTest.java b/src/test/java/net/sf/jsqlparser/expression/operators/arithmetic/ConcatTest.java index d5464b2c9c..d3989cd294 100644 --- a/src/test/java/net/sf/jsqlparser/expression/operators/arithmetic/ConcatTest.java +++ b/src/test/java/net/sf/jsqlparser/expression/operators/arithmetic/ConcatTest.java @@ -34,6 +34,7 @@ void concatTest() { Assertions.assertEquals("NULL", expression.toString()); } + @Test void addTest() { Expression expression = Addition.add(new LongValue(1), new LongValue(2), new LongValue(3)); Assertions.assertInstanceOf(Addition.class, expression); @@ -48,11 +49,12 @@ void addTest() { Assertions.assertEquals("NULL", expression.toString()); } + @Test void multiplyTest() { Expression expression = Multiplication.multiply(new LongValue(1), new LongValue(2), new LongValue(3)); - Assertions.assertInstanceOf(Addition.class, expression); - Assertions.assertEquals("1 + 2 + 3", expression.toString()); + Assertions.assertInstanceOf(Multiplication.class, expression); + Assertions.assertEquals("1 * 2 * 3", expression.toString()); expression = Multiplication.multiply(new LongValue(1)); Assertions.assertInstanceOf(LongValue.class, expression); diff --git a/src/test/java/net/sf/jsqlparser/util/SelectUtilsTest.java b/src/test/java/net/sf/jsqlparser/util/SelectUtilsTest.java index f0e34605e3..26b01a18a3 100644 --- a/src/test/java/net/sf/jsqlparser/util/SelectUtilsTest.java +++ b/src/test/java/net/sf/jsqlparser/util/SelectUtilsTest.java @@ -113,12 +113,13 @@ public void testTableAliasIssue311() { select.toString()); } + @Test public void testTableAliasIssue311_2() { Table table1 = new Table("mytable1"); table1.setAlias(new Alias("tab1")); Column col = new Column(table1, "col1"); assertEquals("tab1.col1", col.toString()); - assertEquals("mytable.col1", col.getFullyQualifiedName()); + assertEquals("mytable1.col1", col.getFullyQualifiedName()); } }