mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2026-01-07 19:31:48 +08:00
🔀 合并Braavos96提交的github PR #16
This commit is contained in:
parent
5c0b8eb94a
commit
93bee4f5d9
@ -3,6 +3,9 @@ package me.zhyd.oauth.utils;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class GlobalAuthUtilTest {
|
||||
|
||||
@Test
|
||||
@ -24,7 +27,9 @@ public class GlobalAuthUtilTest {
|
||||
|
||||
@Test
|
||||
public void testParseStringToMap() {
|
||||
Assert.assertEquals("{bar=baz}",
|
||||
Map expected = new HashMap();
|
||||
expected.put("bar", "baz");
|
||||
Assert.assertEquals(expected,
|
||||
GlobalAuthUtil.parseStringToMap("foo&bar=baz"));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user