Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 29   Methods: 1
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CacheApiUtil.java 50% 100% 100% 80%
coverage coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7   
 8    package org.jboss.cache.pojo.util;
 9   
 10    import java.util.Set;
 11   
 12    import org.jboss.cache.Cache;
 13    import org.jboss.cache.Fqn;
 14    import org.jboss.cache.Node;
 15   
 16    /**
 17    * Utility for the 2.0 Cache API
 18    *
 19    * @author Ben Wang
 20    * @version $Id: CacheApiUtil.java,v 1.5 2007/06/28 00:56:07 jgreene Exp $
 21    */
 22    public class CacheApiUtil
 23    {
 24  12056 public static Set<Node> getNodeChildren(Cache<Object, Object> cache, Fqn fqn)
 25    {
 26  12056 Node n = cache.getRoot().getChild(fqn);
 27  12056 return n != null ? n.getChildren() : null;
 28    }
 29    }