diff --git a/src/test/java/com/educoder/bridge/user/util/JwtUtilsTest.java b/src/test/java/com/educoder/bridge/user/util/JwtUtilsTest.java new file mode 100644 index 0000000..2a0d638 --- /dev/null +++ b/src/test/java/com/educoder/bridge/user/util/JwtUtilsTest.java @@ -0,0 +1,21 @@ +package com.educoder.bridge.user.util; + +import java.util.Date; + +import org.junit.Test; + +import com.educoder.bridge.user.model.User; + +public class JwtUtilsTest { + + @Test + public void test() { + User user = new User(); + user.setName("innov"); + long expireTime = System.currentTimeMillis() + 1000L * 60 * 30; + Date expireDatePoint = new Date(expireTime); + String str = JwtUtils.genToken(user, expireDatePoint); + System.out.println(str); + } + +}