Skip to content

Commit

Permalink
chore(deps): bump com.bonitasoft.gradle.bonita-formatting from 0.1.63…
Browse files Browse the repository at this point in the history
… to 0.1.64 in /community (#3088)

* chore(deps): bump com.bonitasoft.gradle.bonita-formatting in /community

Bumps com.bonitasoft.gradle.bonita-formatting from 0.1.63 to 0.1.64.

---
updated-dependencies:
- dependency-name: com.bonitasoft.gradle.bonita-formatting
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [SpotlessApply] Squash me

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bonita-ci <hudson.mailer@bonitasoft.com>
  • Loading branch information
dependabot[bot] and bonita-ci authored Oct 3, 2024
1 parent 2575f58 commit ecf368a
Show file tree
Hide file tree
Showing 83 changed files with 198 additions and 204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void should_configure_database_using_properties() {
assertThat(businessDataDatabaseConfiguration.getXaDatasource().getMaxPoolSize()).isEqualTo(6);
assertThat(
businessDataDatabaseConfiguration.getDbVendor())
.isEqualTo("mysql");
.isEqualTo("mysql");
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,14 @@ public void use_a_multiple_complex_input_in_user_tasks() throws Exception {
waitForUserTaskAndGetIt(TASK2);
assertThat((List<Map<String, Object>>) getProcessAPI()
.getArchivedActivityDataInstance("expenseData", userTask.getId()).getValue()).as(
"should have my expense report data").hasSize(3);
"should have my expense report data")
.hasSize(3);
final Serializable reportData = getProcessAPI().getArchivedActivityDataInstance("reportData", userTask.getId())
.getValue();
assertThat(reportData).as("should have single file").isEqualTo(reportFile);
assertThat((List<Object>) getProcessAPI().getArchivedActivityDataInstance("receiptsData", userTask.getId())
.getValue()).as("should have multiple file")
.containsExactly(receipt1, receipt2);
.containsExactly(receipt1, receipt2);
final List<Document> receiptsAsDoc = getProcessAPI().getDocumentList(processInstance.getId(), "receiptsAsDoc",
0, 100);
final Document reportAsDoc = getProcessAPI().getLastDocument(processInstance.getId(), "reportAsDoc");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void should_access_identity_api_using_default_application_permissions() t
long userId = user.getId();
assertThat(
getPermissionAPI().isAuthorized(new APICallContext("GET", "identity", "user", String.valueOf(userId))))
.isTrue();
.isTrue();
assertThat(getPermissionAPI()
.isAuthorized(new APICallContext("GET", "identity", "user", String.valueOf(userId + 1)))).isFalse();
assertThat(getPermissionAPI().isAuthorized(new APICallContext("GET", "identity", "user", null))).isFalse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void deploying_bdm_with_invalid_query_should_throw_a_BDM_deployment_excep
getTenantAdministrationAPI().cleanAndUninstallBusinessDataModel();
assertThatThrownBy(
() -> getTenantAdministrationAPI().updateBusinessDataModel(getZip(buildBOMWithInvalidQuery())))
.isInstanceOf(BusinessDataRepositoryDeploymentException.class);
.isInstanceOf(BusinessDataRepositoryDeploymentException.class);
}

@Test
Expand Down Expand Up @@ -2527,7 +2527,7 @@ public void should_event_sub_process_only_start_element_in_the_event_sub_process
waitForUserTask("userTask");
assertThat(new String(getProcessAPI().getDocumentContent(
getProcessAPI().getLastDocument(processInstance.getId(), "myDoc").getContentStorageId())))
.isEqualTo("updatedContents");
.isEqualTo("updatedContents");

getProcessAPI().sendSignal("theSignal");
//then
Expand All @@ -2536,7 +2536,7 @@ public void should_event_sub_process_only_start_element_in_the_event_sub_process
//instantiation of the event sub process work and did not reinitialized elements
assertThat(new String(getProcessAPI().getDocumentContent(
getProcessAPI().getLastDocument(processInstance.getId(), "myDoc").getContentStorageId())))
.isEqualTo("updatedContents");
.isEqualTo("updatedContents");
assertThat(getProcessAPI().getDocumentList(processInstance.getId(), "MyList", 0, 100)).hasSize(2);
try {
getProcessAPI().getLastDocument(eventSubProcessActivity.getParentProcessInstanceId(), "myDoc");
Expand All @@ -2545,7 +2545,7 @@ public void should_event_sub_process_only_start_element_in_the_event_sub_process
}
assertThat(
getProcessAPI().getDocumentList(eventSubProcessActivity.getParentProcessInstanceId(), "MyList", 0, 100))
.isEmpty();
.isEmpty();
disableAndDeleteProcess(processDefinition);
}

Expand Down Expand Up @@ -2590,7 +2590,7 @@ public void should_be_able_to_update_business_object_in_event_sub_process() thro
assertThatJson(
getBusinessDataAsJson((SimpleBusinessDataReference) getProcessAPI().getProcessInstanceExecutionContext(
processInstance.getId()).get("ref_myBusinessData")))
.node("lastName").isEqualTo("\"Doe\"");
.node("lastName").isEqualTo("\"Doe\"");
//when
getProcessAPI().sendSignal("theSignal");
waitForUserTask("userTaskInSubProcess");
Expand All @@ -2599,7 +2599,7 @@ public void should_be_able_to_update_business_object_in_event_sub_process() thro
assertThatJson(
getBusinessDataAsJson((SimpleBusinessDataReference) getProcessAPI().getProcessInstanceExecutionContext(
processInstance.getId()).get("ref_myBusinessData")))
.node("lastName").isEqualTo("\"newName\"");
.node("lastName").isEqualTo("\"newName\"");
disableAndDeleteProcess(processDefinition);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void updateTimerEventTriggerInstance() throws Exception {
// Without optimisations, it takes around 30 seconds
assertThat(Duration.between(LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()),
LocalDateTime.now(ZoneId.systemDefault())))
.isLessThanOrEqualTo(Duration.ofSeconds(10));
.isLessThanOrEqualTo(Duration.ofSeconds(10));
assertThat(getProcessAPI().searchTimerEventTriggerInstances(processInstance2.getId(), options).getResult())
.hasSize(1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ public void deployProcessesWithFormMappings() throws Exception {
processConfigurationAPI
.searchFormMappings(new SearchOptionsBuilder(0, 100)
.sort(FormMappingSearchDescriptor.ID, Order.DESC).done())
.getResult()).isEmpty();
.getResult())
.isEmpty();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ public void should_search_user_case_insensitively() throws BonitaException {
assertThat(getIdentityAPI().searchUsers(
new SearchOptionsBuilder(0, 10).searchTerm("jean").sort(UserSearchDescriptor.ID, Order.ASC).done())
.getResult())
.hasSize(1).allMatch(user -> user.getUserName().equals("Jean_Michel"));
.hasSize(1).allMatch(user -> user.getUserName().equals("Jean_Michel"));
assertThat(getIdentityAPI().searchUsers(
new SearchOptionsBuilder(0, 10).searchTerm("Jean").sort(UserSearchDescriptor.ID, Order.ASC).done())
.getResult())
.hasSize(1).allMatch(user -> user.getUserName().equals("Jean_Michel"));
.hasSize(1).allMatch(user -> user.getUserName().equals("Jean_Michel"));

deleteUsers(users);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ private ProcessDefinition createAndDeployProcessDefinitionAndInstance(final Stri
final DesignProcessDefinition processDef = createProcessDefinitionBuilderWithHumanAndAutomaticSteps(
"My_Process", "1.0",
Collections.singletonList("step1"), Collections.singletonList(isHuman))
.addIntegerData(dataName, dataDefaultExp)
.addDescription("Delivery all day and night long").getProcess();
.addIntegerData(dataName, dataDefaultExp)
.addDescription("Delivery all day and night long").getProcess();

return deployAndEnableProcessWithActor(processDef, "Actor1", user);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@ public void searchArchivedDocuments() throws Exception {
assertThat(
getProcessAPI().searchArchivedDocuments(new SearchOptionsBuilder(0, 45).searchTerm("doc1").done())
.getResult().get(0)
.getContentFileName()).isEqualTo("doc1.jpg");
.getContentFileName())
.isEqualTo("doc1.jpg");

} finally {
disableAndDeleteProcess(processInstance.getProcessDefinitionId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private Expression string(String calledProcess) throws InvalidExpressionExceptio
private void shouldNotHaveFailedTasks() throws SearchException {
assertThat(getProcessAPI().searchArchivedFlowNodeInstances(new SearchOptionsBuilder(0, 1000).done()).getResult()
.stream().map(ArchivedFlowNodeInstance::getState))
.doesNotContain("failed");
.doesNotContain("failed");
}

private List<ArchivedFlowNodeInstance> getAllCompletedArchivedFlowNodeInstances() throws SearchException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ public void deleteSupervisor_should_throw_SupervisorNotFoundException_when_super
// Already deleted Supervisor
assertThatThrownBy(
() -> getProcessAPI().deleteSupervisor(myProcess1.getId(), null, role2.getId(), group2.getId()))
.isInstanceOf(DeletionException.class)
// Only check the name and not the cause, because in HTTP mode, the stacks are merged and the cause removed:
.hasMessageContaining("SupervisorNotFoundException");
.isInstanceOf(DeletionException.class)
// Only check the name and not the cause, because in HTTP mode, the stacks are merged and the cause removed:
.hasMessageContaining("SupervisorNotFoundException");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void process_update_custom_application_with_same_installed_version() thro
assertThat(updatedApplication.getLastUpdateDate().after(application.getLastUpdateDate())).isTrue();
assertThat(
updatedProcessStarterAPI.getLastModificationDate().after(processStarterAPI.getLastModificationDate()))
.isTrue();
.isTrue();
assertThat(updatedHealthPage.getLastModificationDate().after(healthPage.getLastModificationDate())).isTrue();
assertThat(updatedPmLayout.getLastModificationDate().after(pmLayout.getLastModificationDate())).isTrue();

Expand Down Expand Up @@ -224,7 +224,7 @@ public void process_update_custom_application_with_new_version()
// check updated custom pages
assertThat(
updatedProcessStarterAPI.getLastModificationDate().after(processStarterAPI.getLastModificationDate()))
.isTrue();
.isTrue();
assertThat(updatedProcessStarterAPI.getContentName()).isEqualTo("processStarter-1.1.zip");
assertThat(updatedHealthPage.getLastModificationDate().after(healthPage.getLastModificationDate())).isTrue();
assertThat(updatedHealthPage.getContentName()).isEqualTo("page_HealthPage.zip");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected ProcessDefinition createSubProcessDefinition2() throws Exception {
.addAutomaticTask("autoWithConnector")
.addConnector("connector1", "myConnector", "1.0", ConnectorEvent.ON_ENTER)
.addAutomaticTask("autoWithData").addShortTextData("activityData", s("activityDataValue")).getProcess())
.done());
.done());
}

protected ProcessDefinition createSubProcessDefinitionWithUserTask(User user) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public void deploy_a_BDR_and_verify_sequence_behaviour_by_DBVendor() throws Exce
case "oracle":
assertThat(((List<BigDecimal>) execute_native_sql(
"SELECT COUNT(*) FROM user_sequences WHERE sequence_name = 'HIBERNATE_SEQUENCE'")).get(0)
.intValue()).isEqualTo(1);
.intValue()).isEqualTo(1);
break;
case "mysql":
assertThat(Arrays.toString((Object[]) execute_native_sql("describe EMPLOYEE").get(0)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,11 @@ public UserCreator buildEngineUser(final UserItem user) throws NumberFormatExcep

final UserCreator userCreator = new UserCreator(user.getAttributeValue(UserItem.ATTRIBUTE_USERNAME),
user.getAttributeValue(UserItem.ATTRIBUTE_PASSWORD))
.setFirstName(user.getAttributeValue(UserItem.ATTRIBUTE_FIRSTNAME))
.setLastName(user.getAttributeValue(UserItem.ATTRIBUTE_LASTNAME))
.setTitle(user.getAttributeValue(UserItem.ATTRIBUTE_TITLE))
.setIconPath(user.getAttributeValue(UserItem.ATTRIBUTE_ICON))
.setJobTitle(user.getAttributeValue(UserItem.ATTRIBUTE_JOB_TITLE));
.setFirstName(user.getAttributeValue(UserItem.ATTRIBUTE_FIRSTNAME))
.setLastName(user.getAttributeValue(UserItem.ATTRIBUTE_LASTNAME))
.setTitle(user.getAttributeValue(UserItem.ATTRIBUTE_TITLE))
.setIconPath(user.getAttributeValue(UserItem.ATTRIBUTE_ICON))
.setJobTitle(user.getAttributeValue(UserItem.ATTRIBUTE_JOB_TITLE));
// .setPersonalData(personalInfo.done())
// .setProfessionalData(professionalInfo.done());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public void getFlowNodeInstanceIdsToRecover_should_return_ids_of_flow_nodes_that
.get(SFlowNodeInstance.class,
new PersistentObjectId(id, PersistentObjectBuilder.DEFAULT_TENANT_ID))
.getName()))
.containsOnly("executingTask", "notStableTask", "terminalTask",
"abortingBoundary", "cancellingBoundary");
.containsOnly("executingTask", "notStableTask", "terminalTask",
"abortingBoundary", "cancellingBoundary");
}

@Test
Expand Down Expand Up @@ -189,11 +189,11 @@ public void getGatewayInstanceIdsToRecover_should_return_ids_of_gateways_flagged
assertThat(nodeToRestart.stream()
.map(id -> (repository.getSession().get(SFlowNodeInstance.class,
new PersistentObjectId(id, PersistentObjectBuilder.DEFAULT_TENANT_ID))).getName()))
.containsOnly(
"gateway_initializing_but_finished",
"gateway_completed",
"gateway_aborting",
"gateway_cancelling");
.containsOnly(
"gateway_initializing_but_finished",
"gateway_completed",
"gateway_aborting",
"gateway_cancelling");
}

@Test
Expand All @@ -218,9 +218,9 @@ public void getGatewayInstanceIdsToRecover_should_return_ids_of_gateways_flagged
assertThat(nodeToRestart.stream()
.map(id -> (repository.getSession().get(SFlowNodeInstance.class,
new PersistentObjectId(id, PersistentObjectBuilder.DEFAULT_TENANT_ID))).getName()))
.containsOnly(
"gateway_completed",
"gateway_aborting");
.containsOnly(
"gateway_completed",
"gateway_aborting");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void getTenantResource_should_get_one_resource() {
String.class)).isEqualTo("INSTALLED");
assertThat(
jdbcTemplate.queryForObject("select type from tenant_resource where name = 'MyResource'", String.class))
.isEqualTo("BDM");
.isEqualTo("BDM");

//when
STenantResource myResource = repository.getTenantResource(TenantResourceType.BDM, "MyResource");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void should_manage_login_request() throws Exception {
when(serverAPI.invokeMethod(new HashMap<>(), "com.bonitasoft.engine.api.LoginAPI", "login",
asList(String.class.getName(), String.class.getName()) //
, new Object[] { "install", "install" })) //
.thenReturn(apiSession);
.thenReturn(apiSession);

//when:
httpAPIServletCall.doPost();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public void readProcessFromBusinessArchive() throws Exception {

assertThat(result.getProcessContainer().getFlowNode("start1").getOutgoingTransitions().get(0).getCondition()
.getContent())
.as("the condition on the transition was not kept").isEqualTo("true");
.as("the condition on the transition was not kept").isEqualTo("true");

assertEquals(process.getFlowElementContainer().getConnectors().size(),
result.getFlowElementContainer().getConnectors().size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,15 @@ SearchResult<Document> searchDocumentsSupervisedBy(long userId, SearchOptions se
*
* <pre>
* {@code
* public List<ArchivedDocument> retrieveDocuments(DocumentAPI documentAPI, ArchivedProcessInstance archivedProcessInstance) {
* SearchOptions searchOptions = new SearchOptionsBuilder(0, Integer.MAX_VALUE)
* .filter(ArchivedDocumentsSearchDescriptor.PROCESSINSTANCE_ID, archivedProcessInstance.getSourceObjectId())
* .done();
* return documentAPI.searchArchivedDocuments(searchOptions).getResult();
* }
*
* public List<ArchivedDocument> retrieveDocuments(DocumentAPI documentAPI,
* ArchivedProcessInstance archivedProcessInstance) {
* SearchOptions searchOptions = new SearchOptionsBuilder(0, Integer.MAX_VALUE)
* .filter(ArchivedDocumentsSearchDescriptor.PROCESSINSTANCE_ID,
* archivedProcessInstance.getSourceObjectId())
* .done();
* return documentAPI.searchArchivedDocuments(searchOptions).getResult();
* }
* }
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2207,12 +2207,15 @@ long getProcessDefinitionIdFromActivityInstanceId(long activityInstanceId)
*
* <pre>
* {@code
* public List<ArchivedComment> retrieveComments(ProcessRuntimeAPI processRuntimeAPI, ArchivedProcessInstance archivedProcessInstance) {
* SearchOptions searchOptions = new SearchOptionsBuilder(0, Integer.MAX_VALUE)
* .filter(ArchivedCommentsSearchDescriptor.PROCESS_INSTANCE_ID, archivedProcessInstance.getSourceObjectId())
* .done();
* return processRuntimeAPI.searchArchivedComments(searchOptions).getResult();
* }
*
* public List<ArchivedComment> retrieveComments(ProcessRuntimeAPI processRuntimeAPI,
* ArchivedProcessInstance archivedProcessInstance) {
* SearchOptions searchOptions = new SearchOptionsBuilder(0, Integer.MAX_VALUE)
* .filter(ArchivedCommentsSearchDescriptor.PROCESS_INSTANCE_ID,
* archivedProcessInstance.getSourceObjectId())
* .done();
* return processRuntimeAPI.searchArchivedComments(searchOptions).getResult();
* }
* }
* </pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public void should_display_all_fields_in_to_string() {
date.getTime(), USER_ID,
modificationDate.getTime(), USER_ID,
"content.zip", ContentType.FORM, PROCESS_DEFINITION_ID).toString())
.contains(String.valueOf(PROCESS_DEFINITION_ID)).contains(
ContentType.FORM);
.contains(String.valueOf(PROCESS_DEFINITION_ID)).contains(
ContentType.FORM);

}
}
Loading

0 comments on commit ecf368a

Please sign in to comment.