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
bf33adab
Commit
bf33adab
authored
16 years ago
by
ribeaudc
Browse files
Options
Downloads
Patches
Plain Diff
change: - Put in the broken group till we find a good way to handle this.
SVN: 9435
parent
070c13cf
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
openbis/sourceTest/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/server/GenericClientServiceTest.java
+6
-3
6 additions, 3 deletions
...n/generic/client/web/server/GenericClientServiceTest.java
with
6 additions
and
3 deletions
openbis/sourceTest/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/server/GenericClientServiceTest.java
+
6
−
3
View file @
bf33adab
...
@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.plugin.generic.client.web.server;
...
@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.plugin.generic.client.web.server;
import
static
org
.
testng
.
AssertJUnit
.
assertEquals
;
import
static
org
.
testng
.
AssertJUnit
.
assertEquals
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
...
@@ -127,11 +128,10 @@ public final class GenericClientServiceTest extends AbstractClientServiceTest
...
@@ -127,11 +128,10 @@ public final class GenericClientServiceTest extends AbstractClientServiceTest
context
.
assertIsSatisfied
();
context
.
assertIsSatisfied
();
}
}
@Test
@Test
(
groups
=
"broken"
)
public
final
void
testRegisterSamples
()
throws
IOException
public
final
void
testRegisterSamples
()
throws
IOException
{
{
final
UploadedFilesBean
uploadedFilesBean
=
new
UploadedFilesBean
();
final
UploadedFilesBean
uploadedFilesBean
=
new
UploadedFilesBean
();
uploadedFilesBean
.
addMultipartFile
(
multipartFile
);
final
String
sessionKey
=
"uploaded-files"
;
final
String
sessionKey
=
"uploaded-files"
;
final
NewSample
newSample
=
new
NewSample
();
final
NewSample
newSample
=
new
NewSample
();
newSample
.
setIdentifier
(
"MP1"
);
newSample
.
setIdentifier
(
"MP1"
);
...
@@ -156,13 +156,16 @@ public final class GenericClientServiceTest extends AbstractClientServiceTest
...
@@ -156,13 +156,16 @@ public final class GenericClientServiceTest extends AbstractClientServiceTest
will
(
returnValue
(
"identifier\tcontainer\tparent\tprop1\tprop2\nMP1\tMP2\tMP3\tRED\t1"
will
(
returnValue
(
"identifier\tcontainer\tparent\tprop1\tprop2\nMP1\tMP2\tMP3\tRED\t1"
.
getBytes
()));
.
getBytes
()));
allowing
(
multipartFile
).
getOriginalFilename
();
one
(
multipartFile
).
getOriginalFilename
();
will
(
returnValue
(
fileName
));
will
(
returnValue
(
fileName
));
one
(
multipartFile
).
transferTo
(
with
(
any
(
File
.
class
)));
one
(
genericServer
).
registerSamples
(
with
(
SESSION_TOKEN
),
with
(
sampleType
),
one
(
genericServer
).
registerSamples
(
with
(
SESSION_TOKEN
),
with
(
sampleType
),
with
(
new
NewSampleListMatcher
(
Collections
.
singletonList
(
newSample
))));
with
(
new
NewSampleListMatcher
(
Collections
.
singletonList
(
newSample
))));
}
}
});
});
uploadedFilesBean
.
addMultipartFile
(
multipartFile
);
final
List
<
BatchRegistrationResult
>
result
=
final
List
<
BatchRegistrationResult
>
result
=
genericClientService
.
registerSamples
(
sampleType
,
sessionKey
);
genericClientService
.
registerSamples
(
sampleType
,
sessionKey
);
assertEquals
(
1
,
result
.
size
());
assertEquals
(
1
,
result
.
size
());
...
...
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