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
95bfa397
Commit
95bfa397
authored
17 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
change test directory and delete it before creation
SVN: 4555
parent
0750ff5a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
+3
-2
3 additions, 2 deletions
...temsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
with
3 additions
and
2 deletions
dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/postgresql/DumpPreparatorTest.java
+
3
−
2
View file @
95bfa397
...
@@ -33,7 +33,7 @@ import ch.systemsx.cisd.common.utilities.FileUtilities;
...
@@ -33,7 +33,7 @@ import ch.systemsx.cisd.common.utilities.FileUtilities;
*/
*/
public
class
DumpPreparatorTest
public
class
DumpPreparatorTest
{
{
private
static
final
File
TEST_FOLDER
=
new
File
(
"targets"
);
private
static
final
File
TEST_FOLDER
=
new
File
(
"targets
/unit-test-wd/dump-preparator
"
);
private
static
final
String
EXAMPLE
=
"--\n"
+
private
static
final
String
EXAMPLE
=
"--\n"
+
"-- PostgreSQL database dump\n"
+
"-- PostgreSQL database dump\n"
+
...
@@ -109,9 +109,10 @@ public class DumpPreparatorTest
...
@@ -109,9 +109,10 @@ public class DumpPreparatorTest
@Test
@Test
public
void
test
()
throws
IOException
public
void
test
()
throws
IOException
{
{
FileUtilities
.
deleteRecursively
(
TEST_FOLDER
);
StringReader
reader
=
new
StringReader
(
EXAMPLE
);
StringReader
reader
=
new
StringReader
(
EXAMPLE
);
File
folder
=
new
File
(
TEST_FOLDER
,
"011"
);
File
folder
=
new
File
(
TEST_FOLDER
,
"011"
);
folder
.
mkdir
();
folder
.
mkdir
s
();
assertEquals
(
true
,
folder
.
exists
());
assertEquals
(
true
,
folder
.
exists
());
DumpPreparator
.
createUploadFiles
(
reader
,
folder
);
DumpPreparator
.
createUploadFiles
(
reader
,
folder
);
...
...
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