aboutsummaryrefslogtreecommitdiffstats
path: root/util/testsrc
diff options
context:
space:
mode:
authoraclement <aclement>2008-05-12 18:00:19 +0000
committeraclement <aclement>2008-05-12 18:00:19 +0000
commit27c5c6324326f0126a121b76f9b543cdcfd4d0d1 (patch)
treecc0d954b0c0d162c2e21a9487262614d1f63e1bd /util/testsrc
parent1ba74d84a9a981af00b23985648ae491e8ac88ca (diff)
downloadaspectj-27c5c6324326f0126a121b76f9b543cdcfd4d0d1.tar.gz
aspectj-27c5c6324326f0126a121b76f9b543cdcfd4d0d1.zip
231396: refactoring: Moved CharOperation and NameConvertor
Diffstat (limited to 'util/testsrc')
-rw-r--r--util/testsrc/org/aspectj/util/NameConvertorTest.java83
-rw-r--r--util/testsrc/org/aspectj/util/UtilTests.java1
2 files changed, 0 insertions, 84 deletions
diff --git a/util/testsrc/org/aspectj/util/NameConvertorTest.java b/util/testsrc/org/aspectj/util/NameConvertorTest.java
deleted file mode 100644
index e33bf811e..000000000
--- a/util/testsrc/org/aspectj/util/NameConvertorTest.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/********************************************************************
- * Copyright (c) 2006 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://eclipse.org/legal/epl-v10.html
- *
- * Contributors: IBM Corporation - initial API and implementation
- * Helen Hawkins - initial version
- *******************************************************************/
-package org.aspectj.util;
-
-import junit.framework.TestCase;
-
-public class NameConvertorTest extends TestCase {
-
- public void testBoolean() {
- checkConversion("Z","boolean");
- }
-
- public void testByte() {
- checkConversion("B","byte");
- }
-
- public void testChar() {
- checkConversion("C","char");
- }
-
- public void testDouble() {
- checkConversion("D","double");
- }
-
- public void testFloat() {
- checkConversion("F","float");
- }
-
- public void testInt() {
- checkConversion("I","int");
- }
-
- public void testLong() {
- checkConversion("J","long");
- }
-
- public void testShort() {
- checkConversion("S","short");
- }
-
- public void testString() {
- checkConversion("Ljava/lang/String;","java.lang.String");
- }
-
- public void testType() {
- checkConversion("LMyClass;","MyClass");
- }
-
- public void testListPameterizedWithString() {
- checkConversion("Pjava/util/List<Ljava/lang/String;>;",
- "java.util.List<java.lang.String>");
- }
- public void testClassParameterizedWithStringAndType() {
- checkConversion("PMyGenericClass<Ljava/lang/String;LMyClass;>;",
- "MyGenericClass<java.lang.String,MyClass>");
- }
- public void testStringArray() {
- checkConversion("[Ljava/lang/String;","java.lang.String[]");
- }
- public void testTwoDimensionalStringArray() {
- checkConversion("[[Ljava/lang/String;","java.lang.String[][]");
- }
- public void testIntArray() {
- checkConversion("[I","int[]");
- }
-
- private void checkConversion(String signature, String expected) {
- char[] c = NameConvertor.convertFromSignature(signature.toCharArray());
- assertTrue("converting " + signature + ", expected " + expected + "," +
- "but found " + String.valueOf(c),
- CharOperation.equals(c,expected.toCharArray()));
- }
-
-
-}
diff --git a/util/testsrc/org/aspectj/util/UtilTests.java b/util/testsrc/org/aspectj/util/UtilTests.java
index 8d2f183c2..dfc80b220 100644
--- a/util/testsrc/org/aspectj/util/UtilTests.java
+++ b/util/testsrc/org/aspectj/util/UtilTests.java
@@ -23,7 +23,6 @@ public class UtilTests extends TestCase {
//$JUnit-BEGIN$
suite.addTestSuite(FileUtilTest.class);
suite.addTestSuite(LangUtilTest.class);
- suite.addTestSuite(NameConvertorTest.class);
//$JUnit-END$
return suite;
}