Use new AssertJ duration assertions
See gh-19985
This commit is contained in:
committed by
Stephane Nicoll
parent
7de3712e56
commit
fac6f08ca3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,7 +40,7 @@ public abstract class PushRegistryPropertiesConfigAdapterTests<P extends PushReg
|
||||
void whenPropertiesStepIsSetAdapterStepReturnsIt() {
|
||||
P properties = createProperties();
|
||||
properties.setStep(Duration.ofSeconds(42));
|
||||
assertThat(createConfigAdapter(properties).step()).isEqualTo(Duration.ofSeconds(42));
|
||||
assertThat(createConfigAdapter(properties).step()).hasSeconds(42);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user