joram/mom/core JUnit tests successful when code is removed
When some methods are emptied or their content is replaced by a single "return" statement, the test suite detects nothing and passes.
In other words, massive code removal is not detected by JUnit tests.
Detailed report of which classes / tests are concerned follows:
==========================================================================
CRITICAL TEST FAILURE: test suite GREEN upon code mutation
In class org.objectweb.joram.mom.util.MessageIdListImpl, method add (line 73) was updated as follows:
All method instructions removed
The following test(s) still PASS:
org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest.run(org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest)
==========================================================================
==========================================================================
CRITICAL TEST FAILURE: test suite GREEN upon code mutation
In class org.objectweb.joram.mom.util.MessageIdListImpl, method get (line 85) was updated as follows:
All method body replaced by: return ""
The following test(s) still PASS:
org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest.run(org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest)
==========================================================================
==========================================================================
CRITICAL TEST FAILURE: test suite GREEN upon code mutation
In class org.objectweb.joram.mom.util.MessageIdListImpl, method get (line 85) was updated as follows:
All method body replaced by: return "A"
The following test(s) still PASS:
org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest.run(org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest)
==========================================================================
==========================================================================
CRITICAL TEST FAILURE: test suite GREEN upon code mutation
In class org.objectweb.joram.mom.util.MessageIdListImpl, method get (line 85) was updated as follows:
All methods instructions replaced by: return null;
The following test(s) still PASS:
org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest.run(org.objectweb.joram.mom.proxies.MessageIdListImplEncodingTest)
==========================================================================
==========================================================================
CRITICAL TEST FAILURE: test suite GREEN upon code mutation
In class org.objectweb.joram.mom.notifications.ClientMessages, method addMessage (line 215) was updated as follows:
All method instructions removed
The following test(s) still PASS:
org.objectweb.joram.mom.notifications.TopicForwardNotTest.run(org.objectweb.joram.mom.notifications.TopicForwardNotTest)
==========================================================================