public class RandomValuePropertySource extends PropertySource<Random>
PropertySource
that returns a random value for any property that starts with
"random.". Return a byte[]
unless the property name ends with
".int or ".long".PropertySource.StubPropertySource
name, source
Constructor and Description |
---|
RandomValuePropertySource(String name) |
Modifier and Type | Method and Description |
---|---|
static void |
addToEnvironment(ConfigurableEnvironment environment) |
Object |
getProperty(String name) |
containsProperty, equals, getName, getSource, hashCode, named, toString
public RandomValuePropertySource(String name)
public Object getProperty(String name)
getProperty
in class PropertySource<Random>
public static void addToEnvironment(ConfigurableEnvironment environment)
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.