Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-09-02 Thread xianglong
@Alexander, Hi sir, that's really what I want, you given me a very powerful support ! thanks again from my heart, thank you so . much !!! On Fri, Aug 31, 2012 at 8:29 PM, Alexander Kriegisch-2 [via AspectJ] ml-node+s2085585n4650510...@n4.nabble.com wrote: Like this? # some JUnit

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-31 Thread xianglong
://user/SendEmail.jtp?type=nodenode=4650508i=3] Sent: Thursday, August 30, 2012 6:24 AM To: [hidden email] http://user/SendEmail.jtp?type=nodenode=4650508i=4 Subject: Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ? Yes, I think I can help you if you tell me (in prose

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-31 Thread Alexander Kriegisch
Like this? # some JUnit 4 tests # package de.scrum_master.aop.demo; import static org.junit.Assert.*; import org.junit.Test; public class MyTestCase { @Test public void testOne() { assertEquals(scrum-master.de, scrum- + master + .de); } @Test public void testTwo()

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-30 Thread Alexander Kriegisch
The after throwing pointcut, as the name implies, matches joinpoints *after* a method is *throwing* an exception. Your example method caseName, as far as I understand your code, does *not* throw any exceptions, because it catches them, calls the logger/handler and then exits gracefully. --

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-30 Thread Alexander Kriegisch
Yes, I think I can help you if you tell me (in prose, not in code) what you want to achieve: Do you want to a) intercept and log the exceptions in your production code, then pass them through (i.e. let them happen)? b) intercept and log the exceptions in your production code, but *not*

[aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-29 Thread xianglong
hello all, sorry re-post this article again , because my first post is not subscription of mailing list ,so you guys can not receive my help request, and sorry for this inconvenience . I'm a new aspectj starter and I want to use aspectj to handle exceptions which thrown/catched in my testcases,