diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-05 11:05:57 +0000 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2010-03-05 11:05:57 +0000 |
commit | f9843446d68ccdbab7fb4006b381b1f8abfbf091 (patch) | |
tree | 18d16cd36314700e3e47c057b78241a84387e277 /org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java | |
parent | e47d22d5205ec826f82b3072289f56564a3f74d6 (diff) | |
download | jacoco-f9843446d68ccdbab7fb4006b381b1f8abfbf091.tar.gz |
Cleanup copyright headers and automatically verify them during the build.
Diffstat (limited to 'org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java')
-rw-r--r-- | org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java b/org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java index 15325788..b62850f9 100644 --- a/org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java +++ b/org.jacoco.core.test/src/org/jacoco/core/analysis/NodeComparatorTest.java @@ -1,3 +1,15 @@ +/*******************************************************************************
+ * Copyright (c) 2009, 2010 Mountainminds GmbH & Co. KG and Contributors
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Marc R. Hoffmann - initial API and implementation
+ *
+ * $Id: $
+ *******************************************************************************/
package org.jacoco.core.analysis;
import static org.jacoco.core.analysis.ICoverageNode.ElementType.GROUP;
@@ -10,6 +22,12 @@ import java.util.List; import org.jacoco.core.analysis.ICoverageNode.CounterEntity;
import org.junit.Test;
+/**
+ * Unit test for {@link NodeComparator}.
+ *
+ * @author Marc R. Hoffmann
+ * @version $Revision: $
+ */
public class NodeComparatorTest {
@Test
@@ -19,9 +37,8 @@ public class NodeComparatorTest { ICoverageNode d3 = new MockBlockData(30);
ICoverageNode d4 = new MockBlockData(60);
ICoverageNode d5 = new MockBlockData(99);
- final List<ICoverageNode> result = CounterComparator.TOTALITEMS
- .on(CounterEntity.BLOCK).sort(
- Arrays.asList(d3, d5, d1, d4, d2));
+ final List<ICoverageNode> result = CounterComparator.TOTALITEMS.on(
+ CounterEntity.BLOCK).sort(Arrays.asList(d3, d5, d1, d4, d2));
assertEquals(Arrays.asList(d1, d2, d3, d4, d5), result);
}
|