Skip to content

Commit be7274d

Browse files
committed
tidy assertion strings
1 parent 70f207a commit be7274d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/datastax/astra/migrate/CqlHelperTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public void smokeTest() {
4242
propertyHelper.initializeSparkConf(sparkConf);
4343
cqlHelper.initialize();
4444

45-
String originSelect = "SELECT key,val FROM origin.tab1 WHERE TOKEN(key) >= ? AND TOKEN(key) <= ? ALLOW FILTERING".replaceAll("\\s+"," ");
46-
String targetInsert = "INSERT INTO target.tab1 (key,val) VALUES (?,?)".replaceAll("\\s+"," ");
47-
String targetSelect = "SELECT key,val FROM target.tab1 WHERE key=?".replaceAll("\\s+"," ");
45+
String originSelect = "SELECT key,val FROM origin.tab1 WHERE TOKEN(key) >= ? AND TOKEN(key) <= ? ALLOW FILTERING";
46+
String targetInsert = "INSERT INTO target.tab1 (key,val) VALUES (?,?)";
47+
String targetSelect = "SELECT key,val FROM target.tab1 WHERE key=?";
4848

4949
assertAll(
5050
() -> assertEquals(originSelect, cqlHelper.getCql(CqlHelper.CQL.ORIGIN_SELECT).replaceAll("\\s+"," ")),

0 commit comments

Comments
 (0)