com.github.javafaker
Class Lorem
java.lang.Object
com.github.javafaker.Lorem
public class Lorem
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Lorem
public Lorem(FakeValuesService fakeValuesService,
RandomService randomService)
words
public List<String> words(int num)
words
public List<String> words()
sentence
public String sentence(int wordCount)
sentence
public String sentence()
sentences
public List<String> sentences(int sentenceCount)
paragraph
public String paragraph(int sentenceCount)
paragraph
public String paragraph()
paragraphs
public List<String> paragraphs(int paragraphCount)
fixedString
public String fixedString(int numberOfLetters)
- Create a string with a fixed size. Can be useful for testing
validator based on length string for example
- Parameters:
numberOfLetters
- size of the expected String
- Returns:
- a string with a fixed size
Copyright © 2015. All Rights Reserved.