Skip to content

Commit

Permalink
fix(): ConfigMoniotr 方法命名与API不统一问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawven committed Oct 26, 2024
1 parent 8c308a0 commit b3f51a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface ConfigMonitor {
/**
* get running params monitor api
*/
ApolloClientBootstrapArgsMonitorApi getRunningParamsMonitorApi();
ApolloClientBootstrapArgsMonitorApi getBootstrapArgsMonitorApi();

/**
* get monitor external system data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ApolloClientNamespaceMonitorApi getNamespaceMonitorApi() {
}

@Override
public ApolloClientBootstrapArgsMonitorApi getRunningParamsMonitorApi() {
public ApolloClientBootstrapArgsMonitorApi getBootstrapArgsMonitorApi() {
return apolloClientMonitorContext.getBootstrapArgsApi();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

import com.ctrip.framework.apollo.build.ApolloInjector;
import com.ctrip.framework.apollo.build.MockInjector;
import com.ctrip.framework.apollo.monitor.api.ApolloClientBootstrapArgsMonitorApi;
import com.ctrip.framework.apollo.monitor.api.ApolloClientExceptionMonitorApi;
Expand Down Expand Up @@ -65,7 +64,7 @@ public void setUp(){
public void testApis(){
assertSame(exceptionMonitorApi, configMonitor.getExceptionMonitorApi());
assertSame(namespaceMonitorApi, configMonitor.getNamespaceMonitorApi());
assertSame(bootstrapArgsMonitorApi, configMonitor.getRunningParamsMonitorApi());
assertSame(bootstrapArgsMonitorApi, configMonitor.getBootstrapArgsMonitorApi());
assertSame(threadPoolMonitorApi, configMonitor.getThreadPoolMonitorApi());
}

Expand Down

0 comments on commit b3f51a4

Please sign in to comment.