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
1cd25288
Commit
1cd25288
authored
13 years ago
by
gpawel
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2616 unit tests fixed
SVN: 23485
parent
999d5118
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
common/sourceTest/java/ch/systemsx/cisd/common/collections/SmartQueuePersisterTest.java
+5
-5
5 additions, 5 deletions
...emsx/cisd/common/collections/SmartQueuePersisterTest.java
with
5 additions
and
5 deletions
common/sourceTest/java/ch/systemsx/cisd/common/collections/SmartQueuePersisterTest.java
+
5
−
5
View file @
1cd25288
...
...
@@ -86,12 +86,8 @@ public class SmartQueuePersisterTest extends AssertJUnit
}
@Test
public
void
test
Z
er
oRecordSize
()
public
void
test
P
er
sistMoreElements
()
{
// First delete the queue file created by setUp so we can create one where the initial
// record size is 0.
assertEquals
(
"Couldn't delete "
+
TMP
,
true
,
FileUtilities
.
deleteRecursively
(
TMP
));
TMP
.
mkdirs
();
queue
=
new
ArrayBlockingQueue
<
String
>(
10
);
persister
=
new
SmartQueuePersister
<
String
>(
queue
,
QUEUE_FILE
,
false
);
...
...
@@ -110,6 +106,10 @@ public class SmartQueuePersisterTest extends AssertJUnit
@Test
public
void
testQueueFileSizeLessThanHeaderSize
()
throws
Exception
{
// First delete the queue file created by setUp so we can create one where the header is too
// short.
assertEquals
(
"Couldn't delete "
+
TMP
,
true
,
FileUtilities
.
deleteRecursively
(
TMP
));
TMP
.
mkdirs
();
queue
=
new
ArrayBlockingQueue
<
String
>(
10
);
// write a data shorter than header 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