Skip to content

Commit

Permalink
improved javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed May 16, 2019
1 parent de69d59 commit f32efef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
34 changes: 17 additions & 17 deletions src/main/java/com/xceptance/neodymium/util/DataUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ public static String randomEmail()
*/
public static String randomPassword()
{
final String upper = new RandomStringGenerator.Builder().selectFrom("abcdefghijklmnopqrstuvwxyz".toUpperCase().toCharArray())
.build()
final String upper = new RandomStringGenerator.Builder().selectFrom("abcdefghijklmnopqrstuvwxyz".toUpperCase().toCharArray()).build()
.generate(Neodymium.configuration().dataUtilsPasswordUppercaseCharAmount());

final String lower = new RandomStringGenerator.Builder().selectFrom("abcdefghijklmnopqrstuvwxyz".toCharArray()).build()
.generate(Neodymium.configuration().dataUtilsPasswordLowercaseCharAmount());

final String number = new RandomStringGenerator.Builder().selectFrom("0123456789".toCharArray()).build()
.generate(Neodymium.configuration().dataUtilsPasswordDigitAmount());
final String special = new RandomStringGenerator.Builder().selectFrom(Neodymium.configuration().dataUtilsPasswordSpecialChars()
.toCharArray())
.build()

final String special = new RandomStringGenerator.Builder().selectFrom(Neodymium.configuration().dataUtilsPasswordSpecialChars().toCharArray()).build()
.generate(Neodymium.configuration().dataUtilsPasswordSpecialCharAmount());

final char[] all = (upper + lower + number + special).toCharArray();
Expand Down Expand Up @@ -76,7 +76,7 @@ public static <T> T get(final Class<T> clazz)
*
* @param key
* Name of the test data key
* @return {@link String} if the key was found
* @return mapped value as {@link String} if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -98,7 +98,7 @@ public static String asString(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link String} if the key was found else defaultValue
* @return mapped value as {@link String} if the key was found else defaultValue
*/
public static String asString(String key, String defaultValue)
{
Expand All @@ -117,7 +117,7 @@ public static String asString(String key, String defaultValue)
*
* @param key
* Name of the test data key
* @return int if the key was found
* @return mapped value as int if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -133,7 +133,7 @@ public static int asInt(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link int} if the key was found else defaultValue
* @return mapped value as int if the key was found else defaultValue
*/
public static int asInt(String key, int defaultValue)
{
Expand All @@ -152,7 +152,7 @@ public static int asInt(String key, int defaultValue)
*
* @param key
* Name of the test data key
* @return long if the key was found
* @return mapped value as long if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -168,7 +168,7 @@ public static long asLong(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link long} if the key was found else defaultValue
* @return mapped value as long if the key was found else defaultValue
*/
public static long asLong(String key, long defaultValue)
{
Expand All @@ -187,7 +187,7 @@ public static long asLong(String key, long defaultValue)
*
* @param key
* Name of the test data key
* @return double if the key was found
* @return mapped value as double if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -203,7 +203,7 @@ public static double asDouble(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link double} if the key was found else defaultValue
* @return mapped value as double if the key was found else defaultValue
*/
public static double asDouble(String key, double defaultValue)
{
Expand All @@ -222,7 +222,7 @@ public static double asDouble(String key, double defaultValue)
*
* @param key
* Name of the test data key
* @return float if the key was found
* @return mapped value as float if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -238,7 +238,7 @@ public static float asFloat(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link float} if the key was found else defaultValue
* @return mapped value as float if the key was found else defaultValue
*/
public static float asFloat(String key, float defaultValue)
{
Expand All @@ -257,7 +257,7 @@ public static float asFloat(String key, float defaultValue)
*
* @param key
* Name of the test data key
* @return boolean if the key was found
* @return mapped value as boolean if the key was found
* @throws IllegalArgumentException
* if the key was NOT found
*/
Expand All @@ -273,7 +273,7 @@ public static boolean asBool(String key)
* Name of test data key
* @param defaultValue
* a value that will be returned if the key was not found
* @return {@link boolean} if the key was found else defaultValue
* @return mapped value as boolean if the key was found else defaultValue
*/
public static boolean asBool(String key, boolean defaultValue)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public FeaturePoint(int x, int y, int score)
* Y axis coordinate.
* @param score
* Score.
* @param value.
* @param value
* Value.
*/
public FeaturePoint(int x, int y, int score, boolean value)
{
Expand Down

0 comments on commit f32efef

Please sign in to comment.