Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
77a9fd44
Commit
77a9fd44
authored
13 years ago
by
pkupczyk
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2655 - Create a unit test to check imaging db consistency
SVN: 23648
parent
e130a5ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/source/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java
+3
-2
3 additions, 2 deletions
.../cisd/dbmigration/migration/SqlMigrationTestAbstract.java
with
3 additions
and
2 deletions
dbmigration/source/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java
+
3
−
2
View file @
77a9fd44
...
@@ -20,6 +20,7 @@ import java.io.File;
...
@@ -20,6 +20,7 @@ import java.io.File;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
import
java.io.StringWriter
;
import
java.io.StringWriter
;
import
org.apache.commons.io.FileUtils
;
import
org.testng.AssertJUnit
;
import
org.testng.AssertJUnit
;
import
org.testng.annotations.AfterTest
;
import
org.testng.annotations.AfterTest
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.BeforeClass
;
...
@@ -69,7 +70,7 @@ public abstract class SqlMigrationTestAbstract
...
@@ -69,7 +70,7 @@ public abstract class SqlMigrationTestAbstract
File
dir
=
new
File
(
getSqlScriptOutputDirectory
());
File
dir
=
new
File
(
getSqlScriptOutputDirectory
());
if
(
dir
.
exists
())
if
(
dir
.
exists
())
{
{
dir
.
delete
(
);
FileUtils
.
deleteDirectory
(
dir
);
}
}
}
}
...
@@ -90,7 +91,7 @@ public abstract class SqlMigrationTestAbstract
...
@@ -90,7 +91,7 @@ public abstract class SqlMigrationTestAbstract
// create first version of migration database
// create first version of migration database
DBMigrationEngine
.
createOrMigrateDatabaseAndGetScriptProvider
(
migrationContext
,
DBMigrationEngine
.
createOrMigrateDatabaseAndGetScriptProvider
(
migrationContext
,
firstVersion
);
firstVersion
);
migrationContext
.
setCreateFromScratch
(
false
);
migrationContext
.
setCreateFromScratch
(
false
);
for
(
int
version
=
firstVersionInt
+
1
;
version
<=
newestVersionInt
;
version
++)
for
(
int
version
=
firstVersionInt
+
1
;
version
<=
newestVersionInt
;
version
++)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment