commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prick...@apache.org
Subject cvs commit: jakarta-commons-sandbox/periodicity/src/test/org/apache/commons/periodicity/build BuildGetDbConnectionTest.java
Date Wed, 09 Oct 2002 18:18:50 GMT
prickett    2002/10/09 11:18:50

  Modified:    periodicity project.xml
  Added:       periodicity/src/plugins-build/junit developer.properties
                        plugin.jelly project.xml user.properties
               periodicity/src/test/org/apache/commons/periodicity/build
                        BuildGetDbConnectionTest.java
  Removed:     periodicity/conf/build build.junit.properties
  Log:
  Changed the organization url to point to commons instead of
  the top level Jakarta Apache site
  
  Split junit properties file and integrated it into a first cut of a new maven
  plugin for unit testing of Periodicity
  
  Revision  Changes    Path
  1.10      +1 -1      jakarta-commons-sandbox/periodicity/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/project.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- project.xml	9 Oct 2002 16:15:45 -0000	1.9
  +++ project.xml	9 Oct 2002 18:18:50 -0000	1.10
  @@ -7,7 +7,7 @@
     <currentVersion>0.0.1-dev</currentVersion>
     <organization>
       <name>Apache Software Foundation</name>
  -    <url>http://jakarta.apache.org</url>
  +    <url>http://jakarta.apache.org/commons</url>
     </organization>
     <inceptionYear>2000</inceptionYear>
     <package>org.apache.commons.periodicity</package>
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/plugins-build/junit/developer.properties
  
  Index: developer.properties
  ===================================================================
  periodicity.junit.driver.class.name.key=driver.class.name
  periodicity.junit.database.url.key=database.url
  periodicity.junit.database.user.key=database.user
  periodicity.junit.database.password.key=database.password
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/plugins-build/junit/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  <project default="periodicity:junit:test">
  
    <goal name="periodicity:junit:test">
      <junit fork="no" printsummary="${periodicity.junit.print.summary}">
        <test name="org.apache.commons.periodicity.build.BuildGetDbConnectionTest"/>
      </junit>
    </goal>
  
  </project>
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/plugins-build/junit/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project>
    <pomVersion>3</pomVersion>
    <id>jakarta-periodicity-junit</id>
    <name>JUnit Maven Testing Plugin for Periodicity</name>
    <current-version>0.0.1-dev</current-version>
    <organization>
      <name>Apache Software Foundation</name>
      <url>http://jakarta.apache.org/commons</url>
    </organization>
    <inceptionYear>2002</inceptionYear>
    <description>A maven plugin that uses junit and maven to override 
                 maven's default test goal
    </description>
    <shortDescription>JUnit Maven Testing Plugin for Periodicity</shortDescription>
    <siteAddress>jakarta.apache.org</siteAddress>
    <repository>
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-commons-sandbox/periodicity/src/plugins-build/junit</connection>
    </repository>
    <versions/>
    <branches/>
    <mailingLists/>
  
    <developers>
      <developer>
        <name>Jeff Prickett</name>
        <id>prickett</id>
        <email>prunernj@yahoo.com</email>
      </developer>
    </developers>  
  
    <dependencies/>
    <build/>
  </project>  
    
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/plugins-build/junit/user.properties
  
  Index: user.properties
  ===================================================================
  periodicity.junit.print.summary=on
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/test/org/apache/commons/periodicity/build/BuildGetDbConnectionTest.java
  
  Index: BuildGetDbConnectionTest.java
  ===================================================================
  package org.apache.commons.periodicity.database;
  
  import java.sql.DriverManager;
  import org.apache.commons.periodicity.database.GetDbConnectionTest; 
  
  public class BuildGetDbConnectionTest extends GetDbConnectionTest 
  {
      public static final String FAILURE_MESSAGE_PREFIX = 
             "GetDatabaseConnection:";
      public static final String DATABASE_CONNECTION_FAILED =
             FAILURE_MESSAGE_PREFIX +
             "Could not successfully obtain a database connection";
      public static final String DATABASE_CLASS_NAME_NULL =
             FAILURE_MESSAGE_PREFIX + 
             "Driver class name is null.";
      public static final String DATABASE_URL_NULL =
             FAILURE_MESSAGE_PREFIX +
             "Database Url is null.";
      public static final String DATABASE_USER_NULL =
             FAILURE_MESSAGE_PREFIX +
             "Database User is null.";
      public static final String DATABASE_PASSWORD_NULL =
             FAILURE_MESSAGE_PREFIX +
             "Database Password is null.";
  
      private String driverClassName = null;
      private String databaseUrl = null;
      private String databaseUser = null;
      private String databasePassword = null;
  
      public BuildGetDbConnectionTest(String name)
      {
          super(name);
      }
  
      protected void setup()
      {
          System.err.println(
                 "periodicity.mysql.db.name='" + 
                 System.getProperty("periodicity.mysql.db.name") + "'");
      }           
  
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message