Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e4b6b88
update .gitignore, updated deps versions in pom.xml
boeboe Sep 14, 2014
d6d2043
Reformat code
boeboe Sep 14, 2014
fe6daa1
added getOccupation, getCountry, getCountryShort, getNationality, get…
boeboe Sep 14, 2014
9a67ebe
Add javadoc plugin
boeboe Sep 14, 2014
9dffd7c
[maven-release-plugin] prepare release datafactory-0.9
boeboe Sep 14, 2014
facefd5
[maven-release-plugin] prepare for next development iteration
boeboe Sep 14, 2014
6ec4232
Forgot to add getNationality
boeboe Sep 14, 2014
58424ca
Merge branch 'master' into HEAD
boeboe Sep 14, 2014
feae2b3
grrrr
boeboe Sep 14, 2014
abb64dd
Added nexus repo for artifact storage to nexus.allbits.org
boeboe Oct 22, 2014
7de4566
Prepare for release 0.9
boeboe Oct 22, 2014
cec3ca2
Change contact email and remove sonatype.oss plugin from before
boeboe Oct 22, 2014
abd2d9e
type on 0.8 vs 0.9
boeboe Oct 22, 2014
87b5152
[maven-release-plugin] prepare release datafactory-0.9
boeboe Oct 22, 2014
e2c4f8d
[maven-release-plugin] prepare for next development iteration
boeboe Oct 22, 2014
138c855
type on 0.8 vs 0.9
boeboe Oct 22, 2014
3bfb16b
[maven-release-plugin] prepare release datafactory-0.9
boeboe Oct 22, 2014
67f7b6e
[maven-release-plugin] prepare for next development iteration
boeboe Oct 22, 2014
d7cc3e2
type on 0.8 vs 0.9
boeboe Oct 22, 2014
9a418a9
type on 0.8 vs 0.9
boeboe Oct 22, 2014
117351f
[maven-release-plugin] prepare release datafactory-0.9
boeboe Oct 22, 2014
957ea01
[maven-release-plugin] prepare for next development iteration
boeboe Oct 22, 2014
10091d5
dummy change
boeboe Jan 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# binar
target/*
# Eclipse
.classpath
.project
.settings
.classpath/target
.classpath
.settings/

# Intellij
.idea/
*.iml
*.iws

# Mac
.DS_Store

# Maven
log/
target/
234 changes: 137 additions & 97 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,99 +1,139 @@
<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>org.fluttercode.datafactory</groupId>
<artifactId>datafactory</artifactId>
<version>0.9-SNAPSHOT</version>

<name>DataFactory</name>
<description>Library to generate data for testing</description>

<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>3</version>
</parent>

<url>http://www.andygibson.net/blog/projects/</url>

<developers>
<developer>
<name>Andy Gibson</name>
<roles>
<role>Developer</role>
</roles>
<email>contact@andygibson.net</email>
<url>www.andygibson.net</url>
</developer>
</developers>

<licenses>
<license>
<name>LGPL Version 3</name>
<url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>


<scm>
<connection>scm:git:git://github.com/andygibson/datafactory.git</connection>
<url>scm:git:git://github.com/andygibson/datafactory</url>
<developerConnection>scm:git:git@github.com:andygibson/datafactory.git</developerConnection>
</scm>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<gpg.useagent>true</gpg.useagent>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.5</version>
</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>

</plugins>

</build>

</project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.fluttercode.datafactory</groupId>
<artifactId>datafactory</artifactId>
<version>0.10-SNAPSHOT</version>

<properties>
<nexus.version>1.6.5</nexus.version>
</properties>

<name>DataFactory</name>
<description>Library to generate data for testing</description>
<url>http://lnkd.in/Kre-kR</url>

<developers>
<developer>
<name>Andy Gibson</name>
<roles>
<role>Developer</role>
</roles>
<email>contact@andygibson.net</email>
<url>www.andygibson.net</url>
</developer>
<developer>
<name>Bart Van Bos</name>
<roles>
<role>Developer</role>
</roles>
<email>bartvanbos@allbits.org</email>
<url>http://lnkd.in/Kre-kR</url>
</developer>
</developers>

<licenses>
<license>
<name>LGPL Version 3</name>
<url>http://www.gnu.org/licenses/lgpl-3.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<connection>scm:git:git://github.com/boeboe/datafactory.git</connection>
<url>scm:git:git://github.com/boeboe/datafactory</url>
<developerConnection>scm:git:git@github.com:boeboe/datafactory.git</developerConnection>
<tag>datafactory-0.9</tag>
</scm>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<mavenExecutorId>forked-path</mavenExecutorId>
<gpg.useagent>true</gpg.useagent>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</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.9.1</version>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus.version}</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus-allbits</serverId>
<nexusUrl>http://nexus.allbits.org:8081/nexus/content/repositories/releases/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>nexus-allbits</id>
<name>Internal Releases</name>
<url>http://nexus.allbits.org:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-allbits</id>
<name>Internal Snapshots</name>
<url>http://nexus.allbits.org:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
3 changes: 2 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Java library for creating test data
Java library for creating test data

58 changes: 41 additions & 17 deletions src/main/java/org/fluttercode/datafactory/AddressDataValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,47 @@
*
*/


public interface AddressDataValues {

/**
* @return Array of street address
*/
String[] getStreetNames();

/**
* @return Array of cities
*/
String[] getCities();

/**
* Returns a list of address suffixes such as "Lane", "Drive","Parkway"
* @return Array of address suffixes
*/
String[] getAddressSuffixes();

/**
* Returns an array of street addresses.
*
* @return array of street addresses
*/
String[] getStreetNames();

/**
* Returns an array of cities.
*
* @return array of cities
*/
String[] getCities();

/**
* Returns an array of address suffixes such as "Lane", "Drive", "Parkway".
*
* @return array of address suffixes
*/
String[] getAddressSuffixes();

/**
* Returns an array of countries.
*
* @return array of countries
*/
String[] getCountries();

/**
* Returns an array of country abbreviations.
*
* @return array of country abbreviations
*/
String[] getCountriesShort();

/**
* Returns an array of nationalities.
*
* @return array of nationalities
*/
String[] getNationalities();
}
10 changes: 6 additions & 4 deletions src/main/java/org/fluttercode/datafactory/ContentDataValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@

public interface ContentDataValues {

String[] getWords();
String[] getWords();

String[] getBusinessTypes();
String[] getBusinessTypes();

String[] getEmailHosts();
String[] getEmailHosts();

String[] getTlds();
String[] getTlds();

String[] getOccupations();
}
12 changes: 7 additions & 5 deletions src/main/java/org/fluttercode/datafactory/NameDataValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
*
*/


public interface NameDataValues {

String[] getFirstNames();
String[] getLastNames();
String[] getPrefixes();
String[] getSuffixes();
String[] getFirstNames();

String[] getLastNames();

String[] getPrefixes();

String[] getSuffixes();

}
Loading