Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
working on iot test
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Feb 25, 2020
1 parent 8b6e074 commit 1c065f0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/test/java/com/andromeda/araserver/test/IotTest.kt
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")
}
}

0 comments on commit 1c065f0

Please sign in to comment.