Skip to content

Commit 60a7583

Browse files
author
Nikola Grcevski
committed
Make some methods public for easier test writing.
1 parent e8c6322 commit 60a7583

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

server/src/main/java/org/elasticsearch/reservedstate/service/FileSettingsService.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ public FileSettingsService(ClusterService clusterService, ReservedClusterStateSe
8282
this.operatorSettingsDir = environment.configFile().toAbsolutePath().resolve(OPERATOR_DIRECTORY);
8383
}
8484

85-
// package private for testing
86-
Path operatorSettingsDir() {
85+
public Path operatorSettingsDir() {
8786
return operatorSettingsDir;
8887
}
8988

90-
// package private for testing
91-
Path operatorSettingsFile() {
89+
public Path operatorSettingsFile() {
9290
return operatorSettingsDir().resolve(SETTINGS_FILE_NAME);
9391
}
9492

@@ -202,8 +200,7 @@ private void refreshExistingFileStateIfNeeded(ClusterState clusterState) {
202200
}
203201
}
204202

205-
// package private for testing
206-
boolean watching() {
203+
public boolean watching() {
207204
return this.watchService != null;
208205
}
209206

0 commit comments

Comments
 (0)