Permalink
Browse files

added an ITD to test it

  • Loading branch information...
1 parent 1b2f3b2 commit 4264cf69fb76af7d57d83c7666e9dd4c6f87f508 @enhan committed Apr 29, 2012
@@ -7,7 +7,11 @@ package eu.enhan.socialist.model;
* @author Emmanuel Nhan
*
*/
-public aspect SampleAspect {
+public privileged aspect SampleAspect {
+
+ public String User.sayHello(){
+ return "hello";
+ }
pointcut userInit() : execution(public void User.setName(String));
@@ -27,6 +27,13 @@ public void testEqualsDefault(){
assertFalse(u3.equals(u));
}
-
+
+ @Test
+ public void testHello(){
+
+ User u = new User();
+ assertTrue(u.sayHello().equals("hello"));
+
+ }
}

0 comments on commit 4264cf6

Please sign in to comment.