aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
diff options
context:
space:
mode:
authorJulien Camus <julien.camus@sonarsource.com>2024-12-19 14:14:10 +0100
committersonartech <sonartech@sonarsource.com>2024-12-19 20:03:04 +0000
commit8fe712960e07591f6cc2f8aa2e164a6eb9ad67fa (patch)
tree2dc4a7534b311092542ebacdbd22af13c47b823e /server/sonar-db-migration
parent1b2aa4e56280456d456ef960671423f543dba283 (diff)
downloadsonarqube-8fe712960e07591f6cc2f8aa2e164a6eb9ad67fa.tar.gz
sonarqube-8fe712960e07591f6cc2f8aa2e164a6eb9ad67fa.zip
SONAR-23990 Replace with text block
Diffstat (limited to 'server/sonar-db-migration')
-rw-r--r--server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/sql/DropTableBuilderTest.java50
1 files changed, 25 insertions, 25 deletions
diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/sql/DropTableBuilderTest.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/sql/DropTableBuilderTest.java
index 2d7c4cc52bf..821eec84c34 100644
--- a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/sql/DropTableBuilderTest.java
+++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/sql/DropTableBuilderTest.java
@@ -50,31 +50,31 @@ public class DropTableBuilderTest {
@Test
public void drop_columns_on_oracle() {
assertThat(new DropTableBuilder(new Oracle(), "issues")
- .build()).containsExactly(
- "BEGIN\n" +
- "EXECUTE IMMEDIATE 'DROP SEQUENCE issues_seq';\n" +
- "EXCEPTION\n" +
- "WHEN OTHERS THEN\n" +
- " IF SQLCODE != -2289 THEN\n" +
- " RAISE;\n" +
- " END IF;\n" +
- "END;",
- "BEGIN\n" +
- "EXECUTE IMMEDIATE 'DROP TRIGGER issues_idt';\n" +
- "EXCEPTION\n" +
- "WHEN OTHERS THEN\n" +
- " IF SQLCODE != -4080 THEN\n" +
- " RAISE;\n" +
- " END IF;\n" +
- "END;",
- "BEGIN\n" +
- "EXECUTE IMMEDIATE 'DROP TABLE issues';\n" +
- "EXCEPTION\n" +
- "WHEN OTHERS THEN\n" +
- " IF SQLCODE != -942 THEN\n" +
- " RAISE;\n" +
- " END IF;\n" +
- "END;");
+ .build()).containsExactly("""
+ BEGIN
+ EXECUTE IMMEDIATE 'DROP SEQUENCE issues_seq';
+ EXCEPTION
+ WHEN OTHERS THEN
+ IF SQLCODE != -2289 THEN
+ RAISE;
+ END IF;
+ END;""", """
+ BEGIN
+ EXECUTE IMMEDIATE 'DROP TRIGGER issues_idt';
+ EXCEPTION
+ WHEN OTHERS THEN
+ IF SQLCODE != -4080 THEN
+ RAISE;
+ END IF;
+ END;""", """
+ BEGIN
+ EXECUTE IMMEDIATE 'DROP TABLE issues';
+ EXCEPTION
+ WHEN OTHERS THEN
+ IF SQLCODE != -942 THEN
+ RAISE;
+ END IF;
+ END;""");
}
@Test