Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java')
-rwxr-xr-xlttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java b/lttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java
index d955b9b8b3..7e7ebb28f5 100755
--- a/lttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui.tests/src/org/eclipse/linuxtools/tmf/ui/tests/statistics/TmfBaseStatisticsDataTest.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Mathieu Denis (mathieu.denis@polymtl.ca) - Initial design and implementation
+ * Mathieu Denis <mathieu.denis@polymtl.ca> - Initial design and implementation
* Bernd Hufmann - Fixed warnings
*******************************************************************************/
@@ -40,7 +40,7 @@ public class TmfBaseStatisticsDataTest extends TestCase {
// ------------------------------------------------------------------------
// Fields
// ------------------------------------------------------------------------
- private String fTestName = null;
+ private String fTestName = null;
private final String fContext = "UnitTest";
private final String fTypeId1 = "Some type1";
@@ -80,7 +80,8 @@ public class TmfBaseStatisticsDataTest extends TestCase {
// ------------------------------------------------------------------------
/**
- * @param name of the test
+ * @param name
+ * Test name
*/
public TmfBaseStatisticsDataTest(final String name) {
super(name);
@@ -141,8 +142,7 @@ public class TmfBaseStatisticsDataTest extends TestCase {
temp = iterChild.next();
if (keyExpected.contains(temp.getKey())) {
keyExpected.removeElement(temp.getKey());
- }
- else {
+ } else {
fail();
}
}
@@ -175,7 +175,10 @@ public class TmfBaseStatisticsDataTest extends TestCase {
Vector<String> keyExpected = new Vector<String>();
keyExpected.add(fEvent1.getType().toString());
keyExpected.add(fEvent3.getType().toString());
- // It should return the eventType even though the number of events equals 0
+ /*
+ * It should return the eventType even though the number of events
+ * equals 0
+ */
fStatsData.get(new TmfFixedArray<String>(fTestName, Messages.TmfStatisticsData_EventTypes, fEvent1.getType().toString())).reset();
// Getting children of a category
childrenTreeNode = fStatsData.get(treeNode.getPath()).getAllChildren();
@@ -187,8 +190,7 @@ public class TmfBaseStatisticsDataTest extends TestCase {
temp = iterChild.next();
if (keyExpected.contains(temp.getKey())) {
keyExpected.removeElement(temp.getKey());
- }
- else {
+ } else {
fail();
}
}
@@ -213,8 +215,7 @@ public class TmfBaseStatisticsDataTest extends TestCase {
for (TmfStatisticsTreeNode child : childrenTreeNode) {
if (child.getKey().compareTo(fEvent1.getType().toString()) == 0) {
assertEquals("registerEvent", 2, child.getValue().nbEvents);
- }
- else if (child.getKey().compareTo(fEvent3.getType().toString()) == 0) {
+ } else if (child.getKey().compareTo(fEvent3.getType().toString()) == 0) {
assertEquals("registerEvent", 1, child.getValue().nbEvents);
}
}

Back to the top