--- a/classes/hirondelle/web4j/TESTAll.java Wed Dec 04 17:01:49 2013 +0100
+++ b/classes/hirondelle/web4j/TESTAll.java Fri Dec 06 10:37:28 2013 +0100
@@ -79,6 +79,12 @@
}
public static Test suite ( ) {
+ //just use the default implementations
+ BuildImpl.adHocImplementationAdd(TimeSource.class, TimeSourceImpl.class);
+ BuildImpl.adHocImplementationAdd(PermittedCharacters.class, PermittedCharactersImpl.class);
+ //use an impl for testing
+ BuildImpl.adHocImplementationAdd(DateConverter.class, DateConverterImpl.class);
+
TestSuite suite= new TestSuite("All JUnit Tests");
//model package
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pom.xml Fri Dec 06 10:37:28 2013 +0100
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+ <groupId>hirondelle.web4j</groupId>
+ <artifactId>web4j</artifactId>
+ <packaging>jar</packaging>
+ <version>4.10.0_1-SNAPSHOT</version>
+ <name>web4j</name>
+ <description>Minimalistic full-stack webapp framework</description>
+ <url>http://www.web4j.com</url>
+ <inceptionYear>2004</inceptionYear>
+ <organization>
+ <name>Hirondelle Systems</name>
+ <url>http://www.web4j.com</url>
+ </organization>
+ <licenses>
+ <license>
+ <name>BSD</name>
+ <url>./LICENSE.txt</url>
+ </license>
+ </licenses>
+
+ <mailingLists>
+ <mailingList>
+ <name>Announcements/Support</name>
+ <post>http://groups.google.com/group/web4j-users</post>
+ </mailingList>
+ </mailingLists>
+
+ <!-- project build -->
+ <build>
+ <sourceDirectory>${basedir}/classes</sourceDirectory>
+ <testSourceDirectory>${basedir}/classes</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <encoding>UTF-8</encoding>
+ <excludes>
+ <exclude>**/*TEST*.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <includes>
+ <include>**/*TESTAll.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!-- project reports -->
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <configuration>
+ <linkXref>true</linkXref>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <targetJdk>1.6</targetJdk>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <!-- project dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ <version>1.4</version>
+ </dependency>
+
+ <!-- testing -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.10</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+</project>