Revision: 15688
Author: emmartins
Date: Thu Dec 9 10:12:56 2010
Log: misc fixes reported by find bugs
http://code.google.com/p/mobicents/source/detail?r=15688
Modified:
/trunk/servers/jain-slee/core/common/src/test/java/org/mobicents/slee/runtime/facilities/TracerFrameworkTest.java
=======================================
---
/trunk/servers/jain-slee/core/common/src/test/java/org/mobicents/slee/runtime/facilities/TracerFrameworkTest.java
Wed Dec 8 06:29:28 2010
+++
/trunk/servers/jain-slee/core/common/src/test/java/org/mobicents/slee/runtime/facilities/TracerFrameworkTest.java
Thu Dec 9 10:12:56 2010
@@ -159,9 +159,9 @@
public void test3GetTracersSet() {
try {
- Tracer orgMobicentsTest = this.ts.createTracer("org.mobicents.test",
true);
+ this.ts.createTracer("org.mobicents.test", true);
Tracer orgMobicents =
this.ts.createTracer("org.mobicents", false);
- Tracer org = this.ts.createTracer("org", true);
+ this.ts.createTracer("org", true);
String[] tracersSet = this.ts.getDefinedTracerNames();
@@ -189,9 +189,9 @@
public void test3GetTracersUsed() {
try {
- Tracer orgMobicentsTest = this.ts.createTracer("org.mobicents.test",
false);
+ this.ts.createTracer("org.mobicents.test", false);
Tracer orgMobicents =
this.ts.createTracer("org.mobicents", false);
- Tracer org = this.ts.createTracer("org", false);
+ this.ts.createTracer("org", false);
String[] definedTracers =
this.ts.getRequestedTracerNames();
@@ -226,7 +226,7 @@
public void test4TestNotificationType() {
try {
int localSeq = 0;
- Tracer orgMobicentsTest = this.ts.createTracer("org.mobicents.test",
false);
+ this.ts.createTracer("org.mobicents.test", false);
Tracer orgMobicents =
this.ts.createTracer("org.mobicents", false);
Tracer org = this.ts.createTracer("org", false);
Tracer rootTracer = this.ts.createTracer("", false);
@@ -300,7 +300,6 @@
private NotificationSource expectedNotificationSource = null;
private TraceLevel expectedNotificatioTraceLevel = null;
private boolean shouldReceiveNotification = false;
- private Throwable expectedCause = null;
public void setTestHarness(String expectedNotificationType, int
expectedNotificationSequence, NotificationSource
expectedNotificationSource, TraceLevel expectedNotificatioTraceLevel,
Throwable expectedCause, boolean
shouldReceiveNotification) {
@@ -310,7 +309,6 @@
this.expectedNotificationSource =
expectedNotificationSource;
this.expectedNotificatioTraceLevel =
expectedNotificatioTraceLevel;
this.shouldReceiveNotification =
shouldReceiveNotification;
- this.expectedCause = expectedCause;
}
@Override