Skip to content

Commit

Permalink
update test of DeviceManager
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoLipeng committed Sep 9, 2020
1 parent fc030d1 commit fc38f91
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/test/java/test/com/qiniu/qvs/DeviceManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class DeviceManagerTest {
private DeviceManager deviceManager;
private Response res = null;
private String namespaceId = "2xenzw3lpzpdz";
private String gbId = "31011500991320000126";
private String[] channels = {"31011500991320000126"};
private String gbId = "31011500991320000127";
private String[] channels = {"31011500991320000127"};


@Before
Expand Down Expand Up @@ -143,20 +143,4 @@ public void testStopDevice() {
}
}
}

@Test
public void testDeleteDevice() {
try {
res = deviceManager.deleteDevice(namespaceId, gbId);
Assert.assertNotNull(res);
System.out.println(res.bodyString());
} catch (QiniuException e) {
Assert.assertEquals("401", res.statusCode);
e.printStackTrace();
} finally {
if (res != null) {
res.close();
}
}
}
}

0 comments on commit fc38f91

Please sign in to comment.