diff options
author | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
---|---|---|
committer | Mufaddal Makati <mmakati@mmakatimbpr15.cablelabs.com> | 2015-08-07 13:09:49 -0700 |
commit | ed73dbf357aff41edcbab401a94e5fbc266d9391 (patch) | |
tree | e3561a9290e4bd0de19704228867ec91910e68ed /uni/unibase/src/test/java/com | |
parent | f44f4aa8b5eb244fc7603c17e875eebf0f3b0b67 (diff) |
First Commit
Diffstat (limited to 'uni/unibase/src/test/java/com')
-rw-r--r-- | uni/unibase/src/test/java/com/cablelabs/vcpe/uni/unibase/client/UniClientTest.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/uni/unibase/src/test/java/com/cablelabs/vcpe/uni/unibase/client/UniClientTest.java b/uni/unibase/src/test/java/com/cablelabs/vcpe/uni/unibase/client/UniClientTest.java new file mode 100644 index 0000000..0160190 --- /dev/null +++ b/uni/unibase/src/test/java/com/cablelabs/vcpe/uni/unibase/client/UniClientTest.java @@ -0,0 +1,50 @@ +package com.cablelabs.vcpe.uni.unibase.client; + +import com.cablelabs.vcpe.uni.unibase.model.EvcPath; + +//import com.cablelabs.vcpe.cos.cosbase.client.CoSClient; +//import com.cablelabs.vcpe.cos.cosbase.model.CoS; + +import com.cablelabs.vcpe.uni.unibase.model.Uni; +import org.junit.Test; + +/** + * Created by steve on 5/28/15. + */ + +public class UniClientTest { + + @Test + public void testAll() throws Exception { + +// CoS gold = new CoS(); +// gold.setAllProps("gold", 100, 0.99, 17.43, 2.43, 0.01); + + + UniClient uniClient = new UniClient(); + + Uni uni1 = new Uni(); + uni1.setAllProps("uni-1", Uni.SvcSpeed.ONE_GIG, + "192.168.1.100", "11:AA:00:00:00:00", + Uni.PhysMedium.GIG_BASE_T, Uni.MacLayer.IEEE_802_3, + Uni.SyncMode.ENABLED, Uni.Type.UNITYPE, 1600); + uniClient.update(uni1); + + Uni uni2 = new Uni(); + uni2.setAllProps("uni-2", Uni.SvcSpeed.HUNDRED_MEG, + "192.168.1.101", "11:BB:00:00:00:00", + Uni.PhysMedium.HUNDERED_BASE_T, Uni.MacLayer.IEEE_802_3, + Uni.SyncMode.ENABLED, Uni.Type.UNITYPE, 1600); + + uniClient.update(uni1); + uniClient.update(uni2); + + + EvcPathClient evcPathClient = new EvcPathClient(); + EvcPath evcPath = new EvcPath( "new-evc", uni1, uni2, + Uni.SvcSpeed.ONE_GIG, + Uni.SvcSpeed.TEN_GIG, + "Gold" ); + evcPathClient.update(evcPath); + } +}
\ No newline at end of file |