-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from djhvscf/develop
Merge first release
- Loading branch information
Showing
194 changed files
with
34,022 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/commons-io-1.3.2.jar"/> | ||
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/json-20140107.jar"/> | ||
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/jxl.jar"/> | ||
<classpathentry kind="lib" path="C:/Users/Dennis Hernandez/Documents/GitHub/mockaroo.api/dependencies/mysql-connector-java-5.1.31.jar"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.project | ||
.classpath | ||
*.classpath | ||
.settings/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>mockaroo.api</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,56 @@ | ||
mockaroo.api | ||
============ | ||
Mockaroo API | ||
================ | ||
|
||
Mockaroo API is an API that let us generate random data and insert into our data base. That's it.<br /> | ||
This API is based in JSON Objects. | ||
|
||
Author Homepage: http://djhv92.wix.com/dennishernandez<br /> | ||
|
||
How to use it? | ||
============== | ||
|
||
MockarooApi mockarooApi = new MockarooApi("Apikey", "application/json"); | ||
|
||
HttpURLConnection conn = mockarooApi.getUrl().openConnecion(); | ||
MockarooCreateJSONObject creater = mockarooApi.getCreater(); | ||
JSONArray array= new JSONArray(); | ||
array.put("R+D"); | ||
array.put("Marketing"); | ||
array.put("HR"); | ||
|
||
JSONArray columns = new JSONArray(); | ||
columns.put(creater.createCustomList("department", array)); | ||
columns.put(creater.createFirstName("name")); | ||
|
||
JSONObject data = mockarooApi.getJSONObject(conn, columns); | ||
|
||
MockarooDataAccess dataAccess = new MockarooDataAccess("databaseDriver", "localhost", "username", "password"); | ||
String[] columnsTable = new String[2]; | ||
columnsTable[0] = "department"; | ||
columnsTable[1] = "name"; | ||
mockarooApi.Insert(data, dataAccess, "tableName", columnsTable);//Insert into a data base | ||
MockarooFile test = new MockarooExcel("c:/temp/","test","testing","en", "EN"); | ||
test.write(data); //Generate a Excel file | ||
MockarooFile json = new MockarooJSON("c:/temp/", "test"); | ||
json.write(data); //Generate a .json file | ||
|
||
Dependencies | ||
============= | ||
Not yet. | ||
|
||
Repo Contents | ||
============= | ||
Not yet. | ||
|
||
Release history | ||
====================== | ||
Not yet. | ||
|
||
Download mockarooapi.jar | ||
======================= | ||
Not yet. | ||
|
||
Mockaroo api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/testMockarooApi | ||
/com |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<!-- NewPage --> | ||
<html lang="en"> | ||
<head> | ||
<!-- Generated by javadoc (version 1.7.0_45) on Wed Jul 16 17:03:49 CST 2014 --> | ||
<title>All Classes</title> | ||
<meta name="date" content="2014-07-16"> | ||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> | ||
</head> | ||
<body> | ||
<h1 class="bar">All Classes</h1> | ||
<div class="indexContainer"> | ||
<ul> | ||
<li><a href="com/mockaroo/api/dataTypes/Blank.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">Blank</a></li> | ||
<li><a href="com/mockaroo/api/dataTypes/Boolean.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">Boolean</a></li> | ||
<li><a href="com/mockaroo/api/interfaces/ICreateJSONObjectHelper.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>ICreateJSONObjectHelper</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IMockarooDataType.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IMockarooDataType</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IUrl.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IUrl</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IValidatorHelper.html" title="interface in com.mockaroo.api.interfaces" target="classFrame"><i>IValidatorHelper</i></a></li> | ||
<li><a href="com/mockaroo/api/MockarooApi.html" title="class in com.mockaroo.api" target="classFrame">MockarooApi</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooCreateJSONObject.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooCreateJSONObject</a></li> | ||
<li><a href="com/mockaroo/api/helpers/MockarooCreateJSONObjectHelper.html" title="class in com.mockaroo.api.helpers" target="classFrame">MockarooCreateJSONObjectHelper</a></li> | ||
<li><a href="com/mockaroo/api/MockarooDataAccess.html" title="class in com.mockaroo.api" target="classFrame">MockarooDataAccess</a></li> | ||
<li><a href="com/mockaroo/api/dataTypes/MockarooDataType.html" title="class in com.mockaroo.api.dataTypes" target="classFrame">MockarooDataType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooDateType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooDateType</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooException.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooException</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionArray.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionArray</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormatTime.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionFormatTime</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormula.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionFormula</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionJSONArray.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionJSONArray</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionMyList.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionMyList</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionName.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionName</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionNumber.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionNumber</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionRegExpValue.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionRegExpValue</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionValue.html" title="class in com.mockaroo.api.exceptions" target="classFrame">MockarooExceptionValue</a></li> | ||
<li><a href="com/mockaroo/api/MockarooJSON.html" title="class in com.mockaroo.api" target="classFrame">MockarooJSON</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooMoneyType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooMoneyType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooTimeType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooTimeType</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooType.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooType.html" title="enum in com.mockaroo.api.enums" target="classFrame">MockarooType</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooType.Type.html" title="enum in com.mockaroo.api.classes" target="classFrame">MockarooType.Type</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooUrl.html" title="class in com.mockaroo.api.classes" target="classFrame">MockarooUrl</a></li> | ||
<li><a href="com/mockaroo/api/helpers/MockarooValidatorHelper.html" title="class in com.mockaroo.api.helpers" target="classFrame">MockarooValidatorHelper</a></li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<!-- NewPage --> | ||
<html lang="en"> | ||
<head> | ||
<!-- Generated by javadoc (version 1.7.0_45) on Wed Jul 16 17:03:49 CST 2014 --> | ||
<title>All Classes</title> | ||
<meta name="date" content="2014-07-16"> | ||
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> | ||
</head> | ||
<body> | ||
<h1 class="bar">All Classes</h1> | ||
<div class="indexContainer"> | ||
<ul> | ||
<li><a href="com/mockaroo/api/dataTypes/Blank.html" title="class in com.mockaroo.api.dataTypes">Blank</a></li> | ||
<li><a href="com/mockaroo/api/dataTypes/Boolean.html" title="class in com.mockaroo.api.dataTypes">Boolean</a></li> | ||
<li><a href="com/mockaroo/api/interfaces/ICreateJSONObjectHelper.html" title="interface in com.mockaroo.api.interfaces"><i>ICreateJSONObjectHelper</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IMockarooDataType.html" title="interface in com.mockaroo.api.interfaces"><i>IMockarooDataType</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IUrl.html" title="interface in com.mockaroo.api.interfaces"><i>IUrl</i></a></li> | ||
<li><a href="com/mockaroo/api/interfaces/IValidatorHelper.html" title="interface in com.mockaroo.api.interfaces"><i>IValidatorHelper</i></a></li> | ||
<li><a href="com/mockaroo/api/MockarooApi.html" title="class in com.mockaroo.api">MockarooApi</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooCreateJSONObject.html" title="class in com.mockaroo.api.classes">MockarooCreateJSONObject</a></li> | ||
<li><a href="com/mockaroo/api/helpers/MockarooCreateJSONObjectHelper.html" title="class in com.mockaroo.api.helpers">MockarooCreateJSONObjectHelper</a></li> | ||
<li><a href="com/mockaroo/api/MockarooDataAccess.html" title="class in com.mockaroo.api">MockarooDataAccess</a></li> | ||
<li><a href="com/mockaroo/api/dataTypes/MockarooDataType.html" title="class in com.mockaroo.api.dataTypes">MockarooDataType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooDateType.html" title="enum in com.mockaroo.api.enums">MockarooDateType</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooException.html" title="class in com.mockaroo.api.exceptions">MockarooException</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionArray.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionArray</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormatTime.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionFormatTime</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionFormula.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionFormula</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionJSONArray.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionJSONArray</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionMyList.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionMyList</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionName.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionName</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionNumber.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionNumber</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionRegExpValue.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionRegExpValue</a></li> | ||
<li><a href="com/mockaroo/api/exceptions/MockarooExceptionValue.html" title="class in com.mockaroo.api.exceptions">MockarooExceptionValue</a></li> | ||
<li><a href="com/mockaroo/api/MockarooJSON.html" title="class in com.mockaroo.api">MockarooJSON</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooMoneyType.html" title="enum in com.mockaroo.api.enums">MockarooMoneyType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooTimeType.html" title="enum in com.mockaroo.api.enums">MockarooTimeType</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooType.html" title="class in com.mockaroo.api.classes">MockarooType</a></li> | ||
<li><a href="com/mockaroo/api/enums/MockarooType.html" title="enum in com.mockaroo.api.enums">MockarooType</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooType.Type.html" title="enum in com.mockaroo.api.classes">MockarooType.Type</a></li> | ||
<li><a href="com/mockaroo/api/classes/MockarooUrl.html" title="class in com.mockaroo.api.classes">MockarooUrl</a></li> | ||
<li><a href="com/mockaroo/api/helpers/MockarooValidatorHelper.html" title="class in com.mockaroo.api.helpers">MockarooValidatorHelper</a></li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.