com.github.javafaker
Class Lorem

java.lang.Object
  extended by com.github.javafaker.Lorem

public class Lorem
extends Object


Constructor Summary
Lorem(FakeValuesService fakeValuesService, RandomService randomService)
           
 
Method Summary
 String fixedString(int numberOfLetters)
          Create a string with a fixed size.
 String paragraph()
           
 String paragraph(int sentenceCount)
           
 List<String> paragraphs(int paragraphCount)
           
 String sentence()
           
 String sentence(int wordCount)
           
 List<String> sentences(int sentenceCount)
           
 List<String> words()
           
 List<String> words(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lorem

public Lorem(FakeValuesService fakeValuesService,
             RandomService randomService)
Method Detail

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.