diff options
author | botte <b.otte@cablelabs.com> | 2015-10-11 15:26:40 +0000 |
---|---|---|
committer | botte <b.otte@cablelabs.com> | 2015-10-13 17:42:28 +0000 |
commit | c802bc1e792a35f5a89a97aedd353f1ff4972a5e (patch) | |
tree | 8038148375dfa63dedabe6c64dea6057d868d2be /evc/evcbase | |
parent | b785b70b994f7910635195b40e8ce96ac5e0effe (diff) |
All modified files to support the UPDATE CRUD operation. Also a few general tweaks.
Change-Id: Ife64166f2d572ee94f2c393af9ae66cfefa62551
Diffstat (limited to 'evc/evcbase')
-rw-r--r-- | evc/evcbase/src/test/java/com/cablelabs/vcpe/evc/evcbase/client/EvcClientTest.java | 38 |
1 files changed, 38 insertions, 0 deletions
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 |