TSK-1326: removed unnecessary throws statements
This commit is contained in:
parent
ec483ab21c
commit
770e1ff6fe
|
@ -22,7 +22,7 @@ class QueryTasksByObjectReferenceAccTest extends AbstractAccTest {
|
|||
|
||||
@WithAccessId(user = "admin")
|
||||
@Test
|
||||
void testQueryTasksByExcactValueOfObjectReference() throws Exception {
|
||||
void testQueryTasksByExcactValueOfObjectReference() {
|
||||
TaskService taskService = taskanaEngine.getTaskService();
|
||||
List<TaskSummary> results =
|
||||
taskService.createTaskQuery().primaryObjectReferenceValueIn("11223344", "22334455").list();
|
||||
|
@ -31,7 +31,7 @@ class QueryTasksByObjectReferenceAccTest extends AbstractAccTest {
|
|||
|
||||
@WithAccessId(user = "admin")
|
||||
@Test
|
||||
void testQueryTasksByExcactValueAndTypeOfObjectReference() throws Exception {
|
||||
void testQueryTasksByExcactValueAndTypeOfObjectReference() {
|
||||
TaskService taskService = taskanaEngine.getTaskService();
|
||||
List<TaskSummary> results =
|
||||
taskService
|
||||
|
@ -44,7 +44,7 @@ class QueryTasksByObjectReferenceAccTest extends AbstractAccTest {
|
|||
|
||||
@WithAccessId(user = "admin")
|
||||
@Test
|
||||
void testQueryTasksByValueLikeOfObjectReference() throws Exception {
|
||||
void testQueryTasksByValueLikeOfObjectReference() {
|
||||
TaskService taskService = taskanaEngine.getTaskService();
|
||||
List<TaskSummary> results =
|
||||
taskService.createTaskQuery().primaryObjectReferenceValueLike("%567%").list();
|
||||
|
|
|
@ -65,7 +65,7 @@ class SelectAndClaimTaskAccTest extends AbstractAccTest {
|
|||
|
||||
@Test
|
||||
@WithAccessId(user = "admin")
|
||||
void should_ThrowException_When_TryingToSelectAndClaimNonExistingTask() throws Exception {
|
||||
void should_ThrowException_When_TryingToSelectAndClaimNonExistingTask() {
|
||||
|
||||
TaskQuery query = taskanaEngine.getTaskService().createTaskQuery();
|
||||
query.idIn("notexisting");
|
||||
|
|
|
@ -117,7 +117,7 @@ class QueryWorkbasketByPermissionAccTest extends AbstractAccTest {
|
|||
|
||||
@WithAccessId(user = "user-1-1", groups = GROUP_1_DN)
|
||||
@Test
|
||||
void testQueryAllTransferTargetsForUserAndGroupFromSubject() throws Exception {
|
||||
void testQueryAllTransferTargetsForUserAndGroupFromSubject() {
|
||||
WorkbasketService workbasketService = taskanaEngine.getWorkbasketService();
|
||||
List<WorkbasketSummary> results =
|
||||
workbasketService
|
||||
|
|
|
@ -296,7 +296,7 @@ class UpdateWorkbasketAuthorizationsAccTest extends AbstractAccTest {
|
|||
|
||||
@WithAccessId(user = "businessadmin")
|
||||
@Test
|
||||
void testDeleteAccessItemsForAccessIdWithUnusedValuesThrowingNoException() throws Exception {
|
||||
void testDeleteAccessItemsForAccessIdWithUnusedValuesThrowingNoException() {
|
||||
WorkbasketService workbasketService = taskanaEngine.getWorkbasketService();
|
||||
assertThatCode(() -> workbasketService.deleteWorkbasketAccessItemsForAccessId(""))
|
||||
.doesNotThrowAnyException();
|
||||
|
|
Loading…
Reference in New Issue