Skip to content

Commit

Permalink
[ALFREDOPS-860] temp progress
Browse files Browse the repository at this point in the history
  • Loading branch information
pvriel committed Jan 6, 2025
1 parent a1749dc commit 6a3b60e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions alfred-telemetry-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
testImplementation "org.hamcrest:hamcrest-all:${hamcrestVersion}"
testImplementation "org.awaitility:awaitility:${awaitilityVersion}"
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
testImplementation "net.bytebuddy:byte-buddy:${byteBuddyVersion}"
testRuntimeOnly 'org.alfresco:alfresco-remote-api'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void validate(BeanDefinitionRegistry registry, ApplicationContext contex
if(hasDataSource) {
assertNotNull(context.getBean(DATASOURCE_BEAN_ID));
} else {
assertThrows(BeansException.class, () -> context.getBean(DATASOURCE_BEAN_ID));
assertThrows(NoSuchBeanException.class, () -> context.getBean(DATASOURCE_BEAN_ID));
}

assertThat(registry.containsBeanDefinition(BASIC_DATASOURCE_BEAN_ID), is(hasBasicDataSource));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.Properties;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;

Expand All @@ -19,7 +20,7 @@ class ClusteringMetricsBeanPostProcessorTest {
ClusteringMetricsBeanPostProcessor clusteringMetricsBeanPostProcessor;

@BeforeEach
private void init() {
public void init() {
clusteringMetricsBeanPostProcessor = new ClusteringMetricsBeanPostProcessor();
}

Expand All @@ -39,6 +40,5 @@ void testCommunityAndClusteringMetricsEnabled() {
clusteringMetricsBeanPostProcessor.postProcessBeanDefinitionRegistry(beanDefinitionRegistry);
verify(beanDefinitionRegistry, times(0))
.registerBeanDefinition(eq(ClusteringMetricsBeanPostProcessor.CLUSTERING_METRICS_BEAN_ID), any());
;
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ allprojects {
jvmExtrasVersion = '0.1.2'

junitJupiterVersion = '5.4.2'
mockitoVersion = '4.5.1'
mockitoVersion = '5.2.0'
byteBuddyVersion = '1.14.6'
hamcrestVersion = '1.3'
awaitilityVersion = '4.1.0'
Expand Down

0 comments on commit 6a3b60e

Please sign in to comment.