From c802bc1e792a35f5a89a97aedd353f1ff4972a5e Mon Sep 17 00:00:00 2001 From: botte Date: Sun, 11 Oct 2015 15:26:40 +0000 Subject: All modified files to support the UPDATE CRUD operation. Also a few general tweaks. Change-Id: Ife64166f2d572ee94f2c393af9ae66cfefa62551 --- .../vcpe/evc/evcbase/client/EvcClientTest.java | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'evc/evcbase/src/test/java') diff --git a/evc/evcbase/src/test/java/com/cablelabs/vcpe/evc/evcbase/client/EvcClientTest.java b/evc/evcbase/src/test/java/com/cablelabs/vcpe/evc/evcbase/client/EvcClientTest.java index 357b102..c6e7eb8 100644 --- a/evc/evcbase/src/test/java/com/cablelabs/vcpe/evc/evcbase/client/EvcClientTest.java +++ b/evc/evcbase/src/test/java/com/cablelabs/vcpe/evc/evcbase/client/EvcClientTest.java @@ -153,6 +153,44 @@ public class EvcClientTest { assertNotNull(evcList); assertEquals(evcList.size(),0); Evc.dumpList(evcList); + +/* + // Test update + // Add silver service to CoS layer + CoS silver = new CoS(); + silver.setAllProps("silver", 100, 0.99, 17.43, 2.43, 0.01); + Dbg.p("silver svc being created in CoS"); + + silver = coSClient.create(silver); + assertNotNull(silver); + + Evc evc_4 = new Evc(); + + evc_4.setAllNonPerfProps("id-unset-1", + Evc.EvcType.POINT_TO_POINT, 2, uniIdList1, uniMacList1, ipList1, + Evc.FrameDelivery.UNCONDITIONAL, + Evc.FrameDelivery.UNCONDITIONAL, + Evc.FrameDelivery.UNCONDITIONAL, + true, true, 1600, gold.getId()); + + EvcClient evcClient2 = new EvcClient(); + Dbg.p(evc_4.getId()+" being created via evcmgr"); + evc_4.dump(1); + + evc_4 = evcClient2.create(evc_4); + assertNotNull(evc_4); + + evc_4.setCosId("silver"); + + evc_4 = evcClient2.update(evc_4); + assertNotNull(evc_4); + + retrievedEvc = evcClient2.get(evc_4.getId()); + assertNotNull(retrievedEvc); + Dbg.p("evc just retrieved from Evc Service"); + retrievedEvc.dump(1); + retrievedEvc = null; +*/ } @Test -- cgit 1.2.3-korg