aboutsummaryrefslogtreecommitdiffstats
path: root/uni/unibase/src/test/java/com/cablelabs
diff options
context:
space:
mode:
Diffstat (limited to 'uni/unibase/src/test/java/com/cablelabs')
-rw-r--r--uni/unibase/src/test/java/com/cablelabs/vcpe/uni/unibase/client/UniClientTest.java50
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