Fix service-registry and refresh endpoint tests

This commit is contained in:
Spencer Gibb
2017-09-25 15:39:24 -04:00
parent 6a7b5bc750
commit 883558fa07
4 changed files with 61 additions and 35 deletions

View File

@@ -20,7 +20,7 @@ import java.util.Collection;
import java.util.Set;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;
import org.springframework.cloud.context.refresh.ContextRefresher;
/**
@@ -36,7 +36,7 @@ public class RefreshEndpoint {
this.contextRefresher = contextRefresher;
}
@ReadOperation
@WriteOperation
public Collection<String> refresh() {
Set<String> keys = contextRefresher.refresh();
return keys;