add text/event-stream

This commit is contained in:
Looly 2023-06-08 08:51:02 +08:00
parent 332fd5c346
commit 5cc1b492b7
2 changed files with 11 additions and 1 deletions

View File

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

View File

@ -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;