Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
6c1f0336
Commit
6c1f0336
authored
1 year ago
by
Manuel Leduc
Browse files
Options
Downloads
Patches
Plain Diff
[Misc] Cleanup of AsynchronousEventStoreTest
(cherry picked from commit
a49fd13f
)
parent
e87aee10
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
xwiki-platform-core/xwiki-platform-eventstream/xwiki-platform-eventstream-api/src/test/java/org/xwiki/eventstream/internal/AsynchronousEventStoreTest.java
+9
-10
9 additions, 10 deletions
...wiki/eventstream/internal/AsynchronousEventStoreTest.java
with
9 additions
and
10 deletions
xwiki-platform-core/xwiki-platform-eventstream/xwiki-platform-eventstream-api/src/test/java/org/xwiki/eventstream/internal/AsynchronousEventStoreTest.java
+
9
−
10
View file @
6c1f0336
...
...
@@ -65,7 +65,7 @@
* @version $Id$
*/
@ComponentTest
public
class
AsynchronousEventStoreTest
class
AsynchronousEventStoreTest
{
public
static
class
TestAbstractAsynchronousEventStore
extends
AbstractAsynchronousEventStore
{
...
...
@@ -118,7 +118,6 @@ public EventSearchResult search(EventQuery query, Set<String> fields) throws Eve
@Override
public
List
<
EventStatus
>
getEventStatuses
(
Collection
<
Event
>
events
,
Collection
<
String
>
entityIds
)
throws
Exception
{
return
List
.
of
();
}
...
...
@@ -130,7 +129,7 @@ public void initialize() throws InitializationException
}
@Override
protected
EventStatus
syncSaveEventStatus
(
EventStatus
status
)
throws
EventStreamException
protected
EventStatus
syncSaveEventStatus
(
EventStatus
status
)
{
this
.
lock
.
lock
();
...
...
@@ -144,7 +143,7 @@ protected EventStatus syncSaveEventStatus(EventStatus status) throws EventStream
}
@Override
protected
EntityEvent
syncSaveMailEntityEvent
(
EntityEvent
event
)
throws
EventStreamException
protected
EntityEvent
syncSaveMailEntityEvent
(
EntityEvent
event
)
{
this
.
lock
.
lock
();
...
...
@@ -158,7 +157,7 @@ protected EntityEvent syncSaveMailEntityEvent(EntityEvent event) throws EventStr
}
@Override
protected
Event
syncSaveEvent
(
Event
event
)
throws
EventStreamException
protected
Event
syncSaveEvent
(
Event
event
)
{
this
.
lock
.
lock
();
...
...
@@ -172,7 +171,7 @@ protected Event syncSaveEvent(Event event) throws EventStreamException
}
@Override
protected
Event
syncPrefilterEvent
(
Event
event
)
throws
EventStreamException
protected
Event
syncPrefilterEvent
(
Event
event
)
{
this
.
lock
.
lock
();
...
...
@@ -188,7 +187,7 @@ protected Event syncPrefilterEvent(Event event) throws EventStreamException
}
@Override
protected
Optional
<
EventStatus
>
syncDeleteEventStatus
(
EventStatus
status
)
throws
EventStreamException
protected
Optional
<
EventStatus
>
syncDeleteEventStatus
(
EventStatus
status
)
{
this
.
lock
.
lock
();
...
...
@@ -206,7 +205,7 @@ protected Optional<EventStatus> syncDeleteEventStatus(EventStatus status) throws
}
@Override
protected
Void
syncDeleteEventStatuses
(
String
entityId
,
Date
date
)
throws
EventStreamException
protected
Void
syncDeleteEventStatuses
(
String
entityId
,
Date
date
)
{
this
.
lock
.
lock
();
...
...
@@ -224,7 +223,7 @@ protected Void syncDeleteEventStatuses(String entityId, Date date) throws EventS
}
@Override
protected
Optional
<
EntityEvent
>
syncDeleteMailEntityEvent
(
EntityEvent
event
)
throws
EventStreamException
protected
Optional
<
EntityEvent
>
syncDeleteMailEntityEvent
(
EntityEvent
event
)
{
this
.
lock
.
lock
();
...
...
@@ -358,7 +357,7 @@ void event() throws InterruptedException, ExecutionException, EventStreamExcepti
}
@Test
void
eventstatus
()
throws
InterruptedException
,
ExecutionException
,
EventStreamException
void
eventstatus
()
throws
InterruptedException
,
ExecutionException
{
DefaultEvent
event1
=
event
(
"id1"
);
DefaultEvent
event2
=
event
(
"id2"
);
...
...
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