1
package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
3
import static org.junit.Assert.assertEquals;
4
import static org.junit.Assert.assertNotNull;
5
import static org.junit.Assert.assertNull;
6
import static org.junit.Assert.assertTrue;
8
import org.eclipse.core.resources.IProject;
9
import org.eclipse.core.resources.IResource;
10
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfLocation;
11
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
12
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTimestamp;
13
import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
14
import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
15
import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
16
import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
17
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
18
import org.eclipse.linuxtools.tmf.core.signal.TmfEndSynchSignal;
19
import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
20
import org.eclipse.linuxtools.tmf.core.statesystem.IStateSystemQuerier;
21
import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
22
import org.junit.After;
23
import org.junit.Before;
24
import org.junit.Test;
27
* The class <code>CtfTmfTraceTest</code> contains tests for the class <code>{@link CtfTmfTrace}</code>.
29
* @generatedBy CodePro at 03/05/12 2:29 PM
31
* @version $Revision: 1.0 $
33
public class CtfTmfTraceTest {
34
private static final String PATH = TestParams.getPath();
37
* Run the CtfTmfTrace() constructor test.
41
* @generatedBy CodePro at 03/05/12 2:29 PM
44
public void testCtfTmfTrace_1()
47
CtfTmfTrace result = new CtfTmfTrace();
49
// add additional test code here
50
assertNotNull(result);
51
assertEquals(null, result.getEventType());
52
assertEquals(1000, result.getCacheSize());
53
assertEquals(0L, result.getNbEvents());
54
assertEquals(0L, result.getStreamingInterval());
55
assertEquals(null, result.getStateSystem());
56
assertEquals(null, result.getResource());
57
assertEquals(1000, result.getQueueSize());
58
assertEquals(null, result.getType());
62
public void testParseEvent() throws TmfTraceException{
63
CtfTmfTrace fixture = initTrace();
64
ITmfContext ctx = fixture.seekEvent(0);
66
CtfTmfEvent event = fixture.parseEvent(ctx);
72
* @throws TmfTraceException
74
private CtfTmfTrace initTrace() throws TmfTraceException {
75
CtfTmfTrace fixture = new CtfTmfTrace();
76
fixture.initTrace((IResource) null, PATH, CtfTmfEvent.class);
80
* Run the void broadcast(TmfSignal) method test.
84
* @generatedBy CodePro at 03/05/12 2:29 PM
87
public void testBroadcast_1()
89
CtfTmfTrace fixture = initTrace();
90
TmfSignal signal = new TmfEndSynchSignal(1);
92
fixture.broadcast(signal);
94
// add additional test code here
95
// An unexpected exception was thrown in user code while executing this test:
96
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
97
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
102
* Run the void dispose() method test.
106
* @generatedBy CodePro at 03/05/12 2:29 PM
109
public void testDispose_1()
111
CtfTmfTrace fixture = new CtfTmfTrace();
118
* Run the int getCacheSize() method test.
122
* @generatedBy CodePro at 03/05/12 2:29 PM
125
public void testGetCacheSize_1()
127
CtfTmfTrace fixture = new CtfTmfTrace();
129
int result = fixture.getCacheSize();
131
// add additional test code here
132
// An unexpected exception was thrown in user code while executing this test:
133
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
134
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
135
assertEquals(1000, result);
139
* Run the ITmfLocation<Comparable> getCurrentLocation() method test.
143
* @generatedBy CodePro at 03/05/12 2:29 PM
146
public void testGetCurrentLocation_1()
148
CtfTmfTrace fixture = initTrace();
150
CtfLocation result = (CtfLocation) fixture.getCurrentLocation();
152
// add additional test code here
153
// An unexpected exception was thrown in user code while executing this test:
154
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
155
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
160
public void testSeekEventLoc_1() throws TmfTraceException {
161
CtfTmfTrace fixture = initTrace();
162
CtfLocation loc = null;
163
fixture.seekEvent(loc);
164
assertNotNull(fixture);
168
public void testSeekEventLoc_2() throws TmfTraceException {
169
CtfTmfTrace fixture = initTrace();
170
CtfLocation loc = new CtfLocation(new CtfTmfTimestamp(0L));
171
fixture.seekEvent(loc);
172
assertNotNull(fixture);
177
* Run the ITmfTimestamp getEndTime() method test.
181
* @generatedBy CodePro at 03/05/12 2:29 PM
184
public void testGetEndTime_1()
186
CtfTmfTrace fixture = initTrace();
187
ITmfTimestamp result = fixture.getEndTime();
188
assertNotNull(result);
192
* Run the String[] getEnvNames() method test.
196
* @generatedBy CodePro at 03/05/12 2:29 PM
199
public void testGetEnvNames_1()
201
CtfTmfTrace fixture = initTrace();
203
String[] result = fixture.getEnvNames();
205
// add additional test code here
206
// An unexpected exception was thrown in user code while executing this test:
207
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
208
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
209
assertNotNull(result);
213
* Run the String getEnvValue(String) method test.
217
* @generatedBy CodePro at 03/05/12 2:29 PM
220
public void testGetEnvValue_1()
222
CtfTmfTrace fixture = initTrace();
223
String key = "tracer_name"; //$NON-NLS-1$
225
String result = fixture.getEnvValue(key);
227
// add additional test code here
228
// An unexpected exception was thrown in user code while executing this test:
229
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
230
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
231
assertEquals("\"lttng-modules\"",result); //$NON-NLS-1$
235
* Run the Class<CtfTmfEvent> getEventType() method test.
239
* @generatedBy CodePro at 03/05/12 2:29 PM
242
public void testGetEventType_1()
244
CtfTmfTrace fixture = initTrace();
246
Class<CtfTmfEvent> result = fixture.getEventType();
248
// add additional test code here
249
// An unexpected exception was thrown in user code while executing this test:
250
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
251
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
252
assertNotNull(result);
256
* Run the double getLocationRatio(ITmfLocation<?>) method test.
260
* @generatedBy CodePro at 03/05/12 2:29 PM
263
public void testGetLocationRatio_1()
265
CtfTmfTrace fixture = initTrace();
266
CtfLocation location = new CtfLocation(Long.valueOf(1));
267
location.setLocation(Long.valueOf(1));
269
double result = fixture.getLocationRatio(location);
271
// add additional test code here
272
// An unexpected exception was thrown in user code while executing this test:
273
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
274
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
275
assertEquals(Double.NEGATIVE_INFINITY, result, 0.1);
279
* Run the String getName() method test.
283
* @generatedBy CodePro at 03/05/12 2:29 PM
286
public void testGetName_1()
288
CtfTmfTrace fixture = initTrace();
290
String result = fixture.getName();
292
// add additional test code here
293
// An unexpected exception was thrown in user code while executing this test:
294
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
295
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
296
assertNotNull(result);
300
* Run the String getName() method test.
304
* @generatedBy CodePro at 03/05/12 2:29 PM
307
public void testGetName_2()
309
CtfTmfTrace fixture = initTrace();
311
String result = fixture.getName();
313
// add additional test code here
314
// An unexpected exception was thrown in user code while executing this test:
315
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
316
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
317
assertNotNull(result);
321
* Run the String getName() method test.
325
* @generatedBy CodePro at 03/05/12 2:29 PM
328
public void testGetName_3()
330
CtfTmfTrace fixture = initTrace();
332
String result = fixture.getName();
334
// add additional test code here
335
// An unexpected exception was thrown in user code while executing this test:
336
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
337
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
338
assertNotNull(result);
342
* Run the int getNbEnvVars() method test.
346
* @generatedBy CodePro at 03/05/12 2:29 PM
349
public void testGetNbEnvVars_1()
351
CtfTmfTrace fixture = initTrace();
353
int result = fixture.getNbEnvVars();
355
// add additional test code here
356
// An unexpected exception was thrown in user code while executing this test:
357
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
358
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
359
assertEquals(8, result);
363
* Run the long getNbEvents() method test.
367
* @generatedBy CodePro at 03/05/12 2:29 PM
370
public void testGetNbEvents_1()
372
CtfTmfTrace fixture = initTrace();
374
long result = fixture.getNbEvents();
376
// add additional test code here
377
// An unexpected exception was thrown in user code while executing this test:
378
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
379
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
380
assertEquals(0L, result);
384
* Run the CtfTmfEvent getNext(ITmfContext) method test.
388
* @generatedBy CodePro at 03/05/12 2:29 PM
391
public void testGetNext_1()
393
CtfTmfTrace fixture = initTrace();
394
ITmfContext context = fixture.seekEvent(0);
396
CtfTmfEvent result = fixture.getNext(context);
398
// add additional test code here
399
// An unexpected exception was thrown in user code while executing this test:
400
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
401
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
402
assertNotNull(result);
406
* Run the String getPath() method test.
410
* @generatedBy CodePro at 03/05/12 2:29 PM
413
public void testGetPath_1()
415
CtfTmfTrace fixture = initTrace();
417
String result = fixture.getPath();
419
// add additional test code here
420
// An unexpected exception was thrown in user code while executing this test:
421
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
422
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
423
assertNotNull(result);
427
* Run the IResource getResource() method test.
431
* @generatedBy CodePro at 03/05/12 2:29 PM
434
public void testGetResource_1()
436
CtfTmfTrace fixture = initTrace();
438
IResource result = fixture.getResource();
440
// add additional test code here
441
// An unexpected exception was thrown in user code while executing this test:
442
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
443
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
448
* Run the ITmfTimestamp getStartTime() method test.
452
* @generatedBy CodePro at 03/05/12 2:29 PM
455
public void testGetStartTime_1()
457
CtfTmfTrace fixture = initTrace();
459
ITmfTimestamp result = fixture.getStartTime();
461
// add additional test code here
462
// An unexpected exception was thrown in user code while executing this test:
463
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
464
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
465
assertNotNull(result);
469
* Run the IStateSystemQuerier getStateSystem() method test.
473
* @generatedBy CodePro at 03/05/12 2:29 PM
476
public void testGetStateSystem_1()
478
CtfTmfTrace fixture = initTrace();
479
IStateSystemQuerier result = fixture.getStateSystem();
481
// add additional test code here
482
// An unexpected exception was thrown in user code while executing this test:
483
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
484
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
489
* Run the long getStreamingInterval() method test.
493
* @generatedBy CodePro at 03/05/12 2:29 PM
496
public void testGetStreamingInterval_1()
498
CtfTmfTrace fixture = initTrace();
500
long result = fixture.getStreamingInterval();
502
// add additional test code here
503
// An unexpected exception was thrown in user code while executing this test:
504
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
505
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
506
assertEquals(0L, result);
510
* Run the TmfTimeRange getTimeRange() method test.
514
* @generatedBy CodePro at 03/05/12 2:29 PM
517
public void testGetTimeRange_1()
519
CtfTmfTrace fixture = initTrace();
521
TmfTimeRange result = fixture.getTimeRange();
523
// add additional test code here
524
// An unexpected exception was thrown in user code while executing this test:
525
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
526
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
527
assertNotNull(result);
531
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
535
* @generatedBy CodePro at 03/05/12 2:29 PM
538
public void testInitTrace_1()
540
CtfTmfTrace fixture = initTrace();
542
IResource resource = null;
544
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
546
fixture.initTrace(resource, path, eventType);
548
assertNotNull(fixture);
552
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
556
* @generatedBy CodePro at 03/05/12 2:29 PM
559
public void testInitTrace_2()
561
CtfTmfTrace fixture = initTrace();
562
IResource resource = null;
564
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
566
fixture.initTrace(resource, path, eventType);
568
assertNotNull(fixture);
572
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
576
* @generatedBy CodePro at 03/05/12 2:29 PM
579
public void testInitTrace_3()
581
CtfTmfTrace fixture = initTrace();
582
IResource resource = null;
584
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
586
fixture.initTrace(resource, path, eventType);
588
assertNotNull(fixture);
592
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
596
* @generatedBy CodePro at 03/05/12 2:29 PM
599
public void testInitTrace_4()
601
CtfTmfTrace fixture = initTrace();
603
IResource resource = null;
605
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
607
fixture.initTrace(resource, path, eventType);
609
assertNotNull(fixture);
613
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
617
* @generatedBy CodePro at 03/05/12 2:29 PM
620
public void testInitTrace_5()
622
CtfTmfTrace fixture = initTrace();
623
IResource resource = null;
625
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
627
fixture.initTrace(resource, path, eventType);
629
assertNotNull(fixture);
633
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
637
* @generatedBy CodePro at 03/05/12 2:29 PM
640
public void testInitTrace_6()
642
CtfTmfTrace fixture = initTrace();
643
IResource resource = null;
645
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
647
fixture.initTrace(resource, path, eventType);
649
assertNotNull(fixture);
653
* Run the void initTrace(IResource,String,Class<CtfTmfEvent>) method test.
657
* @generatedBy CodePro at 03/05/12 2:29 PM
660
public void testInitTrace_7()
662
CtfTmfTrace fixture = initTrace();
663
IResource resource = null;
665
Class<CtfTmfEvent> eventType = CtfTmfEvent.class;
667
fixture.initTrace(resource, path, eventType);
669
assertNotNull(fixture);
673
* Run the CtfTmfEvent readNextEvent(ITmfContext) method test.
677
* @generatedBy CodePro at 03/05/12 2:29 PM
680
public void testReadNextEvent_1()
682
CtfTmfTrace fixture = initTrace();
683
ITmfContext context = fixture.seekEvent(0);
685
CtfTmfEvent result = fixture.getNext(context);
687
// add additional test code here
688
// An unexpected exception was thrown in user code while executing this test:
689
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
690
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
691
assertNotNull(result);
695
* Run the ITmfContext seekEvent(double) method test.
699
* @generatedBy CodePro at 03/05/12 2:29 PM
702
public void testSeekEvent_1()
704
CtfTmfTrace fixture = initTrace();
707
ITmfContext result = fixture.seekEvent(ratio);
709
// add additional test code here
710
// An unexpected exception was thrown in user code while executing this test:
711
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
712
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
713
assertNotNull(result);
717
* Run the ITmfContext seekEvent(long) method test.
721
* @generatedBy CodePro at 03/05/12 2:29 PM
724
public void testSeekEvent_2()
726
CtfTmfTrace fixture = initTrace();
729
ITmfContext result = fixture.seekEvent(rank);
731
// add additional test code here
732
// An unexpected exception was thrown in user code while executing this test:
733
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
734
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
735
assertNotNull(result);
739
* Run the ITmfContext seekEvent(ITmfTimestamp) method test.
743
* @generatedBy CodePro at 03/05/12 2:29 PM
746
public void testSeekEvent_3()
748
CtfTmfTrace fixture = initTrace();
749
ITmfTimestamp timestamp = new TmfTimestamp();
751
ITmfContext result = fixture.seekEvent(timestamp);
753
// add additional test code here
754
// An unexpected exception was thrown in user code while executing this test:
755
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
756
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
757
assertNotNull(result);
761
// * Run the ITmfContext seekEvent(ITmfLocation<?>) method test.
763
// * @throws Exception
765
// * @generatedBy CodePro at 03/05/12 2:29 PM
768
// public void testSeekEvent_4()
769
// throws Exception {
770
// CtfTmfTrace fixture = initTrace();
771
// fixture.setStartTime(new TmfTimestamp());
772
// CtfIterator ctfIterator = new CtfIterator(new CtfTmfTrace());
773
// CtfLocation ctfLocation = new CtfLocation(new Long(1L));
774
// ctfLocation.setLocation(new Long(1L));
775
// ctfIterator.setLocation(ctfLocation);
776
// fixture.iterator = ctfIterator;
777
// fixture.ss = new StateHistorySystem(new HistoryTreeBackend(new File(PATH)), true);
778
// fixture.startSynch(new TmfStartSynchSignal(1));
779
// fixture.fNbEvents = 1L;
780
// ITmfLocation<Comparable> location = new CtfLocation(new Long(1L));
782
// ITmfContext result = fixture.seekEvent(location);
784
// // add additional test code here
785
// // An unexpected exception was thrown in user code while executing this test:
786
// // org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
787
// // at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
788
// assertNotNull(result);
792
// * Run the ITmfContext seekEvent(ITmfLocation<?>) method test.
794
// * @throws Exception
796
// * @generatedBy CodePro at 03/05/12 2:29 PM
799
// public void testSeekEvent_5()
800
// throws Exception {
801
// CtfTmfTrace fixture = initTrace();
802
// CtfIterator ctfIterator = new CtfIterator(new CtfTmfTrace());
803
// CtfLocation ctfLocation = new CtfLocation(new Long(1L));
804
// ITmfContext result = fixture.seekEvent(ctfLocation);
805
// assertNotNull(result);
811
* Run the boolean validate(IProject,String) method test.
815
* @generatedBy CodePro at 03/05/12 2:29 PM
818
public void testValidate_1()
820
CtfTmfTrace fixture = initTrace();
821
IProject project = null;
824
boolean result = fixture.validate(project, path);
826
// add additional test code here
827
// An unexpected exception was thrown in user code while executing this test:
828
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
829
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
834
* Run the boolean validate(IProject,String) method test.
838
* @generatedBy CodePro at 03/05/12 2:29 PM
841
public void testValidate_2()
843
CtfTmfTrace fixture = initTrace();
844
IProject project = null;
847
boolean result = fixture.validate(project, path);
849
// add additional test code here
850
// An unexpected exception was thrown in user code while executing this test:
851
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
852
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
857
* Run the boolean validate(IProject,String) method test.
861
* @generatedBy CodePro at 03/05/12 2:29 PM
864
public void testValidate_3()
866
CtfTmfTrace fixture = initTrace();
867
IProject project = null;
870
boolean result = fixture.validate(project, path);
872
// add additional test code here
873
// An unexpected exception was thrown in user code while executing this test:
874
// org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException: Path must be a valid directory
875
// at org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace.initTrace(CtfTmfTrace.java:98)
880
* Perform pre-test initialization.
883
* if the initialization fails for some reason
885
* @generatedBy CodePro at 03/05/12 2:29 PM
890
// add additional set up code here
894
* Perform post-test clean-up.
897
* if the clean-up fails for some reason
899
* @generatedBy CodePro at 03/05/12 2:29 PM
902
public void tearDown()
904
// Add additional tear down code here
910
* @param args the command line arguments
912
* @generatedBy CodePro at 03/05/12 2:29 PM
914
public static void main(String[] args) {
915
new org.junit.runner.JUnitCore().run(CtfTmfTraceTest.class);