package org.eclipse.linuxtools.lttng.jni;
-import static org.junit.Assert.*;
-import org.junit.Test;
+import junit.framework.TestCase;
/*
Functions tested here :
public void printTracefileInformation()
*/
-public class JniTracefileTest
+public class JniTracefileTest extends TestCase
{
+ private final static boolean printLttDebug = false;
+
private final static String tracepath1="traceset/trace-618339events-1293lost-1cpu";
private final static String tracefileName1="kernel0";
// This trace should be valid
try {
- tmpTracefile = new JniTrace(tracepath1).requestTracefileByName(tracefileName1);
+ tmpTracefile = new JniTrace(tracepath1, printLttDebug).requestTracefileByName(tracefileName1);
}
catch( JniException e) { }
}
- @Test
public void testTracefileConstructors() {
JniTrace testTrace = null;
JniTracefile testTracefile1 = null;
// This trace should be valid and will be used in test
try {
- testTrace = new JniTrace(tracepath1);
+ testTrace = new JniTrace(tracepath1, printLttDebug);
}
catch( JniException e) { }
}
- @Test
public void testGetSet() {
JniTracefile testTracefile = prepareTracefileToTest();
}
- @Test
public void testPrintAndToString() {
JniTracefile testTracefile = prepareTracefileToTest();
}
- @Test
public void testEventDisplacement() {
int readValue = -1;