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
eda14406
Commit
eda14406
authored
17 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
remove:
- Check for empty original data as we support it in 'HCS IMAGE' format. SVN: 3267
parent
2115a684
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bds/source/java/ch/systemsx/cisd/bds/DataStructureV1_0.java
+0
-4
0 additions, 4 deletions
bds/source/java/ch/systemsx/cisd/bds/DataStructureV1_0.java
bds/sourceTest/java/ch/systemsx/cisd/bds/DataStructureV1_0Test.java
+2
-16
2 additions, 16 deletions
...Test/java/ch/systemsx/cisd/bds/DataStructureV1_0Test.java
with
2 additions
and
20 deletions
bds/source/java/ch/systemsx/cisd/bds/DataStructureV1_0.java
+
0
−
4
View file @
eda14406
...
...
@@ -273,10 +273,6 @@ public class DataStructureV1_0 extends AbstractDataStructure
public
final
void
assertValid
()
{
super
.
assertValid
();
if
(
getOriginalData
().
iterator
().
hasNext
()
==
false
)
{
throw
new
DataStructureException
(
"Empty original data directory."
);
}
IDirectory
metaDataDirectory
=
getMetaDataDirectory
();
if
(
metaDataDirectory
.
tryGetNode
(
Format
.
FORMAT_DIR
)
==
null
&&
format
==
null
)
{
...
...
This diff is collapsed.
Click to expand it.
bds/sourceTest/java/ch/systemsx/cisd/bds/DataStructureV1_0Test.java
+
2
−
16
View file @
eda14406
...
...
@@ -61,9 +61,9 @@ public final class DataStructureV1_0Test extends AbstractFileSystemTestCase
@Override
@BeforeMethod
public
final
void
set
u
p
()
throws
IOException
public
final
void
set
U
p
()
throws
IOException
{
super
.
set
u
p
();
super
.
set
U
p
();
storage
=
new
FileStorage
(
workingDirectory
);
dataStructure
=
new
DataStructureV1_0
(
storage
);
}
...
...
@@ -241,20 +241,6 @@ public final class DataStructureV1_0Test extends AbstractFileSystemTestCase
}
}
@Test
public
void
testCloseForEmptyData
()
{
dataStructure
.
create
();
try
{
dataStructure
.
close
();
fail
(
"DataStructureException expected."
);
}
catch
(
DataStructureException
e
)
{
assertEquals
(
"Empty original data directory."
,
e
.
getMessage
());
}
}
@Test
public
void
testCloseIfNoFormat
()
{
...
...
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