// Path: src/com/tt/reaper/ReaperLogger.java
// public class ReaperLogger {
// 	private static boolean initialized = false;
// 	private static final String FILE_NAME = "config/log4j.properties";
// 	
// 	public static synchronized void init() {
// 		if (initialized == true)
// 			return;
// 		initialized = true;
// 		PropertyConfigurator.configure(FILE_NAME);
// 	}
// }


import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import com.tt.reaper.ReaperLogger;
package com.tt.reaper.message;




public class TestRtpPacket {
	public static final String SOURCE_MAC = "1:1:1:1:1:1";
	public static final String SOURCE_IP = "10.0.0.1";
	public static final String SOURCE_PORT = "9090";
	public static final String DESTINATION_MAC = "2:2:2:2:2:2";
	public static final String DESTINATION_IP = "10.0.0.2";
	public static final String DESTINATION_PORT = "8080";
	
	public static RtpPacket create(int sequenceNumber)
	{
		return new RtpPacket(create(sequenceNumber, 3));
	}
	
	public static String create(int sequenceNumber, int timeStamp) {
		return SOURCE_MAC + ";" + SOURCE_IP + ";" + SOURCE_PORT + ";" +
		    DESTINATION_MAC + ";" + DESTINATION_IP + ";" + DESTINATION_PORT + ";" +
		    sequenceNumber + ";" + timeStamp + ";" + (timeStamp + 1) + ";\n";
	}
	
	@Before
	public void setUp()
	{
// Path: src/com/tt/reaper/ReaperLogger.java
// public class ReaperLogger {
// 	private static boolean initialized = false;
// 	private static final String FILE_NAME = "config/log4j.properties";
// 	
// 	public static synchronized void init() {
// 		if (initialized == true)
// 			return;
// 		initialized = true;
// 		PropertyConfigurator.configure(FILE_NAME);
// 	}
// }


// Path: test/com/tt/reaper/message/TestRtpPacket.java
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import com.tt.reaper.ReaperLogger;

package com.tt.reaper.message;




public class TestRtpPacket {
	public static final String SOURCE_MAC = "1:1:1:1:1:1";
	public static final String SOURCE_IP = "10.0.0.1";
	public static final String SOURCE_PORT = "9090";
	public static final String DESTINATION_MAC = "2:2:2:2:2:2";
	public static final String DESTINATION_IP = "10.0.0.2";
	public static final String DESTINATION_PORT = "8080";
	
	public static RtpPacket create(int sequenceNumber)
	{
		return new RtpPacket(create(sequenceNumber, 3));
	}
	
	public static String create(int sequenceNumber, int timeStamp) {
		return SOURCE_MAC + ";" + SOURCE_IP + ";" + SOURCE_PORT + ";" +
		    DESTINATION_MAC + ";" + DESTINATION_IP + ";" + DESTINATION_PORT + ";" +
		    sequenceNumber + ";" + timeStamp + ";" + (timeStamp + 1) + ";\n";
	}
	
	@Before
	public void setUp()
	{
		ReaperLogger.init();