I have an issue with JMOCK 2.6 and JUINT4 when mocking ByteBuffer
@RunWith(JUnit4.class)
public class Test {
@Rule
public JUnitRuleMockery context = new JUnitRuleMockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
}
};
@Before
public void setUp() throws Exception {
}
@org.junit.Test
public void testMockByteBuffer() {
final java.nio.ByteBuffer byteBufferMock = context.mock(java.nio.ByteBuffer.class);
byteBufferMock.remaining();
}
}
I expected the test to fail, but it passes.