|
5 | 5 | import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
6 | 6 | import static org.junit.jupiter.api.Assertions.assertTrue;
|
7 | 7 | import static org.junit.jupiter.api.Assertions.fail;
|
| 8 | + |
| 9 | +import org.junit.jupiter.api.Tag; |
| 10 | +import org.junit.jupiter.api.Test; |
| 11 | + |
8 | 12 | import com.qiniu.common.QiniuException;
|
9 | 13 | import com.qiniu.streaming.StreamingManager;
|
10 | 14 | import com.qiniu.streaming.model.ActivityRecords;
|
11 | 15 | import com.qiniu.streaming.model.StreamAttribute;
|
12 | 16 | import com.qiniu.streaming.model.StreamListing;
|
| 17 | +import com.qiniu.streaming.model.StreamStatus; |
13 | 18 | import com.qiniu.util.Auth;
|
| 19 | + |
14 | 20 | import test.com.qiniu.TestConfig;
|
15 |
| -import org.junit.jupiter.api.Tag; |
16 |
| -import org.junit.jupiter.api.Test; |
17 | 21 |
|
18 | 22 | /**
|
19 | 23 | * Created by bailong on 16/9/22 Updated by panyuan on 19/3/12
|
@@ -88,12 +92,8 @@ public void testStreamOperation() throws QiniuException {
|
88 | 92 | assertEquals(0, attr.disabledTill);
|
89 | 93 | assertNotEquals(0, attr.updatedAt);
|
90 | 94 |
|
91 |
| - try { |
92 |
| - manager.status(stream); |
93 |
| - fail(); |
94 |
| - } catch (QiniuException e) { |
95 |
| - assertEquals(619, e.code()); |
96 |
| - } |
| 95 | + StreamStatus status = manager.status(stream); |
| 96 | + assertEquals(0, status.startAt); |
97 | 97 |
|
98 | 98 | try {
|
99 | 99 | manager.saveAs(stream, null, 0, 0);
|
|
0 commit comments