Clover coverage report -
Coverage timestamp: Thu Jun 22 2006 14:24:50 CEST
file stats: LOC: 85   Methods: 4
NCLOC: 23   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
InterceptorExceptions00.java - 0% 0% 0%
coverage
 1    /**
 2    * EasyBeans
 3    * Copyright (C) 2006 Bull S.A.S.
 4    * Contact: easybeans@objectweb.org
 5    *
 6    * This library is free software; you can redistribute it and/or
 7    * modify it under the terms of the GNU Lesser General Public
 8    * License as published by the Free Software Foundation; either
 9    * version 2.1 of the License, or any later version.
 10    *
 11    * This library is distributed in the hope that it will be useful,
 12    * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 14    * Lesser General Public License for more details.
 15    *
 16    * You should have received a copy of the GNU Lesser General Public
 17    * License along with this library; if not, write to the Free Software
 18    * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 19    * USA
 20    *
 21    * --------------------------------------------------------------------------
 22    * $Id: InterceptorExceptions00.java 450 2006-05-12 15:30:25Z benoitf $
 23    * --------------------------------------------------------------------------
 24    */
 25    package org.objectweb.easybeans.tests.common.ejbs.base;
 26   
 27    import javax.interceptor.Interceptors;
 28   
 29    import org.objectweb.easybeans.tests.common.exception.CustomException00;
 30    import org.objectweb.easybeans.tests.common.exception.CustomException01;
 31    import org.objectweb.easybeans.tests.common.interceptors.business.CausesException00Interceptor;
 32    import org.objectweb.easybeans.tests.common.interceptors.business.CausesException01Interceptor;
 33   
 34   
 35    /**
 36    * Used to test interceptors exceptions.
 37    * @author Eduardo Studzinski Estima de Castro
 38    * @author Gisele Pinheiro Souza
 39    *
 40    */
 41    public class InterceptorExceptions00 implements ItfExceptions{
 42   
 43    /**
 44    * Gets an integer.
 45    * @return value.
 46    */
 47  0 public Integer getInt() {
 48  0 return VALUE;
 49    }
 50   
 51    /**
 52    * This method should throw CustomException00 exception,
 53    * because the interceptor used always throws this exception.
 54    * @throws CustomException00 interceptor exception
 55    * @return integer
 56    */
 57  0 @Interceptors({CausesException00Interceptor.class})
 58    public Integer throwsOneException00() throws CustomException00 {
 59  0 return VALUE;
 60    }
 61   
 62    /**
 63    * This method should throw CustomException01 exception,
 64    * because the interceptor used always throws this exception.
 65    * @throws CustomException01 interceptor exception
 66    * @return integer
 67    */
 68  0 @Interceptors({CausesException01Interceptor.class})
 69    public Integer throwsOneException01() throws CustomException01 {
 70  0 return VALUE;
 71    }
 72   
 73    /**
 74    * This method should throw CustomException00 exception, because the first
 75    * interceptor will be called before the other.
 76    * @throws CustomException00 interceptor exception
 77    * @throws CustomException01 interceptor exception
 78    * @return integer
 79    */
 80  0 @Interceptors({CausesException00Interceptor.class, CausesException01Interceptor.class})
 81    public Integer throwsTwoExceptions() throws CustomException00, CustomException01 {
 82  0 return VALUE;
 83    }
 84   
 85    }