File tree 1 file changed +0
-8
lines changed
powertools-metrics/src/test/java/software/amazon/lambda/powertools/metrics
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import static java .util .Collections .emptyMap ;
18
18
import static org .assertj .core .api .Assertions .assertThat ;
19
- import static org .assertj .core .api .Assertions .assertThatNullPointerException ;
20
19
import static org .mockito .Mockito .mockStatic ;
21
20
import static software .amazon .lambda .powertools .core .internal .SystemWrapper .getenv ;
22
21
@@ -163,13 +162,6 @@ void singleMetricsCaptureUtilityWithDefaultNameSpace() {
163
162
}
164
163
}
165
164
166
- @ Test
167
- void shouldThrowExceptionWhenDefaultDimensionIsNull () {
168
- assertThatNullPointerException ()
169
- .isThrownBy (() -> MetricsUtils .defaultDimensions (null ))
170
- .withMessage ("Null dimension set not allowed" );
171
- }
172
-
173
165
private void testLogger (Consumer <Consumer <MetricsLogger >> methodToTest ) {
174
166
try (MockedStatic <SystemWrapper > mocked = mockStatic (SystemWrapper .class );
175
167
MockedStatic <software .amazon .lambda .powertools .core .internal .SystemWrapper > internalWrapper = mockStatic (
You can’t perform that action at this time.
0 commit comments