Package de.cuioss.test.generator.domain
Class FullNameGenerator
- java.lang.Object
-
- de.cuioss.test.generator.domain.FullNameGenerator
-
- All Implemented Interfaces:
TypedGenerator<String>
public class FullNameGenerator extends Object implements TypedGenerator<String>
Generates name strings in the form of 'firstname lastname', depending on the givenLocale- Author:
- Oliver Wolff
-
-
Constructor Summary
Constructors Constructor Description FullNameGenerator(Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringnext()Generates the next instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.cuioss.test.generator.TypedGenerator
getType
-
-
-
-
Constructor Detail
-
FullNameGenerator
public FullNameGenerator(Locale locale)
- Parameters:
locale- to be used for determining the concrete name-set. In case it isLocale.GERMANgerman names will be generated, in all other cases english-names.
-
-
Method Detail
-
next
public String next()
Description copied from interface:TypedGeneratorGenerates the next instance.- Specified by:
nextin interfaceTypedGenerator<String>- Returns:
- a newly created instance
-
-