Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-05-23 21:18:40 +0000
committerSteffen Pingel2012-05-23 21:18:40 +0000
commit26ec16e2cb714094d58bf0e0ffd9f6771f3af03c (patch)
tree476b7d43745e07f4e28ae749573c750f671fa855 /org.eclipse.mylyn.tasks.tests
parentd49d674e0b29ee523b58a830a7ab9589fb0c96a9 (diff)
downloadorg.eclipse.mylyn.tasks-26ec16e2cb714094d58bf0e0ffd9f6771f3af03c.tar.gz
org.eclipse.mylyn.tasks-26ec16e2cb714094d58bf0e0ffd9f6771f3af03c.tar.xz
org.eclipse.mylyn.tasks-26ec16e2cb714094d58bf0e0ffd9f6771f3af03c.zip
NEW - bug 375076: [api] move classes in
org.eclipse.mylyn.internal.provisional.tasks.core to API package https://bugs.eclipse.org/bugs/show_bug.cgi?id=375076
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java
deleted file mode 100644
index e7528f703..000000000
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/TasksUtilTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Tasktop Technologies 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:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.tasks.tests;
-
-import junit.framework.TestCase;
-
-import org.eclipse.mylyn.internal.provisional.tasks.core.TasksUtil;
-
-public class TasksUtilTest extends TestCase {
-
- public void testDecode() {
- assertEquals("abc", TasksUtil.encode("abc"));
- assertEquals("%2D_", TasksUtil.encode("-"));
- assertEquals("abc%2D_123", TasksUtil.encode("abc-123"));
- assertEquals("", TasksUtil.encode(""));
- }
-
- public void testDecodeInvalid() {
- try {
- String s = TasksUtil.decode("abc-123");
- fail("Expected IllegalArgumentException, got '" + s + "'");
- } catch (IllegalArgumentException e) {
- }
- try {
- String s = TasksUtil.decode("%Z_");
- fail("Expected IllegalArgumentException, got '" + s + "'");
- } catch (IllegalArgumentException e) {
- }
- }
-
- public void testEncode() {
- assertEquals("abc", TasksUtil.decode("abc"));
- assertEquals("-", TasksUtil.decode("%2D_"));
- assertEquals("abc-123", TasksUtil.decode("abc%2D_123"));
- assertEquals("abc-123", TasksUtil.decode(TasksUtil.decode(TasksUtil.encode(TasksUtil.encode("abc-123")))));
- }
-
-}

Back to the top