mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
change link
This commit is contained in:
@@ -72,7 +72,7 @@ public class UploadTest {
|
||||
@Test
|
||||
@Disabled
|
||||
public void smmsTest(){
|
||||
// https://github.com/dromara/hutool/issues/2079
|
||||
// https://github.com/chinabugotech/hutool/issues/2079
|
||||
// hutool的user agent 被封了
|
||||
String token = "test";
|
||||
String url = "https://sm.ms/api/v2/upload";
|
||||
|
@@ -1,8 +1,9 @@
|
||||
package cn.hutool.http.useragent;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
public class UserAgentUtilTest {
|
||||
|
||||
@Test
|
||||
@@ -204,7 +205,7 @@ public class UserAgentUtilTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* https://github.com/dromara/hutool/issues/1177
|
||||
* https://github.com/chinabugotech/hutool/issues/1177
|
||||
*/
|
||||
@Test
|
||||
public void parseMicroMessengerTest() {
|
||||
@@ -361,7 +362,7 @@ public class UserAgentUtilTest {
|
||||
|
||||
@Test
|
||||
public void parseEdgATest(){
|
||||
// https://gitee.com/dromara/hutool/issues/I4MCBP
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I4MCBP
|
||||
final String uaStr = "userAgent: Mozilla/5.0 (Linux; Android 11; MI 9 Transparent Edition) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Mobile Safari/537.36 EdgA/96.0.1054.36";
|
||||
final UserAgent ua = UserAgentUtil.parse(uaStr);
|
||||
assertEquals("MSEdge", ua.getBrowser().toString());
|
||||
@@ -376,7 +377,7 @@ public class UserAgentUtilTest {
|
||||
|
||||
@Test
|
||||
public void parseLenovoTest(){
|
||||
// https://gitee.com/dromara/hutool/issues/I4QBMD
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I4QBMD
|
||||
final String uaStr = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 SLBrowser/7.0.0.6241 SLBChan/30";
|
||||
final UserAgent ua = UserAgentUtil.parse(uaStr);
|
||||
|
||||
@@ -407,7 +408,7 @@ public class UserAgentUtilTest {
|
||||
|
||||
@Test
|
||||
public void parseFromDeepinTest(){
|
||||
// https://gitee.com/dromara/hutool/issues/I50YGY
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I50YGY
|
||||
final String uaStr = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36";
|
||||
final UserAgent ua = UserAgentUtil.parse(uaStr);
|
||||
assertEquals("Linux", ua.getOs().toString());
|
||||
@@ -438,7 +439,7 @@ public class UserAgentUtilTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* <a href="https://gitee.com/dromara/hutool/issues/I7OTCU">fix : issues I7OTCU </a>
|
||||
* <a href="https://gitee.com/chinabugotech/hutool/issues/I7OTCU">fix : issues I7OTCU </a>
|
||||
*/
|
||||
@Test
|
||||
public void issuseI7OTCUTest() {
|
||||
|
Reference in New Issue
Block a user