forked from open-telemetry/opentelemetry-java-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynamicControlAutoConfigurationTest.java
More file actions
34 lines (26 loc) · 1010 Bytes
/
DynamicControlAutoConfigurationTest.java
File metadata and controls
34 lines (26 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.dynamic;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import io.opentelemetry.sdk.autoconfigure.spi.AutoConfigurationCustomizer;
import org.junit.jupiter.api.Test;
class DynamicControlAutoConfigurationTest {
@Test
void testCustomize() {
DynamicControlAutoConfiguration config = new DynamicControlAutoConfiguration();
AutoConfigurationCustomizer customizer = mock(AutoConfigurationCustomizer.class);
config.customize(customizer);
// The customize method should not throw and should be callable
// Logging is tested manually or via integration tests
}
@Test
void testOrder() {
// This is a placeholder test, just to have something
DynamicControlAutoConfiguration config = new DynamicControlAutoConfiguration();
// Default order should be 0
assertThat(config.order()).isEqualTo(0);
}
}