Package org.bremersee.groupman.mock
Class GroupWebfluxControllerMock
java.lang.Object
org.bremersee.groupman.mock.GroupWebfluxControllerMock
- All Implemented Interfaces:
GroupWebfluxControllerApi
The group controller mock.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new group controller mock.GroupWebfluxControllerMock
(Supplier<String> userNameSupplier) Instantiates a new group controller mock. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Group>
createGroup
(Group group) Create group.reactor.core.publisher.Mono<Void>
deleteGroup
(String groupId) Delete group.reactor.core.publisher.Flux<Group>
Gets editable groups.reactor.core.publisher.Mono<Group>
getGroupById
(String groupId) Gets group by id.reactor.core.publisher.Flux<Group>
getGroupsByIds
(List<String> ids) Gets groups by ids.reactor.core.publisher.Flux<Group>
Gets membership.Gets membership ids.reactor.core.publisher.Mono<Status>
Get status of the current user.reactor.core.publisher.Flux<Group>
Gets usable groups.reactor.core.publisher.Mono<Group>
updateGroup
(String groupId, Group group) Update group.
-
Constructor Details
-
GroupWebfluxControllerMock
public GroupWebfluxControllerMock()Instantiates a new group controller mock. -
GroupWebfluxControllerMock
Instantiates a new group controller mock.- Parameters:
userNameSupplier
- the user name supplier
-
-
Method Details
-
createGroup
Description copied from interface:GroupWebfluxControllerApi
Create group.- Specified by:
createGroup
in interfaceGroupWebfluxControllerApi
- Parameters:
group
- the group- Returns:
- the group
-
getGroupById
Description copied from interface:GroupWebfluxControllerApi
Gets group by id.- Specified by:
getGroupById
in interfaceGroupWebfluxControllerApi
- Parameters:
groupId
- the group id- Returns:
- the group by id
-
updateGroup
Description copied from interface:GroupWebfluxControllerApi
Update group.- Specified by:
updateGroup
in interfaceGroupWebfluxControllerApi
- Parameters:
groupId
- the group idgroup
- the group- Returns:
- the group
-
deleteGroup
Description copied from interface:GroupWebfluxControllerApi
Delete group.- Specified by:
deleteGroup
in interfaceGroupWebfluxControllerApi
- Parameters:
groupId
- the group id- Returns:
- the mono
-
getGroupsByIds
Description copied from interface:GroupWebfluxControllerApi
Gets groups by ids.- Specified by:
getGroupsByIds
in interfaceGroupWebfluxControllerApi
- Parameters:
ids
- the list of ids- Returns:
- the groups by ids
-
getEditableGroups
Description copied from interface:GroupWebfluxControllerApi
Gets editable groups.- Specified by:
getEditableGroups
in interfaceGroupWebfluxControllerApi
- Returns:
- the editable groups
-
getUsableGroups
Description copied from interface:GroupWebfluxControllerApi
Gets usable groups.- Specified by:
getUsableGroups
in interfaceGroupWebfluxControllerApi
- Returns:
- the usable groups
-
getMembership
Description copied from interface:GroupWebfluxControllerApi
Gets membership.- Specified by:
getMembership
in interfaceGroupWebfluxControllerApi
- Returns:
- the membership
-
getMembershipIds
Description copied from interface:GroupWebfluxControllerApi
Gets membership ids.- Specified by:
getMembershipIds
in interfaceGroupWebfluxControllerApi
- Returns:
- the membership ids
-
getStatus
Description copied from interface:GroupWebfluxControllerApi
Get status of the current user.- Specified by:
getStatus
in interfaceGroupWebfluxControllerApi
- Returns:
- the status
-