TSK-1326: removed unnecessary throws statements

This commit is contained in:
holgerhagen 2020-07-07 11:10:40 +02:00
parent ec483ab21c
commit 770e1ff6fe
4 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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");

View File

@ -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

View File

@ -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();