From 07103149618ce646cd3e3135b032d0aa2627d4e5 Mon Sep 17 00:00:00 2001 From: Steven Pisarski Date: Wed, 29 Apr 2015 15:10:18 -0600 Subject: [PATCH] With previous change to AbstractPCMMServer, instantiation of the CMTS class now requires one to specify the port number that will be opened else the ServerSocket class will assign one automatically. Change-Id: Iabc32d486952475f18b5b3025b809003f48c5c8f Signed-off-by: Steven Pisarski --- .../src/test/java/org/pcmm/test/Main.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packetcable-driver/src/test/java/org/pcmm/test/Main.java b/packetcable-driver/src/test/java/org/pcmm/test/Main.java index ad1ea5e..da439ac 100644 --- a/packetcable-driver/src/test/java/org/pcmm/test/Main.java +++ b/packetcable-driver/src/test/java/org/pcmm/test/Main.java @@ -3,11 +3,10 @@ */ package org.pcmm.test; +import org.pcmm.PCMMConstants; +import org.pcmm.PCMMProperties; import org.pcmm.rcd.ICMTS; -import org.pcmm.rcd.IPCMMPolicyServer; -import org.pcmm.rcd.IPCMMPolicyServer.IPSCMTSClient; import org.pcmm.rcd.impl.CMTS; -import org.pcmm.rcd.impl.PCMMPolicyServer; /** * @@ -18,11 +17,11 @@ public class Main { * @param args */ public static void main(String[] args) { - ICMTS icmts = new CMTS(); + ICMTS icmts = new CMTS(PCMMProperties.get(PCMMConstants.PCMM_PORT, Integer.class)); icmts.startServer(); - IPCMMPolicyServer ps = new PCMMPolicyServer(); - IPSCMTSClient client = ps.requestCMTSConnection("localhost"); - client.gateSet(); +// IPCMMPolicyServer ps = new PCMMPolicyServer(); +// IPSCMTSClient client = ps.requestCMTSConnection("localhost"); +// client.gateSet(); // IWorkerPool pool = new WorkerPool(2); // IWorker worker = new Worker(new Callable() { // @Override -- 2.36.6