andygibson / datafactory Goto Github PK
View Code? Open in Web Editor NEWJava library for generating test data
License: GNU Lesser General Public License v3.0
Java library for generating test data
License: GNU Lesser General Public License v3.0
dataFactory.getRandomText(20, 40)
for example only generates strings with random characters. The reason seems to be that the method passes the length of the whole text to the getRandomWord(length)
method, which doesn't find a single word for that length.
getNumber() is throwing Exception
java.lang.IllegalArgumentException: bound must be positive
In Implementation you are using Integer.MIN_VALUE and Integer.MAX_Value, and when you subtract maximum value to minimum value it always returns -1,
random.nextInt(-1) throws exception
String "or maybe" in words array is not a word. It's two words.
So that we may conveniently see the methods available.
At line 503 of DataFactory.java, the following method
public String getRandomWord(int length) {
return getRandomWord(length, length);
}
should be
public String getRandomWord(int length) {
return getRandomWord(0, length);
}
getRandomText(min,max) is not generating any word of maximum length
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.