Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2013-09-06 08:36:46 +0000
committerAlexander Kurtakov2013-09-06 08:36:46 +0000
commit83073f088bb6e1c0b7c843f0251261ffbf88cecc (patch)
treef696cd141ce4b155609087885b0f2a857d038670 /perf/org.eclipse.linuxtools.perf.swtbot.tests
parent58e666940bef3a4e77ec316228dcbca8e83181b6 (diff)
downloadorg.eclipse.linuxtools-83073f088bb6e1c0b7c843f0251261ffbf88cecc.tar.gz
org.eclipse.linuxtools-83073f088bb6e1c0b7c843f0251261ffbf88cecc.tar.xz
org.eclipse.linuxtools-83073f088bb6e1c0b7c843f0251261ffbf88cecc.zip
perf.tests: Simplifications.
* drop unused methods/fields * drop unused bundle requires * use foreach * initialize arrays with needed size * equals("") replaced with isEmpty * use assertArrayEquals instead of iterating and checking * remove empty fail() calls on exception - better to throw and let junit give us the exception info than plain hiding it Change-Id: I3eadb1fed16b6bd0675a7c2178878a05e8a97c65
Diffstat (limited to 'perf/org.eclipse.linuxtools.perf.swtbot.tests')
-rw-r--r--perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java19
1 files changed, 3 insertions, 16 deletions
diff --git a/perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java b/perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java
index bd02d3acff..dd08195fd4 100644
--- a/perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java
+++ b/perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java
@@ -187,28 +187,15 @@ public abstract class AbstractSWTBotTest extends AbstractTest {
/**
* Stub data for use in case the Perf tool is not installed.
*/
- protected class StubPerfData implements IPerfData {
- private String data;
- private String title;
-
- public StubPerfData() {
- data = "stub_perf_data";
- title = "stub_perf_title";
- }
-
- public StubPerfData(String heading, String datum) {
- title = heading;
- data = datum;
- }
-
+ protected static class StubPerfData implements IPerfData {
@Override
public String getPerfData() {
- return data;
+ return "stub_perf_data";
}
@Override
public String getTitle() {
- return title;
+ return "stub_perf_title";
}
}

Back to the top