diff options
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java')
-rw-r--r-- | org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java deleted file mode 100644 index 9d8fdf320..000000000 --- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TaskDiffUtilTest.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2008 Eugene Kuleshov 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eugene Kuleshov - initial API and implementation - * Tasktop Technologies - improvements - *******************************************************************************/ - -package org.eclipse.mylyn.tasks.tests; - -import junit.framework.TestCase; - -import org.eclipse.mylyn.internal.tasks.ui.notifications.TaskDiffUtil; - -/** - * @author Eugene Kuleshov - * @author Steffen Pingel - */ -public class TaskDiffUtilTest extends TestCase { - - public void testFoldSpaces() { - assertEquals("a b", TaskDiffUtil.foldSpaces("a b")); - assertEquals("", TaskDiffUtil.foldSpaces(" ")); - assertEquals("a b c d", TaskDiffUtil.cleanCommentText("a b c d")); - assertEquals("b", TaskDiffUtil.cleanCommentText(" b ")); - assertEquals("b", TaskDiffUtil.cleanCommentText(" b")); - } - - public void testCleanComment() { - assertEquals("attachment: some attachment. attachment description", - TaskDiffUtil.cleanCommentText(("Created an attachment (id=111)\n" // - + "some attachment\n" // - + "\n" // - + "attachment description"))); - assertEquals("attachment: some attachment", TaskDiffUtil.cleanCommentText(("Created an attachment (id=111)\n" // - + "some attachment\n" // - + "\n"))); - assertEquals("some comment", TaskDiffUtil.cleanCommentText(("(In reply to comment #11)\n" // - + "some comment\n"))); - assertEquals("some comment. other comment", TaskDiffUtil.cleanCommentText((" (In reply to comment #11)\n" // - + "some comment\n" // - + "\n" // - + " (In reply to comment #12)\n" // - + "other comment\n"))); - assertEquals("some comment. other comment", TaskDiffUtil.cleanCommentText((" (In reply to comment #11)\n" // - + "some comment. \n" // - + "\n" // - + " (In reply to comment #12)\n" // - + "> loren ipsum\n" + "> loren ipsum\n" + "other comment\n"))); - } - -} |