This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fulton
committed
Feb 25, 2020
1 parent
8b6e074
commit 1c065f0
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
package com.andromeda.araserver.test | ||
|
||
import com.andromeda.araserver.iot.LightStatusModel | ||
import com.andromeda.araserver.iot.NewDevice | ||
import com.andromeda.araserver.util.NewDoc | ||
import org.junit.Test | ||
|
||
class IotTest { | ||
@Test | ||
fun test(){ | ||
if (!System.getenv().contains("IOTDB")) return | ||
val time = System.currentTimeMillis() | ||
val newIot = NewDevice() | ||
val newDoc = NewDoc() | ||
val id = "test$time" | ||
newDoc.newDoc("test", LightStatusModel(true, null, null), id) | ||
newIot.main("/newdevice/id=$id&user=test") | ||
val devices = | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
newIot.main("/newdevice/id=test$time&user=test") | ||
} | ||
} |