Remove unreliable tests, fixes bugs #300750, #300751, #300752 (all related to the...
authorWilliam Bourque <william.bourque@polymtl.ca>
Wed, 27 Jan 2010 22:34:35 +0000 (22:34 +0000)
committerWilliam Bourque <william.bourque@polymtl.ca>
Wed, 27 Jan 2010 22:34:35 +0000 (22:34 +0000)
org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventContentTest.java
org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventFieldTest.java
org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java

index fa1595799812f2c9ee1b408b72880821c4bf6229..777b36292c10065ee811abde01d68649e8ca2a0a 100644 (file)
@@ -143,8 +143,16 @@ public class LttngEventContentTest extends TestCase {
                testContent = prepareToTest();
        // getFieldS()
        assertNotSame("getFields() returned null!",null,testContent.getFields() );
+       
+       // *** FIXME ***
+       // Depending from the Java version because of the "hashcode()" on String. 
+       // We can't really test that safetly
+       //
        // getField(int)
-       assertEquals("getField(int) returned unexpected result!",firstEventContentFirstField, testContent.getField(0).toString());
+       //assertEquals("getField(int) returned unexpected result!",firstEventContentFirstField, testContent.getField(0).toString());
+       assertNotSame("getField(int) returned unexpected result!",null, testContent.getField(0).toString());
+       
+       
        // getField(name)
        assertEquals("getField(name) returned unexpected result!",firstEventContentFirstField, testContent.getField(firstEventContentFirstFieldName).toString());
        // getRawContent
index 9b77883329cc5eb9619c4ba7d236f319508c3678..cf9d7031cf133892e08a496f4f7dcb731008838f 100644 (file)
@@ -97,7 +97,13 @@ public class LttngEventFieldTest extends TestCase {
        LttngEventField testField       = (LttngEventField)tmpStream.getNextEvent( new TmfTraceContext(0, new LttngTimestamp(0L), 0) ).getContent().getField(0);
        assertNotSame("getField is null!",null,testField);
        
-       assertTrue("getName() returned unexpected result!",firstEventName.equals(testField.getId().toString()));
+       // *** FIXME ***
+       // Depending from the Java version because of the "hashcode()" on String. 
+       // We can't really test that safetly
+       //
+       //assertTrue("getName() returned unexpected result!",firstEventName.equals(testField.getId().toString()));
+       assertNotSame("getName() returned unexpected result!",null, testField.getId());
+       
        assertTrue("getValue() returned unexpected result!",firstEventValue.equals(testField.getValue().toString()));
        
        
index 996826cd88375e157f5ef4ceafd27a4d88d50ad2..ab2be8d7a4dd8d56417019fdd9d08cb582ea08b5 100644 (file)
@@ -152,7 +152,13 @@ public class LttngEventTest extends TestCase {
        assertEquals("Channel not what expected!",eventChannel,testEvent.getChannelName());
        assertEquals("CpuId not what expected!",eventCpu,testEvent.getCpuId());
        assertEquals("Marker not what expected!",eventMarker,testEvent.getMarkerName());
-       assertEquals("Content not what expected!",eventContent,testEvent.getContent().toString());
+       
+       // *** FIXME ***
+       // Depending from the Java version because of the "hashcode()" on String. 
+       // We can't really test that safetly
+       //
+       //assertEquals("Content not what expected!",eventContent,testEvent.getContent().toString());
+       assertNotSame("Content is null!", null,testEvent.getContent());
     }
     
        public void testSetter() {
This page took 0.026334 seconds and 5 git commands to generate.