Skip to content

Commit d63761b

Browse files
committed
refactor: use FriendlyIds in type.FriendlyIdTest
1 parent a546343 commit d63761b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

friendly-id/src/test/java/com/devskiller/friendly_id/type/FriendlyIdTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import java.util.UUID;
66

7+
import static com.devskiller.friendly_id.FriendlyIds.toFriendlyId;
78
import static com.devskiller.friendly_id.type.FriendlyId.friendlyId;
89
import static org.junit.jupiter.api.Assertions.*;
910

@@ -55,7 +56,7 @@ void shouldConvertToString() {
5556
String result = friendlyId.toString();
5657

5758
// then
58-
assertEquals(com.devskiller.friendly_id.FriendlyId.toFriendlyId(uuid), result);
59+
assertEquals(toFriendlyId(uuid), result);
5960
}
6061

6162
@Test
@@ -128,7 +129,7 @@ void shouldBeEqualRegardlessOfCreationMethod() {
128129

129130
// when
130131
FriendlyId fromUuid = FriendlyId.of(uuid);
131-
FriendlyId parsed = FriendlyId.parse(com.devskiller.friendly_id.FriendlyId.toFriendlyId(uuid));
132+
FriendlyId parsed = FriendlyId.parse(toFriendlyId(uuid));
132133

133134
// then
134135
assertEquals(fromUuid, parsed);
@@ -210,7 +211,7 @@ void shouldReturnValueAsString() {
210211

211212
// then
212213
assertEquals(id.toString(), value);
213-
assertEquals(com.devskiller.friendly_id.FriendlyId.toFriendlyId(uuid), value);
214+
assertEquals(toFriendlyId(uuid), value);
214215
}
215216

216217
}

0 commit comments

Comments
 (0)