mirror of
https://github.com/Voronsky/unifi4j.git
synced 2025-12-12 16:16:34 -05:00
New unit test for Devices
This commit is contained in:
@@ -37,4 +37,17 @@ public class UnifiTests {
|
|||||||
System.out.println(response);
|
System.out.println(response);
|
||||||
assert !response.isEmpty();
|
assert !response.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void GetDevicesTest(){
|
||||||
|
List<Devices> devices = new ArrayList<>();
|
||||||
|
Unifi unifi = new Unifi("https://api.ui.com/ea", System.getenv("UNIFI_KEY"));
|
||||||
|
try {
|
||||||
|
devices = unifi.getDevices();
|
||||||
|
}catch (Exception e){
|
||||||
|
System.out.println("Exception: "+e);
|
||||||
|
assert false;
|
||||||
|
}
|
||||||
|
assert !devices.isEmpty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user