jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1854263 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
Date Sun, 24 Feb 2019 14:42:39 GMT
Author: pmouawad
Date: Sun Feb 24 14:42:39 2019
New Revision: 1854263

URL: http://svn.apache.org/viewvc?rev=1854263&view=rev
Log:
Bug 63203 - Unit Tests : Replace use of @Deprecated by @VisibleForTesting for methods/constructors/classes
made public for Unit Testing only
Bugzilla Id: 63203

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java?rev=1854263&r1=1854262&r2=1854263&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/SearchTreeDialog.java Sun Feb 24 14:42:39
2019
@@ -61,6 +61,7 @@ import org.apache.jmeter.gui.tree.JMeter
 import org.apache.jmeter.gui.tree.JMeterTreeNode;
 import org.apache.jmeter.testelement.TestElement;
 import org.apache.jmeter.util.JMeterUtils;
+import org.apache.jorphan.documentation.VisibleForTesting;
 import org.apache.jorphan.gui.ComponentUtil;
 import org.apache.jorphan.gui.JLabeledTextField;
 import org.slf4j.Logger;
@@ -111,6 +112,11 @@ public class SearchTreeDialog extends JD
     private List<JMeterTreeNode> lastSearchResult = new ArrayList<>();
     private int currentSearchIndex;
 
+    @VisibleForTesting
+    public SearchTreeDialog() {
+        super();
+    }
+    
     public SearchTreeDialog(JFrame parent) {
         super(parent, JMeterUtils.getResString("search_tree_title"), false); //$NON-NLS-1$
         init();



Mime
View raw message