Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgonan committed Oct 16, 2022
1 parent 6c4b8ea commit 9fd9521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String uuid() {
}

@Udf
public String toUuid(@UdfParameter final ByteBuffer bytes) {
public String uuid(@UdfParameter final ByteBuffer bytes) {
if (bytes == null || bytes.capacity() != 16) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void shouldHaveCorrectOutputFormat() {

@Test
public void nullValueShouldReturnNullValue() {
final String uuid = udf.toUuid(null);
final String uuid = udf.uuid(null);

assertThat(uuid, is(nullValue()));
}
Expand All @@ -70,7 +70,7 @@ public void nullValueShouldReturnNullValue() {
public void invalidCapacityShouldReturnNullValue() {
final ByteBuffer bytes = ByteBuffer.wrap(new byte[17]);

final String uuid = udf.toUuid(bytes);
final String uuid = udf.uuid(bytes);

assertThat(uuid, is(nullValue()));
}
Expand All @@ -86,7 +86,7 @@ public void shouldReturnCorrectOutputFormat() {
bytes.putLong(uuid.getLeastSignificantBits());
byte[] byteArrays = bytes.array();

final String toUuid = udf.toUuid(ByteBuffer.wrap(byteArrays));
final String toUuid = udf.uuid(ByteBuffer.wrap(byteArrays));
assertThat(toUuid, is(anUuid));
}
}

0 comments on commit 9fd9521

Please sign in to comment.