Revision: 6d9764df15b8
Author:   Sergey Vetyutnev <[email protected]>
Date:     Wed Oct  2 18:03:01 2013 UTC
Log:      Fixing tests for dividing statistics into api and impl
http://code.google.com/p/jss7/source/detail?r=6d9764df15b8

Modified:
/sccp/sccp-impl/src/test/java/org/mobicents/protocols/ss7/sccp/impl/oam/SccpExecutorTest.java /tcap-ansi/tcap-ansi-api/src/main/java/org/mobicents/protocols/ss7/tcapAnsi/api/TCAPCounterProvider.java /tcap-ansi/tcap-ansi-impl/src/test/java/org/mobicents/protocols/ss7/tcapAnsi/TCAPStatTest.java /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPCounterProvider.java /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/StatCounterTest.java /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/TCAPStatTest.java

=======================================
--- /sccp/sccp-impl/src/test/java/org/mobicents/protocols/ss7/sccp/impl/oam/SccpExecutorTest.java Mon May 20 20:09:00 2013 UTC +++ /sccp/sccp-impl/src/test/java/org/mobicents/protocols/ss7/sccp/impl/oam/SccpExecutorTest.java Wed Oct 2 18:03:01 2013 UTC
@@ -113,8 +113,11 @@
     @Test(groups = { "oam", "functional.mgmt" })
     public void testManageRule() {

-        String addressCmd = "sccp address create 1 71 2 8 0 0 3 123456789";
+ String addressCmd = "sccp rule modify 3 K 18 0 146 0 1 4 * loadshared 2 3 bit0";
         String result = this.sccpExecutor.execute(addressCmd.split(" "));
+
+        addressCmd = "sccp address create 1 71 2 8 0 0 3 123456789";
+        result = this.sccpExecutor.execute(addressCmd.split(" "));
         assertEquals(result, SccpOAMMessage.ADDRESS_SUCCESSFULLY_ADDED);
         assertEquals(this.router.getRoutingAddresses().size(), 1);

=======================================
--- /tcap-ansi/tcap-ansi-api/src/main/java/org/mobicents/protocols/ss7/tcapAnsi/api/TCAPCounterProvider.java Wed Oct 2 16:43:47 2013 UTC +++ /tcap-ansi/tcap-ansi-api/src/main/java/org/mobicents/protocols/ss7/tcapAnsi/api/TCAPCounterProvider.java Wed Oct 2 18:03:01 2013 UTC
@@ -203,7 +203,7 @@
     Long getMaxDialogsCount(String compainName);

     /**
- * return a total durations of all released Dialogs since stack start (in seconds) + * return a total durations of all released Dialogs since stack start (in milliseconds)
      * this value is updated when a dialog is released
      */
     long getAllDialogsDuration();
=======================================
--- /tcap-ansi/tcap-ansi-impl/src/test/java/org/mobicents/protocols/ss7/tcapAnsi/TCAPStatTest.java Fri Sep 20 17:47:37 2013 UTC +++ /tcap-ansi/tcap-ansi-impl/src/test/java/org/mobicents/protocols/ss7/tcapAnsi/TCAPStatTest.java Wed Oct 2 18:03:01 2013 UTC
@@ -32,7 +32,7 @@
 import org.mobicents.protocols.ss7.indicator.RoutingIndicator;
 import org.mobicents.protocols.ss7.sccp.impl.SccpHarness;
 import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
-import org.mobicents.protocols.ss7.statistics.LongValue;
+import org.mobicents.protocols.ss7.statistics.api.LongValue;
 import org.mobicents.protocols.ss7.tcapAnsi.api.ComponentPrimitiveFactory;
 import org.mobicents.protocols.ss7.tcapAnsi.api.TCAPCounterProvider;
 import org.mobicents.protocols.ss7.tcapAnsi.api.TCListener;
=======================================
--- /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPCounterProvider.java Wed Oct 2 16:43:47 2013 UTC +++ /tcap/tcap-api/src/main/java/org/mobicents/protocols/ss7/tcap/api/TCAPCounterProvider.java Wed Oct 2 18:03:01 2013 UTC
@@ -193,7 +193,7 @@
     Long getMaxDialogsCount(String compainName);

     /**
- * return a total durations of all released Dialogs since stack start (in seconds) + * return a total durations of all released Dialogs since stack start (in milliseconds)
      * this value is updated when a dialog is released
      */
     long getAllDialogsDuration();
=======================================
--- /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/StatCounterTest.java Fri Sep 13 15:38:35 2013 UTC +++ /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/StatCounterTest.java Wed Oct 2 18:03:01 2013 UTC
@@ -28,11 +28,12 @@

 import javolution.util.FastMap;

-import org.mobicents.protocols.ss7.statistics.LongValue;
-import org.mobicents.protocols.ss7.statistics.StatCounterCollection;
-import org.mobicents.protocols.ss7.statistics.StatDataCollection;
-import org.mobicents.protocols.ss7.statistics.StatDataCollectorType;
-import org.mobicents.protocols.ss7.statistics.StatResult;
+import org.mobicents.protocols.ss7.statistics.StatDataCollectionImpl;
+import org.mobicents.protocols.ss7.statistics.api.LongValue;
+import org.mobicents.protocols.ss7.statistics.api.StatCounterCollection;
+import org.mobicents.protocols.ss7.statistics.api.StatDataCollection;
+import org.mobicents.protocols.ss7.statistics.api.StatDataCollectorType;
+import org.mobicents.protocols.ss7.statistics.api.StatResult;
 import org.testng.annotations.Test;

 /**
@@ -46,7 +47,7 @@
     @Test(groups = { "statistic" })
     public void countersManagementTest() throws Exception {

-        StatDataCollection sdc = new StatDataCollection();
+        StatDataCollection sdc = new StatDataCollectionImpl();

StatCounterCollection scc1_old = sdc.registerStatCounterCollector("counter1", StatDataCollectorType.MIN); StatCounterCollection scc1 = sdc.registerStatCounterCollector("counter1", StatDataCollectorType.MIN);
@@ -89,7 +90,7 @@
     @Test(groups = { "statistic" })
     public void countersMinTest() throws Exception {

-        StatDataCollection sdc = new StatDataCollection();
+        StatDataCollection sdc = new StatDataCollectionImpl();

StatCounterCollection scc1 = sdc.registerStatCounterCollector("counter1", StatDataCollectorType.MIN); StatCounterCollection scc2 = sdc.registerStatCounterCollector("counter2", StatDataCollectorType.MIN);
@@ -132,7 +133,7 @@
     @Test(groups = { "statistic" })
     public void countersMaxTest() throws Exception {

-        StatDataCollection sdc = new StatDataCollection();
+        StatDataCollection sdc = new StatDataCollectionImpl();

StatCounterCollection scc1 = sdc.registerStatCounterCollector("counter1", StatDataCollectorType.MAX); StatCounterCollection scc2 = sdc.registerStatCounterCollector("counter2", StatDataCollectorType.MAX);
@@ -175,7 +176,7 @@
     @Test(groups = { "statistic" })
     public void countersStringTextTest() throws Exception {

-        StatDataCollection sdc = new StatDataCollection();
+        StatDataCollection sdc = new StatDataCollectionImpl();

StatCounterCollection scc1 = sdc.registerStatCounterCollector("counter1", StatDataCollectorType.StringLongMap); StatCounterCollection scc2 = sdc.registerStatCounterCollector("counter2", StatDataCollectorType.StringLongMap);
=======================================
--- /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/TCAPStatTest.java Fri Sep 20 17:47:37 2013 UTC +++ /tcap/tcap-impl/src/test/java/org/mobicents/protocols/ss7/tcap/TCAPStatTest.java Wed Oct 2 18:03:01 2013 UTC
@@ -31,7 +31,7 @@
 import org.mobicents.protocols.ss7.indicator.RoutingIndicator;
 import org.mobicents.protocols.ss7.sccp.impl.SccpHarness;
 import org.mobicents.protocols.ss7.sccp.parameter.SccpAddress;
-import org.mobicents.protocols.ss7.statistics.LongValue;
+import org.mobicents.protocols.ss7.statistics.api.LongValue;
 import org.mobicents.protocols.ss7.tcap.api.ComponentPrimitiveFactory;
 import org.mobicents.protocols.ss7.tcap.api.TCAPCounterProvider;
 import org.mobicents.protocols.ss7.tcap.api.TCListener;

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to