Author: pmouawad Date: Thu Dec 7 20:57:48 2017 New Revision: 1817421 URL: http://svn.apache.org/viewvc?rev=1817421&view=rev Log: Make mock react correctly on setText/getText
Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java?rev=1817421&r1=1817420&r2=1817421&view=diff ============================================================================== --- jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java (original) +++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/JSyntaxTextArea.java Thu Dec 7 20:57:48 2017 @@ -82,6 +82,7 @@ public class JSyntaxTextArea extends RSy if ("true".equals(System.getProperty("java.awt.headless"))) { // $NON-NLS-1$ $NON-NLS-2$ return new JSyntaxTextArea(disableUndo) { private static final long serialVersionUID = 1L; + private String text; @Override protected void init() { try { @@ -98,7 +99,13 @@ public class JSyntaxTextArea extends RSy @Override public void discardAllEdits() { } @Override - public void setText(String t) { } + public void setText(String t) { + this.text = t; + } + @Override + public String getText() { + return text; + } @Override public boolean isCodeFoldingEnabled(){ return true; } };