CAS Unit Tests
Clover coverage report - CAS Unit Tests
Coverage timestamp: Mon Jul 4 2005 18:13:17 CDT
file stats: LOC: 60   Methods: 3
NCLOC: 40   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PackageTests.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.databaseAccess;
 12   
 13    import junit.framework.Test;
 14    import junit.framework.TestSuite;
 15    import junit.framework.TestResult;
 16   
 17    import java.io.FileInputStream;
 18   
 19    import java.util.Properties;
 20   
 21    /**
 22    * Tests for databseAccess package
 23    */
 24    public class PackageTests extends TestSuite {
 25   
 26  0 public PackageTests(String name) {
 27  0 super(name);
 28    }
 29   
 30  0 public void run(TestResult result) {
 31  0 try {
 32  0 String propFileName = System.getProperty("casTestProperties");
 33  0 Properties prop = new Properties();
 34  0 prop.load(new FileInputStream(propFileName));
 35  0 CasDBOptions casDbOption =
 36    new CasDBOptions(prop.getProperty("dbDriver"),
 37    prop.getProperty("dbConnectionURL"),
 38    prop.getProperty("dbUsername"),
 39    prop.getProperty("dbPassword"));
 40  0 CasDBStorage.setupDBConnection(casDbOption);
 41  0 super.run(result);
 42    } catch (Exception e) {
 43  0 e.printStackTrace();
 44  0 result.addError(this, e);
 45    }
 46    }
 47   
 48  0 public static Test suite() throws Exception {
 49  0 TestSuite suite = new PackageTests("CAS Database Access Tests");
 50  0 suite.addTestSuite(TestTrustAnchorData.class);
 51  0 suite.addTestSuite(TestUserData.class);
 52  0 suite.addTestSuite(TestNamespaceData.class);
 53  0 suite.addTestSuite(TestObjectComparison.class);
 54  0 suite.addTestSuite(TestObjectData.class);
 55  0 suite.addTestSuite(TestServiceTypeData.class);
 56  0 suite.addTestSuite(TestServiceTypeAction.class);
 57  0 suite.addTestSuite(TestPolicyData.class);
 58  0 return suite;
 59    }
 60    }