public class JUnitDB extends Object
public JUnitDB(String databaseDir) throws SQLException
SQLException
public void insertTest(JUnitTestInfo test) throws SQLException
SQLException
public void insertTests(List<JUnitTestInfo> tests) throws SQLException
SQLException
public List<JUnitTestInfo> queryTestsByProject(String projectName, int buildNumber) throws SQLException
SQLException
public List<JUnitTestInfo> queryTestsByModule(String projectName, int buildNumber, String moduleName) throws SQLException
SQLException
public List<JUnitTestInfo> queryTestsByPackage(String projectName, int buildNumber, String moduleName, String packageName) throws SQLException
SQLException
public List<JUnitTestInfo> queryTestsByClass(String projectName, int buildNumber, String moduleName, String packageName, String className) throws SQLException
SQLException
public JUnitTestInfo queryTestCase(String projectName, int buildNumber, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public JUnitTestInfo queryTestCaseForBuildPriorTo(String projectName, int buildNumber, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public List<JUnitTestInfo> getTestCaseHistory(String projectName, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public List<JUnitSummaryInfo> summarizeTestCaseHistory(String projectName, String moduleName, String packageName, String className, String caseName, int limit) throws SQLException
SQLException
public JUnitSummaryInfo summarizeTestCaseForBuild(int buildNumber, String projectName, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public JUnitSummaryInfo summarizeTestCaseForBuildPriorTo(int buildNumber, String projectName, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public List<JUnitSummaryInfo> summarizeTestClassHistory(String projectName, String moduleName, String packageName, String className, int limit) throws SQLException
SQLException
public List<JUnitTestInfo> fetchTestClassChildrenForBuild(int buildNumber, String projectName, String moduleName, String packageName, String className) throws SQLException
SQLException
public JUnitSummaryInfo summarizeTestClassForBuild(int buildNumber, String projectName, String moduleName, String packageName, String className) throws SQLException
SQLException
public JUnitSummaryInfo summarizeTestClassForBuildPriorTo(int buildNumber, String projectName, String moduleName, String packageName, String className) throws SQLException
SQLException
public List<JUnitSummaryInfo> summarizeTestPackageHistory(String projectName, String moduleName, String packageName, int limit) throws SQLException
SQLException
public List<JUnitSummaryInfo> fetchTestPackageChildrenForBuild(int buildNumber, String projectName, String moduleName, String packageName) throws SQLException
SQLException
public void summarizeTestPackagesForBuild(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestPackageSummaryForBuild(int buildNumber, String projectName, String moduleName, String packageName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestPackageSummaryForBuildPriorTo(int buildNumber, String projectName, String moduleName, String packageName) throws SQLException
SQLException
public List<JUnitSummaryInfo> fetchTestModuleSummaryHistory(String projectName, String moduleName, int limit) throws SQLException
SQLException
public List<JUnitSummaryInfo> fetchTestModuleChildrenForBuild(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public void summarizeTestModuleForBuild(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestModuleSummaryForBuildPriorTo(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestModuleSummaryForBuild(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestModuleSummaryForBuildNoLaterThan(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public List<JUnitSummaryInfo> summarizeTestProjectHistory(String projectName, int limit) throws SQLException
SQLException
public List<JUnitSummaryInfo> fetchTestProjectChildrenForBuild(int buildNumber, String projectName) throws SQLException
SQLException
public void summarizeTestProjectForBuild(int buildNumber, String projectName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestProjectSummaryForBuild(int buildNumber, String projectName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestProjectSummaryForBuildPriorTo(int buildNumber, String projectName) throws SQLException
SQLException
public JUnitSummaryInfo fetchTestProjectSummaryForBuildNoLaterThan(int buildNumber, String projectName) throws SQLException
SQLException
public List<JUnitTestInfo> filterTestsByDateRange(List<JUnitTestInfo> tests, long startDate, long endDate)
public JUnitTestDetailInfo readTestDetail(int buildNumber, String projectName, String moduleName, String packageName, String className, String caseName, ReaderWriter stdoutReaderWriter, ReaderWriter stderrReaderWriter) throws IOException, SQLException
IOException
SQLException
public JUnitMetricsInfo fetchTestCaseMetrics(int buildNumber, String projectName, String moduleName, String packageName, String className, String caseName) throws SQLException
SQLException
public JUnitMetricsInfo fetchTestClassMetrics(int buildNumber, String projectName, String moduleName, String packageName, String className) throws SQLException
SQLException
public JUnitMetricsInfo fetchTestPackageMetrics(int buildNumber, String projectName, String moduleName, String packageName) throws SQLException
SQLException
public JUnitMetricsInfo fetchTestModuleMetrics(int buildNumber, String projectName, String moduleName) throws SQLException
SQLException
public JUnitMetricsInfo fetchTestProjectMetrics(int buildNumber, String projectName) throws SQLException
SQLException
public String getProperty(String projectName, String propertyName) throws SQLException
SQLException
public boolean hasProperty(String projectName, String propertyName) throws SQLException
SQLException
public void setProperty(String projectName, String propertyName, String value) throws SQLException
SQLException
public void compactDB(String projectName, List<String> activeBuildIds) throws SQLException
SQLException
Copyright © 2004-2016. All Rights Reserved.