CAS Unit Tests
Clover coverage report - CAS Unit Tests
Coverage timestamp: Mon Jul 4 2005 18:13:17 CDT
file stats: LOC: 53   Methods: 7
NCLOC: 30   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
CasResourceHome.java - 0% 0% 0%
coverage
 1    /*
 2    * Portions of this file Copyright 1999-2005 University of Chicago
 3    * Portions of this file Copyright 1999-2005 The University of Southern California.
 4    *
 5    * This file or a portion of this file is licensed under the
 6    * terms of the Globus Toolkit Public License, found at
 7    * http://www.globus.org/toolkit/download/license.html.
 8    * If you redistribute this file, with or without
 9    * modifications, you must include this notice in the file.
 10    */
 11    package org.globus.cas.impl.service;
 12   
 13    import org.globus.wsrf.Resource;
 14   
 15    import org.globus.wsrf.impl.SingletonResourceHome;
 16   
 17    public class CasResourceHome extends SingletonResourceHome {
 18   
 19    protected Class resourceClass;
 20   
 21    int maxAssertionLifetime = -1;
 22    String voDescription = null;
 23   
 24  0 protected Resource findSingleton() {
 25  0 return new CasResource(this.maxAssertionLifetime, voDescription);
 26    }
 27   
 28  0 public void setResourceClass(String clazz)
 29    throws ClassNotFoundException {
 30  0 this.resourceClass = Class.forName(clazz);
 31    }
 32   
 33  0 public String getResourceClass() {
 34  0 return this.resourceClass.getName();
 35    }
 36   
 37  0 public void setMaxAssertionLifetime(int lifetime) {
 38  0 this.maxAssertionLifetime = lifetime;
 39    }
 40   
 41  0 public int getMaxAssertionLifetime() {
 42  0 return this.maxAssertionLifetime;
 43    }
 44   
 45  0 public void setVoDescription(String description) {
 46  0 this.voDescription = description;
 47    }
 48   
 49  0 public String getVoDescription() {
 50  0 return this.voDescription;
 51    }
 52   
 53    }