1
0
mirror of synced 2026-02-22 12:37:49 +08:00

🔀 合并Braavos96提交的github PR #16

This commit is contained in:
yadong.zhang
2019-07-12 09:47:03 +08:00
parent 5c0b8eb94a
commit 93bee4f5d9
2 changed files with 9 additions and 1 deletions

View File

@@ -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"));
}