summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-09-30 17:20:31 +0200
committerSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2014-09-30 17:42:22 +0000
commit4badca074088b1f1a70b340d53fc464ec11e3d29 (patch)
treea7dde4de0c45f8deac6c42cc38616def5809302b /forms
parent73d6c6b51ba690033b8fc8998b016a4709bf4b0b (diff)
forms: use Arrays.toString in integration.forms.RadioButtons
Change-Id: I797692857c874d879192ca9a4ff73b98ed5ebd86 Reviewed-on: https://gerrit.libreoffice.org/11721 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/integration/forms/RadioButtons.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/forms/qa/integration/forms/RadioButtons.java b/forms/qa/integration/forms/RadioButtons.java
index efcca5864cee..4b6e5de6f3a2 100644
--- a/forms/qa/integration/forms/RadioButtons.java
+++ b/forms/qa/integration/forms/RadioButtons.java
@@ -23,6 +23,7 @@ import com.sun.star.lang.*;
import com.sun.star.container.*;
import com.sun.star.beans.*;
import com.sun.star.awt.XRadioButton;
+import java.util.Arrays;
public class RadioButtons extends complexlib.ComplexTestCase
{
@@ -306,15 +307,6 @@ public class RadioButtons extends complexlib.ComplexTestCase
}
/* ------------------------------------------------------------------ */
- private String stateString( short[] states )
- {
- StringBuilder buf = new StringBuilder();
- for ( int i=0; i<states.length; ++i )
- buf.append( states[i] );
- return buf.toString();
- }
-
- /* ------------------------------------------------------------------ */
/** verifies a number of radio buttons for their states
*/
private boolean verifyRadios( XPropertySet[] radios, short[] expectedStates, String errorMessage ) throws com.sun.star.uno.Exception
@@ -332,7 +324,7 @@ public class RadioButtons extends complexlib.ComplexTestCase
{
if ( actualStates[i] != expectedStates[i] )
{
- failed( errorMessage + " (expected: " + stateString( expectedStates ) + ", found: " + stateString( actualStates ) + ")" );
+ failed( errorMessage + " (expected: " + Arrays.toString( expectedStates ) + ", found: " + Arrays.toString( actualStates ) + ")" );
return false;
}
}