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
3d45bf25
Commit
3d45bf25
authored
17 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
fix: - Integration tests (maybe...).
SVN: 5320
parent
80979e1a
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
bds/source/java/ch/systemsx/cisd/bds/DataSet.java
+4
-16
4 additions, 16 deletions
bds/source/java/ch/systemsx/cisd/bds/DataSet.java
with
4 additions
and
16 deletions
bds/source/java/ch/systemsx/cisd/bds/DataSet.java
+
4
−
16
View file @
3d45bf25
...
@@ -36,9 +36,6 @@ public final class DataSet implements IStorable
...
@@ -36,9 +36,6 @@ public final class DataSet implements IStorable
static
final
String
NO_PARENT_FOR_MEASURED_DATA
=
static
final
String
NO_PARENT_FOR_MEASURED_DATA
=
"No parent could be specified for measured data."
;
"No parent could be specified for measured data."
;
static
final
String
PARENT_FOR_DERIVED_DATA
=
"At least one parent must be specified for derived data."
;
static
final
String
FOLDER
=
"data_set"
;
static
final
String
FOLDER
=
"data_set"
;
static
final
String
CODE
=
"code"
;
static
final
String
CODE
=
"code"
;
...
@@ -105,21 +102,12 @@ public final class DataSet implements IStorable
...
@@ -105,21 +102,12 @@ public final class DataSet implements IStorable
this
.
isMeasured
=
isMeasured
;
this
.
isMeasured
=
isMeasured
;
assert
StringUtils
.
isEmpty
(
observableType
)
==
false
:
"Unspecified observable type."
;
assert
StringUtils
.
isEmpty
(
observableType
)
==
false
:
"Unspecified observable type."
;
this
.
observableTypeCode
=
observableType
;
this
.
observableTypeCode
=
observableType
;
if
(
isMeasured
==
false
)
if
(
isMeasured
==
true
&&
parentCodesOrNull
!=
null
&&
parentCodesOrNull
.
size
()
>
0
)
{
if
(
parentCodesOrNull
==
null
||
parentCodesOrNull
.
size
()
==
0
)
{
throw
new
IllegalArgumentException
(
PARENT_FOR_DERIVED_DATA
);
}
this
.
parentCodes
=
parentCodesOrNull
;
}
else
{
{
if
(
parentCodesOrNull
!=
null
&&
parentCodesOrNull
.
size
()
>
0
)
throw
new
IllegalArgumentException
(
String
.
format
(
NO_PARENT_FOR_MEASURED_DATA
));
{
throw
new
IllegalArgumentException
(
String
.
format
(
NO_PARENT_FOR_MEASURED_DATA
));
}
this
.
parentCodes
=
Collections
.<
String
>
emptyList
();
}
}
this
.
parentCodes
=
parentCodesOrNull
==
null
?
Collections
.<
String
>
emptyList
()
:
parentCodesOrNull
;
this
.
producerCode
=
producerCodeOrNull
;
this
.
producerCode
=
producerCodeOrNull
;
this
.
productionTimestamp
=
productionTimestampOrNull
;
this
.
productionTimestamp
=
productionTimestampOrNull
;
}
}
...
...
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