Skip to content

Commit

Permalink
add comments for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snchengqi committed Jul 30, 2020
1 parent 949e781 commit 4ea0f30
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public class ApiTest {

IotClient client;

/**
* 初始化并构造{@link IotClient}
*/
@Before
public void initClient() {
IotProfile profile = new IotProfile();
Expand All @@ -31,6 +34,10 @@ public void initClient() {
client = IotClient.create(profile);
}

/**
* 关闭{@link IotClient}并释放资源
* @throws IOException 如果有IO 错误
*/
@After
public void destroyClient() throws IOException {
client.close();
Expand Down
Loading

0 comments on commit 4ea0f30

Please sign in to comment.