Skip to content

Commit c3774c2

Browse files
committed
style: rename new tests to camelCase for Codacy
1 parent bc177f4 commit c3774c2

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,10 @@ public class CCJSqlParser extends AbstractJSqlParser<CCJSqlParser> {
24592459
return true;
24602460
default:
24612461
return false;
2462+
}
2463+
}
24622464

2465+
/**
24632466
* True when the item after a comma inside a T-SQL/Snowflake ADD list is
24642467
* another column definition or table constraint rather than the start of a
24652468
* new alter action, which the enclosing productions handle.

‎src/test/java/net/sf/jsqlparser/statement/alter/AlterTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testAlterTableAddColumn_ColumnKeyWordImplicit() throws JSQLParserExc
9898
}
9999

100100
@Test
101-
public void testAlterTableAddColumnList_TSql() throws JSQLParserException {
101+
public void testAlterTableAddColumnListTSql() throws JSQLParserException {
102102
// T-SQL and Snowflake let one ADD list several columns without repeating ADD
103103
Alter alter = (Alter) CCJSqlParserUtil.parse(
104104
"ALTER TABLE t ADD a int, b varchar(10) NOT NULL, c int",
@@ -116,7 +116,7 @@ public void testAlterTableAddColumnList_TSql() throws JSQLParserException {
116116
}
117117

118118
@Test
119-
public void testAlterTableAddColumnListWithConstraint_TSql() throws JSQLParserException {
119+
public void testAlterTableAddColumnListWithConstraintTSql() throws JSQLParserException {
120120
// T-SQL mixes column definitions and table constraints in one ADD list
121121
Alter alter = (Alter) CCJSqlParserUtil.parse(
122122
"ALTER TABLE t ADD a int, CONSTRAINT ck CHECK (a > 0)",
@@ -129,7 +129,7 @@ public void testAlterTableAddColumnListWithConstraint_TSql() throws JSQLParserEx
129129
}
130130

131131
@Test
132-
public void testAlterTableAddColumnList_Snowflake() throws JSQLParserException {
132+
public void testAlterTableAddColumnListSnowflake() throws JSQLParserException {
133133
Alter alter = (Alter) CCJSqlParserUtil.parse(
134134
"ALTER TABLE t ADD COLUMN a int, b int",
135135
parser -> parser.withDialect(Dialect.SNOWFLAKE));

0 commit comments

Comments
 (0)