mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add text/event-stream
This commit is contained in:
parent
332fd5c346
commit
5cc1b492b7
@ -60,6 +60,12 @@ public class NumberUtilTest {
|
|||||||
Assert.assertEquals(new BigDecimal("123"), result);
|
Assert.assertEquals(new BigDecimal("123"), result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void addTest5() {
|
||||||
|
final double add = NumberUtil.add(1686036549717D, 1000D);
|
||||||
|
Assert.assertEquals(1686036550717D, add, 0);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void isIntegerTest() {
|
public void isIntegerTest() {
|
||||||
Assert.assertTrue(NumberUtil.isInteger("-12"));
|
Assert.assertTrue(NumberUtil.isInteger("-12"));
|
||||||
|
@ -43,7 +43,11 @@ public enum ContentType {
|
|||||||
/**
|
/**
|
||||||
* application/octet-stream编码
|
* application/octet-stream编码
|
||||||
*/
|
*/
|
||||||
OCTET_STREAM("application/octet-stream");
|
OCTET_STREAM("application/octet-stream"),
|
||||||
|
/**
|
||||||
|
* text/event-stream编码
|
||||||
|
*/
|
||||||
|
EVENT_STREAM("text/event-stream");
|
||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user