Class GroupAdminControllerMock

java.lang.Object
org.bremersee.groupman.mock.GroupAdminControllerMock
All Implemented Interfaces:
GroupAdminControllerApi

public class GroupAdminControllerMock extends Object implements GroupAdminControllerApi
The group admin controller mock.
Author:
Christian Bremer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    addGroup(org.bremersee.groupman.model.Group group)
    Add group.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    Find group by id.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Gets groups.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Find groups by ids.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    modifyGroup(String id, org.bremersee.groupman.model.Group group)
    Modify group.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    Remove group.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GroupAdminControllerMock

      public GroupAdminControllerMock()
  • Method Details

    • addGroup

      public org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> addGroup(org.bremersee.groupman.model.Group group)
      Description copied from interface: GroupAdminControllerApi
      Add group.
      Specified by:
      addGroup in interface GroupAdminControllerApi
      Parameters:
      group - the group
      Returns:
      the response entity
    • removeGroup

      public org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> removeGroup(String id)
      Description copied from interface: GroupAdminControllerApi
      Remove group.
      Specified by:
      removeGroup in interface GroupAdminControllerApi
      Parameters:
      id - the id
      Returns:
      the response entity
    • findGroupById

      public org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> findGroupById(String id)
      Description copied from interface: GroupAdminControllerApi
      Find group by id.
      Specified by:
      findGroupById in interface GroupAdminControllerApi
      Parameters:
      id - the id
      Returns:
      the response entity
    • findGroups

      public org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> findGroups()
      Description copied from interface: GroupAdminControllerApi
      Gets groups.
      Specified by:
      findGroups in interface GroupAdminControllerApi
      Returns:
      the groups
    • findGroupsByIds

      public org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> findGroupsByIds(List<String> ids)
      Description copied from interface: GroupAdminControllerApi
      Find groups by ids.
      Specified by:
      findGroupsByIds in interface GroupAdminControllerApi
      Parameters:
      ids - the list of ids
      Returns:
      the response entity
    • modifyGroup

      public org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> modifyGroup(String id, org.bremersee.groupman.model.Group group)
      Description copied from interface: GroupAdminControllerApi
      Modify group.
      Specified by:
      modifyGroup in interface GroupAdminControllerApi
      Parameters:
      id - the id
      group - the group
      Returns:
      the response entity