Skip to content

Commit

Permalink
AAE-30611 test: revert on hibernate version to 6.5.3.Final
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-piotrowiak committed Feb 12, 2025
1 parent 7388673 commit 65b0fa2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.activiti.cloud.services.audit.jpa.events.ProcessStartedAuditEventEntity;
import org.activiti.cloud.services.audit.jpa.repository.EventsRepository;
import org.activiti.core.common.spring.security.policies.SecurityPolicyAccess;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
Expand All @@ -38,7 +37,6 @@
@TestPropertySource("classpath:application-test.properties")
@SpringBootTest
@EnableAutoConfiguration
@Disabled
public class RestrictEventQueryIT {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
import org.awaitility.Durations;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
Expand All @@ -60,6 +60,7 @@
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.bean.override.mockito.MockitoBean;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@TestPropertySource("classpath:application-test-admin.properties")
Expand Down Expand Up @@ -94,6 +95,9 @@ public class QueryAdminProcessDiagramIT {
@Autowired
private TestRestTemplate testRestTemplate;

@MockitoBean
private BuildProperties buildProperties;

private String processDefinitionId = UUID.randomUUID().toString();

private EventsAggregator eventsAggregator;
Expand Down Expand Up @@ -132,7 +136,6 @@ public void tearDown() {
bpmnSequenceFlowRepository.deleteAll();
}

@Disabled("404 response")
@Test
public void shouldGetProcessInstanceDiagramAdmin() throws InterruptedException {
//given
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
import org.activiti.cloud.starters.test.MyProducer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
import org.springframework.context.annotation.Import;
Expand All @@ -45,13 +45,13 @@
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.bean.override.mockito.MockitoBean;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@TestPropertySource("classpath:application-test.properties")
@Import({ ProcessDefinitionRestTemplate.class, TestChannelBinderConfiguration.class })
@ContextConfiguration(initializers = { KeycloakContainerApplicationInitializer.class })
@DirtiesContext
@Disabled("Assertions not met, probably due to spring-cloud-function")
public class QueryProcessDefinitionCandidateStartersIT {

@Autowired
Expand All @@ -69,6 +69,9 @@ public class QueryProcessDefinitionCandidateStartersIT {
@Autowired
private MyProducer producer;

@MockitoBean
private BuildProperties buildProperties;

@BeforeEach
public void setUp() {
identityTokenProducer.withTestUser("hruser");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
import org.activiti.cloud.starters.test.MyProducer;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
import org.springframework.context.annotation.Import;
Expand All @@ -46,6 +46,7 @@
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.util.StreamUtils;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
Expand All @@ -72,6 +73,9 @@ public class QueryProcessDefinitionIT {
@Autowired
private MyProducer producer;

@MockitoBean
private BuildProperties buildProperties;

@BeforeEach
public void setUp() {
identityTokenProducer.withTestUser("hruser");
Expand All @@ -83,7 +87,6 @@ public void tearDown() {
processDefinitionRepository.deleteAll();
}

@Disabled("No response")
@Test
public void shouldGetAvailableProcessDefinitions() {
//given
Expand Down Expand Up @@ -123,7 +126,6 @@ public void shouldGetAvailableProcessDefinitions() {
);
}

@Disabled("404 no response")
@Test
public void shouldGetAvailableProcessModels() throws Exception {
//given
Expand Down Expand Up @@ -182,7 +184,6 @@ public void shouldGetAvailableProcessModels() throws Exception {
.isXmlEqualToContentOf(new File("src/test/resources/parse-for-test/SimpleProcess.bpmn20.xml"));
}

@Disabled("No response")
@Test
public void shouldFilterOnProcessKey() {
//given
Expand Down Expand Up @@ -215,7 +216,6 @@ public void shouldFilterOnProcessKey() {
.containsExactly(tuple(secondProcessDefinition.getId(), "My second Process", "mySecondProcess"));
}

@Disabled("No response")
@Test
public void shouldUpdateDefinitionOnDuplicate() {
//given
Expand Down Expand Up @@ -254,7 +254,6 @@ public void shouldUpdateDefinitionOnDuplicate() {
);
}

@Disabled("No response")
@Test
public void shouldUpdateProcessModelOnDuplicate() throws Exception {
//given
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>

<!-- dependencies versions -->
<hibernate.version>6.6.3.Final</hibernate.version>
<hibernate.version>6.5.3.Final</hibernate.version>
<classgraph.version>4.8.175</classgraph.version>


Expand Down

0 comments on commit 65b0fa2

Please sign in to comment.