mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 18:59:39 +02:00
Kotlin conversion: UserId
This commit is contained in:
parent
ec8ae3eff0
commit
68ac5af255
3 changed files with 209 additions and 360 deletions
|
@ -197,15 +197,14 @@ public class UserIdTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void asStringTest() {
|
||||
UserId id = UserId.newBuilder()
|
||||
public void toStringTest() {
|
||||
UserId id = UserId.builder()
|
||||
.withName("Alice")
|
||||
.withComment("Work Email")
|
||||
.withEmail("alice@pgpainless.org")
|
||||
.build();
|
||||
|
||||
// noinspection deprecation
|
||||
assertEquals(id.toString(), id.asString());
|
||||
assertEquals(id.toString(), id.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue