Skip to content

Commit fc38f91

Browse files
committed
update test of DeviceManager
1 parent fc030d1 commit fc38f91

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

src/test/java/test/com/qiniu/qvs/DeviceManagerTest.java

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public class DeviceManagerTest {
1616
private DeviceManager deviceManager;
1717
private Response res = null;
1818
private String namespaceId = "2xenzw3lpzpdz";
19-
private String gbId = "31011500991320000126";
20-
private String[] channels = {"31011500991320000126"};
19+
private String gbId = "31011500991320000127";
20+
private String[] channels = {"31011500991320000127"};
2121

2222

2323
@Before
@@ -143,20 +143,4 @@ public void testStopDevice() {
143143
}
144144
}
145145
}
146-
147-
@Test
148-
public void testDeleteDevice() {
149-
try {
150-
res = deviceManager.deleteDevice(namespaceId, gbId);
151-
Assert.assertNotNull(res);
152-
System.out.println(res.bodyString());
153-
} catch (QiniuException e) {
154-
Assert.assertEquals("401", res.statusCode);
155-
e.printStackTrace();
156-
} finally {
157-
if (res != null) {
158-
res.close();
159-
}
160-
}
161-
}
162146
}

0 commit comments

Comments
 (0)