Skip to content

Commit

Permalink
Consistent naming for Strings: Text for value type, String for java type
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Sep 17, 2018
1 parent 1bbaa60 commit ab33db0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Expand Up @@ -270,7 +270,7 @@ public void testIndexRangeSeekByDurationArray() throws Exception
@Test
public void testIndexRangeSeekByTextArray() throws Exception
{
testIndexRangeSeekArray( () -> random.randomValues().nextStringArray() );
testIndexRangeSeekArray( () -> random.randomValues().nextTextArray() );
}

@Test
Expand Down
Expand Up @@ -81,7 +81,7 @@ public void setup()
// DURATION_ARRAY
values.add( rnd.nextDurationArray() );
// TEXT_ARRAY
values.add( rnd.nextStringArray() );
values.add( rnd.nextTextArray() );
// BOOLEAN_ARRAY
values.add( rnd.nextBooleanArray() );
// NUMBER_ARRAY (byte, short, int, long, float, double)
Expand Down
Expand Up @@ -403,7 +403,7 @@ private void assertHighestStringArray()
{
for ( int i = 0; i < 1000; i++ )
{
assertHighest( random.randomValues().nextStringArray() );
assertHighest( random.randomValues().nextTextArray() );
}
}

Expand Down Expand Up @@ -518,8 +518,8 @@ private static ValueGenerator[] listValueGenerators( boolean includeLossy )
() -> random.randomValues().nextLocalTimeArray(),
() -> random.randomValues().nextDurationArray(),
() -> random.randomValues().nextDurationArray(),
() -> random.randomValues().nextStringArray(),
() -> random.randomValues().nextAlphaNumericStringArray(),
() -> random.randomValues().nextTextArray(),
() -> random.randomValues().nextAlphaNumericTextArray(),
() -> random.randomValues().nextBooleanArray(),
() -> random.randomValues().nextByteArray(),
() -> random.randomValues().nextShortArray(),
Expand Down
Expand Up @@ -368,9 +368,9 @@ public Value nextValueOfType( Types type )
case DOUBLE_ARRAY:
return nextDoubleArray();
case STRING_ARRAY:
return nextStringArray();
return nextTextArray();
case STRING_ALPHANUMERIC_ARRAY:
return nextAlphaNumericStringArray();
return nextAlphaNumericTextArray();
case STRING_ASCII_ARRAY:
return nextAsciiTextArray();
case STRING_BMP_ARRAY:
Expand Down Expand Up @@ -1255,7 +1255,7 @@ public boolean[] nextBooleanArrayRaw( int minLength, int maxLength )
*
* @return the next pseudorandom {@link TextArray}.
*/
public TextArray nextAlphaNumericStringArray()
public TextArray nextAlphaNumericTextArray()
{
String[] array = nextAlphaNumericStringArrayRaw( minArray(), maxArray(), minString(), maxString() );
return Values.stringArray( array );
Expand Down Expand Up @@ -1286,7 +1286,7 @@ private TextArray nextBasicMultilingualPlaneTextArray()
*
* @return the next pseudorandom {@link TextArray}.
*/
public TextArray nextStringArray()
public TextArray nextTextArray()
{
String[] array = nextStringArrayRaw( minArray(), maxArray(), minString(), maxString() );
return Values.stringArray( array );
Expand Down

0 comments on commit ab33db0

Please sign in to comment.