[smart-load-test] push by im...@smartitengineering.com - Get the project up-to-date and buildable... on 2012-12-15 13:42 GMT

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 15, 2012, 8:43:03 AM12/15/12
to smart-loa...@smartitengineering.com
Revision: a4577c60a984
Author: Imran M Yousuf <imyo...@smartitengineering.com>
Date: Sat Dec 15 05:42:12 2012
Log: Get the project up-to-date and buildable

Still test case are not getting built fully. Will need to fix them. But for
now we at least get the source code to build.

Signed-off-by: Imran M Yousuf <imyo...@smartitengineering.com>

http://code.google.com/p/smart-load-test/source/detail?r=a4577c60a984

Deleted:
/src/main/java/com/smartitengineering/loadtest/App.java
/src/test/java/com/smartitengineering/loadtest/AppTest.java
Modified:
/pom.xml
/smart-load-test-doc/pom.xml
/smart-load-test-engine-app/src/assemble/assemble-bin-with-dependency.xml
/smart-load-test-engine-app/src/assemble/assemble-bin.xml
/smart-load-test-engine-impl/pom.xml

/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/persistence/db/DatabasePersistentTestResultEngineImpl.java
/smart-load-test-engine/pom.xml

/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/KeyedInformation.java

/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseInstanceResult.java

/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseResult.java

/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestProperty.java

/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestResult.java

=======================================
--- /src/main/java/com/smartitengineering/loadtest/App.java Fri Dec 14
20:45:01 2012
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.smartitengineering.loadtest;
-
-/**
- * Hello world!
- *
- */
-public class App
-{
- public static void main( String[] args )
- {
- System.out.println( "Hello World!" );
- }
-}
=======================================
--- /src/test/java/com/smartitengineering/loadtest/AppTest.java Fri Dec 14
20:45:01 2012
+++ /dev/null
@@ -1,38 +0,0 @@
-package com.smartitengineering.loadtest;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest
- extends TestCase
-{
- /**
- * Create the test case
- *
- * @param testName name of the test case
- */
- public AppTest( String testName )
- {
- super( testName );
- }
-
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp()
- {
- assertTrue( true );
- }
-}
=======================================
--- /pom.xml Fri Dec 14 20:45:01 2012
+++ /pom.xml Sat Dec 15 05:42:12 2012
@@ -18,15 +18,20 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
<groupId>com.smartitengineering</groupId>
- <artifactId>smart-load-test</artifactId>
- <packaging>pom</packaging>
- <version>0.1-SNAPSHOT</version>
- <name>smart-load-test</name>
- <url>http://code.google.com/p/smart-load-test/</url>
- <inceptionYear>2008</inceptionYear>
- <description>
+ <artifactId>smart-core</artifactId>
+ <version>0.1.10</version>
+ </parent>
+ <groupId>com.smartitengineering</groupId>
+ <artifactId>smart-load-test</artifactId>
+ <packaging>pom</packaging>
+ <version>0.1-SNAPSHOT</version>
+ <name>smart-load-test</name>
+ <url>http://code.google.com/p/smart-load-test/</url>
+ <inceptionYear>2008</inceptionYear>
+ <description>
This framework is intended to make load testing simple, especially
the
logging of the results, persisting them and later representing
them to
the user. It is intended to be developed as a NetBeans Module and
Stand
@@ -37,177 +42,77 @@
different types. Not only existing frameworks, but by implementing
some
key API interfaces users can create their own test cases, which is
of
extreme benefit when it comes to testing Web Services.
- </description>
- <organization>
- <name>Smart IT Engineering</name>
- <url>http://www.smartitengineering.com</url>
- </organization>
- <issueManagement>
- <system>Google Code Issue Tracker</system>
- <url>http://code.google.com/p/smart-load-test/issues/</url>
- </issueManagement>
- <mailingLists>
- <mailingList>
- <name>User List</name>
-
<archive>http://groups.google.com/group/smart-load-test-users</archive>
- <post>smart-load...@googlegroups.com</post>
- </mailingList>
- <mailingList>
- <name>Developer List</name>
-
<archive>http://groups.google.com/group/smart-load-test-dev</archive>
- <post>smart-loa...@googlegroups.com</post>
- </mailingList>
- </mailingLists>
- <licenses>
- <license>
- <name>GNU General Public License v3</name>
- <distribution>repo and manual</distribution>
- <url>http://www.gnu.org/licenses/gpl-3.0.html</url>
- </license>
- </licenses>
- <scm>
-
<connection>scm:svn:http://smart-load-test.googlecode.com/svn/trunk/smart-load-test</connection>
-
<developerConnection>scm:svn:https://smart-load-test.googlecode.com/svn/trunk/smart-load-test</developerConnection>
- <url>http://code.google.com/p/smart-load-test/source/browse</url>
- </scm>
- <developers>
- <developer>
- <id>imyousuf</id>
- <name>Imran M Yousuf</name>
- <email>imyo...@smartitengineering.com</email>
- <organization>Smart IT Engineering</organization>
- <timezone>GMT +0600</timezone>
- <roles>
- <role>Project Owner</role>
- <role>Developer</role>
- <role>Maintainer</role>
- </roles>
- </developer>
- </developers>
- <distributionManagement>
- <!-- use the following if you're not using a snapshot version. -->
- <repository>
- <id>java.net-m2-repository</id>
- <url>java-net:/maven2-repository/trunk/repository/</url>
- </repository>
- <!-- use the following if you ARE using a snapshot version. -->
- <snapshotRepository>
- <id>free-ftp-snapshot-repo</id>
- <name>My FTP snapshot</name>
-
<url>ftp://imyousuf.100webspace.net/imyousuf.100webspace.net/maven-repo/snapshot</url>
- </snapshotRepository>
- </distributionManagement>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-scm-plugin</artifactId>
- <version>1.0</version>
- <configuration>
- <connectionType>developerConnection</connectionType>
- <username>${gcode.username}</username>
- <password>${gcode.password}</password>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.0.4</version>
- <configuration>
- <attach>true</attach>
- </configuration>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar</goal>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <extensions>
- <extension>
- <groupId>org.jvnet.wagon-svn</groupId>
- <artifactId>wagon-svn</artifactId>
- <version>1.8</version>
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-ftp</artifactId>
- <version>1.0-alpha-6</version>
- </extension>
- </extensions>
- </build>
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <version>${cobertura-version}</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jxr-maven-plugin</artifactId>
- <version>2.0-beta-1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-changelog-plugin</artifactId>
- <version>2.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- </plugins>
- </reporting>
- <repositories>
- <repository>
- <id>maven2-repository.dev.java.net</id>
- <name>Java.net Repository for Maven</name>
- <url>http://download.java.net/maven/2/</url>
- <layout>default</layout>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>smart-it-snapshot-repo</id>
- <name>Smart IT Engineering snapshot repo</name>
-
<url>http://dev.smartitengineering.com/maven-repo/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <modules>
- <module>smart-load-test-engine</module>
- <module>smart-load-test-doc</module>
- <module>smart-load-test-engine-app</module>
- <module>smart-load-test-engine-impl</module>
- </modules>
- <properties>
- <abstract-dao-version>0.4-SNAPSHOT</abstract-dao-version>
- <cobertura-version>2.2</cobertura-version>
- </properties>
+ </description>
+ <organization>
+ <name>Smart IT Solution</name>
+ <url>http://www.smitsol.com</url>
+ </organization>
+ <issueManagement>
+ <system>Google Code Issue Tracker</system>
+ <url>http://code.google.com/p/smart-load-test/issues/</url>
+ </issueManagement>
+ <mailingLists>
+ <mailingList>
+ <name>User List</name>
+
<archive>http://groups.google.com/group/smart-load-test-users</archive>
+ <post>smart-load...@googlegroups.com</post>
+ </mailingList>
+ <mailingList>
+ <name>Developer List</name>
+ <archive>http://groups.google.com/group/smart-load-test-dev</archive>
+ <post>smart-loa...@googlegroups.com</post>
+ </mailingList>
+ </mailingLists>
+ <licenses>
+ <license>
+ <name>GNU General Public License v3</name>
+ <distribution>repo and manual</distribution>
+ <url>http://www.gnu.org/licenses/gpl-3.0.html</url>
+ </license>
+ </licenses>
+ <scm>
+
<connection>scm:git:git://github.com/imyousuf/smart-load-test.git</connection>
+
<developerConnection>scm:git:https://code.google.com/p/smart-load-test/</developerConnection>
+ <url>http://code.google.com/p/smart-load-test/source/browse</url>
+ </scm>
+ <developers>
+ <developer>
+ <id>imyousuf</id>
+ <name>Imran M Yousuf</name>
+ <email>imyo...@smartitengineering.com</email>
+ <organization>Smart IT Solution</organization>
+ <timezone>GMT +0600</timezone>
+ <roles>
+ <role>Project Owner</role>
+ <role>Developer</role>
+ <role>Maintainer</role>
+ </roles>
+ </developer>
+ </developers>
+ <modules>
+ <module>smart-load-test-engine</module>
+ <module>smart-load-test-doc</module>
+ <module>smart-load-test-engine-app</module>
+ <module>smart-load-test-engine-impl</module>
+ </modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
</project>
=======================================
--- /smart-load-test-doc/pom.xml Fri Dec 14 20:45:01 2012
+++ /smart-load-test-doc/pom.xml Sat Dec 15 05:42:12 2012
@@ -28,20 +28,19 @@
<artifactId>smart-load-test-doc</artifactId>
<name>smart-load-test-doc</name>
<version>${parent.version}</version>
- <url>http://code.google.com/p/smart-load-test/</url>
<pluginRepositories>
<pluginRepository>
<id>repository.jboss.org</id>
- <url>http://repository.jboss.org/maven2</url>
+
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
- <id>snapshots.jboss.org</id>
- <url>http://snapshots.jboss.org/maven2</url>
+ <id>3rdparty.repository.jboss.org</id>
+
<url>https://repository.jboss.org/nexus/content/repositories/thirdparty-releases</url>
<snapshots>
- <enabled>true</enabled>
+ <enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
@@ -49,8 +48,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
</dependency>
</dependencies>
<build>
=======================================
---
/smart-load-test-engine-app/src/assemble/assemble-bin-with-dependency.xml
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine-app/src/assemble/assemble-bin-with-dependency.xml
Sat Dec 15 05:42:12 2012
@@ -16,7 +16,7 @@
</fileSets>
<files>
<file>
- <source>../../README</source>
+ <source>../README</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
=======================================
--- /smart-load-test-engine-app/src/assemble/assemble-bin.xml Fri Dec 14
20:45:01 2012
+++ /smart-load-test-engine-app/src/assemble/assemble-bin.xml Sat Dec 15
05:42:12 2012
@@ -16,7 +16,7 @@
</fileSets>
<files>
<file>
- <source>../../README</source>
+ <source>../README</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
=======================================
--- /smart-load-test-engine-impl/pom.xml Fri Dec 14 20:45:01 2012
+++ /smart-load-test-engine-impl/pom.xml Sat Dec 15 05:42:12 2012
@@ -18,222 +18,211 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<project>
- <parent>
- <artifactId>smart-load-test</artifactId>
- <groupId>com.smartitengineering</groupId>
- <version>0.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.smartitengineering.smart-load-test-engine</groupId>
- <artifactId>smart-load-test-engine-impl</artifactId>
- <name>smart-load-test-engine-impl</name>
- <version>${parent.version}</version>
- <url>http://code.google.com/p/smart-load-test/</url>
- <description>
+ <parent>
+ <artifactId>smart-load-test</artifactId>
+ <groupId>com.smartitengineering</groupId>
+ <version>0.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.smartitengineering.smart-load-test-engine</groupId>
+ <artifactId>smart-load-test-engine-impl</artifactId>
+ <name>smart-load-test-engine-impl</name>
+ <version>${parent.version}</version>
+ <url>http://code.google.com/p/smart-load-test/</url>
+ <description>
This module will contain the default implementation of the
different
engines, namingly it will contain the db persistence, file system
persistence, engine impl and console UI impl.
- </description>
- <developers>
- <developer>
- <id>imyousuf</id>
- <name>Imran M Yousuf</name>
- <email>imyo...@smartitengineering.com</email>
- </developer>
- </developers>
- <build>
+ </description>
+ <profiles>
+ <profile>
+ <id>db-schema</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ <file>
+ <exists>src/database/db-connection-params.properties</exists>
+ </file>
+ </activation>
+ <build>
<plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0-alpha-2</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <files>
+
<file>src/database/db-connection-params.properties</file>
+ </files>
</configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>properties-maven-plugin</artifactId>
- <version>1.0-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>initialize</phase>
- <goals>
- <goal>read-project-properties</goal>
- </goals>
- <configuration>
- <files>
-
<file>src/database/db-connection-params.properties</file>
- </files>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>ddlutils-compile</id>
- <phase>compile</phase>
- <configuration>
- <tasks>
- <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>ddlutils-compile</id>
+ <phase>compile</phase>
+ <configuration>
+ <tasks>
+ <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
name="ddlToDatabase"

classpathref="maven.compile.classpath"/>
- <mkdir
dir="${project.build.directory}/database"/>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.mysql.driver}"
+ <mkdir dir="${project.build.directory}/database"/>
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.mysql.driver}"
url="${db.mysql.url}"

username="${db.mysql.username}"

password="${db.mysql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.mysql.product_name}-ddl.sql"
alterdatabase="false" />
- </ddlToDatabase>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.pgsql.driver}"
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.mysql.product_name}-ddl.sql"
alterdatabase="false" />
+ </ddlToDatabase>
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.pgsql.driver}"
url="${db.pgsql.url}"

username="${db.pgsql.username}"

password="${db.pgsql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.pgsql.product_name}-ddl.sql"
alterdatabase="false" />
- </ddlToDatabase>
- </tasks>
-
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>ddlutils-install</id>
- <phase>install</phase>
- <configuration>
- <tasks>
- <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.pgsql.product_name}-ddl.sql"
alterdatabase="false" />
+ </ddlToDatabase>
+ </tasks>
+
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>ddlutils-install</id>
+ <phase>install</phase>
+ <configuration>
+ <tasks>
+ <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
name="ddlToDatabase"

classpathref="maven.compile.classpath"/>
- <mkdir
dir="${project.build.directory}/database"/>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.mysql.driver}"
+ <mkdir dir="${project.build.directory}/database"/>
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.mysql.driver}"
url="${db.mysql.url}"

username="${db.mysql.username}"

password="${db.mysql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.mysql.product_name}-alter-ddl.sql"
alterdatabase="true" />
- </ddlToDatabase>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.pgsql.driver}"
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.mysql.product_name}-alter-ddl.sql"
alterdatabase="true" />
+ </ddlToDatabase>
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.pgsql.driver}"
url="${db.pgsql.url}"

username="${db.pgsql.username}"

password="${db.pgsql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.pgsql.product_name}-alter-ddl.sql"
alterdatabase="true" />
- </ddlToDatabase>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>ddlutils-deploy</id>
- <phase>deploy</phase>
- <configuration>
- <tasks>
- <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <writeschemasqltofile
outputfile="${project.build.directory}/database/${db.pgsql.product_name}-alter-ddl.sql"
alterdatabase="true" />
+ </ddlToDatabase>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>ddlutils-deploy</id>
+ <phase>deploy</phase>
+ <configuration>
+ <tasks>
+ <taskdef
classname="org.apache.ddlutils.task.DdlToDatabaseTask"
name="ddlToDatabase"

classpathref="maven.compile.classpath"/>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.pgsql.driver}"
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.pgsql.driver}"
url="${db.pgsql.url}"

username="${db.pgsql.username}"

password="${db.pgsql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <createDatabase failonerror="false" />
- <writeSchemaToDatabase
alterdatabase="true" />
- </ddlToDatabase>
- <ddlToDatabase
usedelimitedsqlidentifiers="true">
- <database
driverclassname="${db.mysql.driver}"
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <createDatabase failonerror="false" />
+ <writeSchemaToDatabase alterdatabase="true" />
+ </ddlToDatabase>
+ <ddlToDatabase usedelimitedsqlidentifiers="true">
+ <database driverclassname="${db.mysql.driver}"
url="${db.mysql.url}"

username="${db.mysql.username}"

password="${db.mysql.password}"/>
- <fileset dir="./src/database/">
- <include name="schema.xml"/>
- </fileset>
- <createDatabase failonerror="false" />
- <writeSchemaToDatabase
alterdatabase="true" />
- </ddlToDatabase>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <fileset dir="./src/database/">
+ <include name="schema.xml"/>
+ </fileset>
+ <createDatabase failonerror="false" />
+ <writeSchemaToDatabase alterdatabase="true" />
+ </ddlToDatabase>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.smartitengineering</groupId>
- <artifactId>smart-load-test-engine</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.smartitengineering</groupId>
- <artifactId>smart-abstract-dao</artifactId>
- <version>${abstract-dao-version}</version>
- </dependency>
- <dependency>
- <groupId>com.smartitengineering</groupId>
- <artifactId>smart-hibernate-abstract-dao</artifactId>
- <version>${abstract-dao-version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.6</version>
- </dependency>
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>8.2-507.jdbc3</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ddlutils</groupId>
- <artifactId>ddlutils</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>c3p0</groupId>
- <artifactId>c3p0</artifactId>
- <version>0.9.1.2</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.9</version>
- </dependency>
- </dependencies>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.smartitengineering</groupId>
+ <artifactId>smart-load-test-engine</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.smartitengineering</groupId>
+ <artifactId>smart-abstract-dao</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.smartitengineering</groupId>
+ <artifactId>smart-hibernate-abstract-dao</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>8.2-507.jdbc3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ddlutils</groupId>
+ <artifactId>ddlutils</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>c3p0</groupId>
+ <artifactId>c3p0</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.9</version>
+ </dependency>
+ </dependencies>
</project>
=======================================
---
/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/persistence/db/DatabasePersistentTestResultEngineImpl.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/persistence/db/DatabasePersistentTestResultEngineImpl.java
Sat Dec 15 05:42:12 2012
@@ -39,7 +39,7 @@
public class DatabasePersistentTestResultEngineImpl
implements PersistentTestResultEngine {

- private CommonReadDao<TestResult> persistentEngineDao;
+ private CommonReadDao<TestResult, Integer> persistentEngineDao;
private CommonWriteDao<TestResult> persistentWriteEngineDao;

public List<TestResult> getAllResults() {
@@ -150,12 +150,12 @@
return new ArrayList<TestResult>(new
HashSet<TestResult>(searchResults));
}

- public CommonReadDao<TestResult> getPersistentEngineDao() {
+ public CommonReadDao<TestResult, Integer> getPersistentEngineDao() {
return persistentEngineDao;
}

public void setPersistentEngineDao(
- CommonReadDao<TestResult> persistentEngineDao) {
+ CommonReadDao<TestResult, Integer> persistentEngineDao) {
this.persistentEngineDao = persistentEngineDao;
}

=======================================
--- /smart-load-test-engine/pom.xml Fri Dec 14 20:45:01 2012
+++ /smart-load-test-engine/pom.xml Sat Dec 15 05:42:12 2012
@@ -28,71 +28,23 @@
<artifactId>smart-load-test-engine</artifactId>
<name>smart-load-test-engine</name>
<version>${parent.version}</version>
- <url>http://code.google.com/p/smart-load-test/</url>
<description>
This module is responsible for executing the load tests
and gathering the test results. It is also responsible for
result persistence.
</description>
- <developers>
- <developer>
- <name>Imran M Yousuf</name>
- <email>imyo...@smartitengineering.com</email>
- </developer>
- </developers>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
- <version>2.1</version>
</dependency>
<dependency>
<groupId>com.smartitengineering</groupId>
<artifactId>smart-abstract-dao</artifactId>
- <version>${abstract-dao-version}</version>
</dependency>
</dependencies>
- <repositories>
- <repository>
- <id>maven2-repository.dev.java.net</id>
- <name>Java.net Repository for Maven</name>
- <url>http://download.java.net/maven/2/</url>
- <layout>default</layout>
- </repository>
- </repositories>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <attach>true</attach>
- </configuration>
- <executions>
- <execution>
- <id>gen-javadoc</id>
- <phase>install</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
</project>
=======================================
---
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/KeyedInformation.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/KeyedInformation.java
Sat Dec 15 05:42:12 2012
@@ -28,9 +28,7 @@
* @author imyousuf
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
-public class KeyedInformation
- extends AbstractPersistentDTO<KeyedInformation>
- implements PersistentDTO<KeyedInformation> {
+public class KeyedInformation extends
AbstractPersistentDTO<KeyedInformation> {

private String key;
private String value;
=======================================
---
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseInstanceResult.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseInstanceResult.java
Sat Dec 15 05:42:12 2012
@@ -19,7 +19,6 @@
package com.smartitengineering.loadtest.engine.result;

import com.smartitengineering.domain.AbstractPersistentDTO;
-import com.smartitengineering.domain.PersistentDTO;
import com.smartitengineering.loadtest.engine.TestCase;
import java.util.Date;
import java.util.HashSet;
@@ -32,9 +31,7 @@
* @author imyousuf
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
-public class TestCaseInstanceResult
- extends AbstractPersistentDTO<TestCaseInstanceResult>
- implements PersistentDTO<TestCaseInstanceResult> {
+public class TestCaseInstanceResult extends
AbstractPersistentDTO<TestCaseInstanceResult> {

private Date startTime;
private Date endTime;
=======================================
---
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseResult.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestCaseResult.java
Sat Dec 15 05:42:12 2012
@@ -19,7 +19,6 @@
package com.smartitengineering.loadtest.engine.result;

import com.smartitengineering.domain.AbstractPersistentDTO;
-import com.smartitengineering.domain.PersistentDTO;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
@@ -30,9 +29,7 @@
* @author imyousuf
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
-public class TestCaseResult
- extends AbstractPersistentDTO<TestCaseResult>
- implements PersistentDTO<TestCaseResult> {
+public class TestCaseResult extends AbstractPersistentDTO<TestCaseResult> {

private String name;
private String instanceFactoryClassName;
=======================================
---
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestProperty.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestProperty.java
Sat Dec 15 05:42:12 2012
@@ -19,7 +19,6 @@
package com.smartitengineering.loadtest.engine.result;

import com.smartitengineering.domain.AbstractPersistentDTO;
-import com.smartitengineering.domain.PersistentDTO;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

@@ -28,54 +27,52 @@
* @author imyousuf
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
-public class TestProperty
- extends AbstractPersistentDTO<TestProperty>
- implements PersistentDTO<TestProperty> {
+public class TestProperty extends AbstractPersistentDTO<TestProperty> {

- private String key;
- private String value;
+ private String key;
+ private String value;

- public boolean isValid() {
- if (key != null && value != null) {
- return true;
- }
- return false;
+ public boolean isValid() {
+ if (key != null && value != null) {
+ return true;
}
+ return false;
+ }

- @Override
- public Object clone() {
- TestProperty property = new TestProperty();
- super.clone(property);
- property.setKey(key);
- property.setValue(value);
- return property;
- }
+ @Override
+ public Object clone() {
+ TestProperty property = new TestProperty();
+ super.clone(property);
+ property.setKey(key);
+ property.setValue(value);
+ return property;
+ }

- @Override
- public boolean equals(Object obj) {
- if (super.equals(obj) && obj instanceof TestProperty) {
- TestProperty resultObj = (TestProperty) obj;
- if (key != null && resultObj.key != null &&
- key.equals(resultObj.key)) {
- return true;
- }
- }
- return false;
+ @Override
+ public boolean equals(Object obj) {
+ if (super.equals(obj) && obj instanceof TestProperty) {
+ TestProperty resultObj = (TestProperty) obj;
+ if (key != null && resultObj.key != null &&
+ key.equals(resultObj.key)) {
+ return true;
+ }
}
+ return false;
+ }

- public String getKey() {
- return key;
- }
+ public String getKey() {
+ return key;
+ }

- public void setKey(String key) {
- this.key = key;
- }
+ public void setKey(String key) {
+ this.key = key;
+ }

- public String getValue() {
- return value;
- }
+ public String getValue() {
+ return value;
+ }

- public void setValue(String value) {
- this.value = value;
- }
+ public void setValue(String value) {
+ this.value = value;
+ }
}
=======================================
---
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestResult.java
Fri Dec 14 20:45:01 2012
+++
/smart-load-test-engine/src/main/java/com/smartitengineering/loadtest/engine/result/TestResult.java
Sat Dec 15 05:42:12 2012
@@ -19,7 +19,6 @@
package com.smartitengineering.loadtest.engine.result;

import com.smartitengineering.domain.AbstractPersistentDTO;
-import com.smartitengineering.domain.PersistentDTO;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
@@ -33,8 +32,7 @@
*/
@XmlRootElement
@XmlAccessorType(XmlAccessType.PROPERTY)
-public class TestResult
- extends AbstractPersistentDTO<TestResult> implements
PersistentDTO<TestResult> {
+public class TestResult extends AbstractPersistentDTO<TestResult>{

private String testName;
private Date startDateTime;
Reply all
Reply to author
Forward
0 new messages