]> source.dussan.org Git - aspectj.git/commitdiff
test case updates...
authoracolyer <acolyer>
Wed, 13 Jul 2005 13:02:54 +0000 (13:02 +0000)
committeracolyer <acolyer>
Wed, 13 Jul 2005 13:02:54 +0000 (13:02 +0000)
weaver/testsrc/org/aspectj/weaver/TypeVariableTestCase.java
weaver/testsrc/org/aspectj/weaver/patterns/ParserTestCase.java

index 37df88221134d916f3e4833b96932a24b8ed0ab3..ec4a19101fb91eee8440ba2505e81d959d94d2e9 100644 (file)
@@ -65,15 +65,6 @@ public class TypeVariableTestCase extends TestCase {
                assertEquals("resolved double",javaLangDouble.resolve(world),tv.getLowerBound());
        }
        
-       public void testDoubleResolve() {
-               TypeVariable tv = new TypeVariable("X");
-               tv.resolve(world);
-               try {
-                       tv.resolve(world);
-                       fail("Should throw illegal state exception");
-               } catch (IllegalStateException ex) {}
-       }
-       
        public void testBindWithoutResolve() {
                TypeVariable tv = new TypeVariable("X");
                try {
index 85d08e211b7e5262661fa39ceba86b4b42d889ec..724e331bcb9b6749527f1a87e0ea860171980ab4 100644 (file)
@@ -402,7 +402,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with handler pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
        
@@ -412,7 +412,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with 'this' pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
        
@@ -422,7 +422,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with target pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -432,7 +432,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with args pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -442,7 +442,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with if pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -452,7 +452,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with cflow pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -462,7 +462,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with cflowbelow pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -472,7 +472,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @within pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -482,7 +482,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @annotation pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -492,7 +492,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @withincode pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -502,7 +502,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @this pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
        
@@ -512,7 +512,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @target pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }
 
@@ -522,7 +522,7 @@ public class ParserTestCase extends TestCase {
                        parser.parsePointcut();
                        fail("Expecting parse exception");
                } catch (ParserException pEx) {
-                       assertEquals("( - type variables not allowed with @args pointcut designator",pEx.getMessage());
+                       assertEquals("(",pEx.getMessage());
                }               
        }