Skip to content

Commit

Permalink
Initialize ReindexPlugin without using the @before method
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <ftianli@amazon.com>
  • Loading branch information
Tianli Feng committed Feb 25, 2022
1 parent 8047f5d commit f933699
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package org.opensearch.index.reindex;

import org.junit.Before;
import org.opensearch.common.settings.Setting;
import org.opensearch.common.settings.Settings;
import org.opensearch.test.OpenSearchTestCase;
Expand All @@ -22,12 +21,7 @@
* The test can be removed along with removing support of the deprecated setting.
*/
public class ReindexRenamedSettingTests extends OpenSearchTestCase {
ReindexPlugin plugin;

@Before
public void setup() {
this.plugin = new ReindexPlugin();
}
private final ReindexPlugin plugin = new ReindexPlugin();

/**
* Validate the both settings are known and supported.
Expand Down

0 comments on commit f933699

Please sign in to comment.