package com.kurento.mscontrol.commons.junit.util;

import junit.framework.TestCase;

import com.kurento.mscontrol.commons.MediaSession;

public abstract class TestCaseBase extends TestCase {

	private static MediaSession mediaSession = null;

	public static MediaSession getMediaSession() {
		return mediaSession;
	}

	public static void setMediaSession(MediaSession mediaSession) {
		TestCaseBase.mediaSession = mediaSession;
	}

}

@@ -67,24 +67,113 @@
 amework.
-TestCase
+Assert;%0Aimport junit.framework.TestCase;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory
 ;%0A%0Aimpor
@@ -274,16 +274,103 @@
 Case %7B%0A%0A
+%09protected static final Logger log = LoggerFactory%0A%09%09%09.getLogger(%22KcMsControlTests%22);%0A%0A
 %09private
@@ -552,16 +552,16 @@
 sion) %7B%0A
-
 %09%09TestCa
@@ -600,10 +600,216 @@
 on;%0A%09%7D%0A%0A
+%09protected void checkMediaSessionIsNotNull(MediaSession mediaSession) %7B%0A%09%09Assert.assertNotNull(%0A%09%09%09%09%22mediaSession is null, it must be assigned using setMediaSession() static method%22,%0A%09%09%09%09mediaSession);%0A%09%7D%0A%0A
 %7D%0A

Add method to assert media session is not null in TestCaseBase.