Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Nov 23, 2024
1 parent 06e5b86 commit 63c5834
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.junit.jupiter.api.Test;

import org.springframework.cloud.bootstrap.config.BootstrapPropertySource;
import org.springframework.cloud.kubernetes.commons.config.Constants;
import org.springframework.cloud.kubernetes.commons.config.MountConfigMapPropertySource;
import org.springframework.core.env.CompositePropertySource;
import org.springframework.core.env.EnumerablePropertySource;
Expand Down Expand Up @@ -151,16 +150,6 @@ public Object getProperty(String name) {
Assertions.assertEquals("from-inner-two-composite", result.get(3).getProperty(""));
}

@Test
void testEmptySourceNameOnError() {
Object value = new Object();
Map<String, Object> rightMap = Map.of("key", value);
MapPropertySource left = new MapPropertySource("on-error", Map.of(Constants.ERROR_PROPERTY, "true"));
MapPropertySource right = new MapPropertySource("right", rightMap);
boolean changed = ConfigReloadUtil.changed(List.of(left), List.of(right));
assertThat(changed).isFalse();
}

private static final class OneComposite extends CompositePropertySource {

private OneComposite() {
Expand Down

0 comments on commit 63c5834

Please sign in to comment.