Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java')
-rw-r--r--rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java70
1 files changed, 35 insertions, 35 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java b/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java
index b04d575b8b..bfa9f661ce 100644
--- a/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java
+++ b/rpm/org.eclipse.linuxtools.rpm.ui.editor.tests/src/org/eclipse/linuxtools/rpm/ui/editor/tests/parser/SourceComparatorTest.java
@@ -1,9 +1,11 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 Red Hat, Inc.
- * 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
+ * Copyright (c) 2007, 2018 Red Hat, Inc.
+ *
+ * This program and the accompanying materials are made
+ * available under the terms of the Eclipse Public License 2.0
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat - initial API and implementation
@@ -23,34 +25,32 @@ import org.junit.Test;
public class SourceComparatorTest extends FileTestCase {
- @Test
- public void testPatchComparator() {
- String specText = "Patch3: somefilesomewhere.patch" + "\n"
- + "Patch2: someotherfile.patch";
-
- newFile(specText);
- Collection<SpecfileSource> patches = specfile.getPatches();
- int i = 1;
- for (SpecfileSource patch : patches) {
- i++;
- if (i == 2) {
- assertEquals(2, patch.getNumber());
- } else if (i == 3) {
- assertEquals(3, patch.getNumber());
- } else {
- fail();
- }
- }
- }
-
- @Test
- public void testPatchComparator2() {
- String specText = "Patch3: somefilesomewhere.patch" + "\n"
- + "Patch2: someotherfile.patch";
-
- newFile(specText);
- List<SpecfileSource> patches = specfile.getPatches();
- assertEquals(2, patches.get(0).getNumber());
- assertEquals(3, patches.get(1).getNumber());
- }
+ @Test
+ public void testPatchComparator() {
+ String specText = "Patch3: somefilesomewhere.patch" + "\n" + "Patch2: someotherfile.patch";
+
+ newFile(specText);
+ Collection<SpecfileSource> patches = specfile.getPatches();
+ int i = 1;
+ for (SpecfileSource patch : patches) {
+ i++;
+ if (i == 2) {
+ assertEquals(2, patch.getNumber());
+ } else if (i == 3) {
+ assertEquals(3, patch.getNumber());
+ } else {
+ fail();
+ }
+ }
+ }
+
+ @Test
+ public void testPatchComparator2() {
+ String specText = "Patch3: somefilesomewhere.patch" + "\n" + "Patch2: someotherfile.patch";
+
+ newFile(specText);
+ List<SpecfileSource> patches = specfile.getPatches();
+ assertEquals(2, patches.get(0).getNumber());
+ assertEquals(3, patches.get(1).getNumber());
+ }
}

Back to the top