diff options
author | Alexander Kurtakov | 2017-07-20 22:20:47 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-07-20 22:39:57 +0000 |
commit | 3a938dd648842abdf80f8cde84ad3b9686d1369d (patch) | |
tree | ee6d0c2b15a6abab73a9658c6826b6e61f5a7681 /tests/org.eclipse.compare.tests | |
parent | 2f9785951b4c9c1279231cb7736c30e7beb50c6b (diff) | |
download | eclipse.platform.team-3a938dd648842abdf80f8cde84ad3b9686d1369d.tar.gz eclipse.platform.team-3a938dd648842abdf80f8cde84ad3b9686d1369d.tar.xz eclipse.platform.team-3a938dd648842abdf80f8cde84ad3b9686d1369d.zip |
Move to non-deprecated org.junit.AssertI20170723-2000I20170722-2000I20170722-0045I20170721-2000I20170720-2000
Change-Id: I50724a2da4f0d94189e0bf0d34ceb16baefbfb4c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'tests/org.eclipse.compare.tests')
5 files changed, 12 insertions, 22 deletions
diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/DocLineComparatorTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/DocLineComparatorTest.java index 1f08dd467..85a1e7abb 100644 --- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/DocLineComparatorTest.java +++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/DocLineComparatorTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * 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 @@ -12,7 +12,6 @@ package org.eclipse.compare.tests; import java.util.HashMap; -import junit.framework.Assert; import junit.framework.TestCase; import org.eclipse.compare.ICompareFilter; @@ -22,6 +21,7 @@ import org.eclipse.jface.text.Document; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.Region; +import org.junit.Assert; public class DocLineComparatorTest extends TestCase { diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java index 540729682..98079fc70 100644 --- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java +++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/FilterTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * 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 @@ -11,8 +11,8 @@ package org.eclipse.compare.tests; import org.eclipse.compare.internal.CompareResourceFilter; +import org.junit.Assert; -import junit.framework.*; import junit.framework.TestCase; public class FilterTest extends TestCase { diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/LineReaderTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/LineReaderTest.java index 0e2357435..c7ee28a43 100644 --- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/LineReaderTest.java +++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/LineReaderTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 IBM Corporation and others. + * Copyright (c) 2005, 2017 IBM Corporation and others. * 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 @@ -18,12 +18,12 @@ import java.net.MalformedURLException; import java.net.URL; import java.util.List; -import junit.framework.Assert; import junit.framework.TestCase; import org.eclipse.compare.internal.core.patch.LineReader; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; +import org.junit.Assert; public class LineReaderTest extends TestCase { diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchUtils.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchUtils.java index 1dbd16c74..c1d0c7564 100644 --- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchUtils.java +++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/PatchUtils.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 IBM Corporation and others. + * Copyright (c) 2009, 2017 IBM Corporation and others. * 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 @@ -10,27 +10,17 @@ *******************************************************************************/ package org.eclipse.compare.tests; -import java.io.BufferedInputStream; -import java.io.BufferedReader; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; +import java.io.*; import java.net.URL; import java.util.jar.JarEntry; import java.util.jar.JarFile; -import junit.framework.Assert; - import org.eclipse.compare.internal.Utilities; import org.eclipse.compare.patch.PatchConfiguration; import org.eclipse.core.resources.IStorage; import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; +import org.eclipse.core.runtime.*; +import org.junit.Assert; import org.osgi.framework.Bundle; public class PatchUtils { diff --git a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/StructureCreatorTest.java b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/StructureCreatorTest.java index 27076c691..903faa9dc 100644 --- a/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/StructureCreatorTest.java +++ b/tests/org.eclipse.compare.tests/src/org/eclipse/compare/tests/StructureCreatorTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 IBM Corporation and others. + * Copyright (c) 2013, 2017 IBM Corporation and others. * 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 @@ -14,7 +14,6 @@ import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; -import junit.framework.Assert; import junit.framework.TestCase; import org.eclipse.compare.ICompareFilter; @@ -29,6 +28,7 @@ import org.eclipse.jface.text.Document; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.Region; +import org.junit.Assert; public class StructureCreatorTest extends TestCase { |