Clover coverage report -
Coverage timestamp: Thu Jun 22 2006 14:24:50 CEST
file stats: LOC: 66   Methods: 2
NCLOC: 20   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BusinessInterceptorsClassesEnhancer.java - 100% 50% 91.7%
coverage 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: BusinessInterceptorsClassesEnhancer.java 19 2006-02-22 13:44:17Z studzine $
 23    * --------------------------------------------------------------------------
 24    */
 25   
 26    package org.objectweb.easybeans.tests.enhancer.interceptors.business;
 27   
 28    import java.util.ArrayList;
 29    import java.util.List;
 30   
 31    import org.objectweb.easybeans.tests.common.enhancer.ClassesEnhancer;
 32   
 33   
 34    /**
 35    * Checks that interceptor enhancing of classses is ok.
 36    * @author Florent Benoit
 37    */
 38    public final class BusinessInterceptorsClassesEnhancer {
 39   
 40    /**
 41    * Utility class, no constructor.
 42    */
 43  0 private BusinessInterceptorsClassesEnhancer() {
 44   
 45    }
 46   
 47    /**
 48    * Enhance the classes simulating a Bean.
 49    * @throws Exception if it fails
 50    */
 51  2 public static void enhance() throws Exception {
 52  2 String packageName = "org.objectweb.easybeans.tests.enhancer.interceptors.business.bean.".replace(".", "/");
 53  2 String suffixClass = ".class";
 54   
 55  2 List<String> list = new ArrayList<String>();
 56  2 list.add(packageName + "Interceptor" + suffixClass);
 57  2 list.add(packageName + "SingleMethodInterceptor" + suffixClass);
 58  2 list.add(packageName + "StatelessBean" + suffixClass);
 59  2 list.add(packageName + "StatelessLocalBisItf" + suffixClass);
 60  2 list.add(packageName + "StatelessLocalItf" + suffixClass);
 61  2 list.add(packageName + "StatelessRemoteItf" + suffixClass);
 62   
 63  2 ClassesEnhancer.enhance(list, ClassesEnhancer.TYPE.INTERCEPTOR);
 64    }
 65   
 66    }