Searched refs:CONTENT_AS_BYTES (Results 1 – 2 of 2) sorted by relevance
63 private static final byte[] CONTENT_AS_BYTES; field in FileChannelTest70 CONTENT_AS_BYTES = CONTENT.getBytes("iso8859-1");71 CONTENT_AS_BYTES_LENGTH = CONTENT_AS_BYTES.length;181 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_forceJ()188 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceJ()250 fos.write(CONTENT_AS_BYTES); in writeDataToFile()281 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_position_WriteOnly()297 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_position_ReadWrite()402 assertEquals(CONTENT_AS_BYTES[i], readBuffer.get()); in test_positionJ_ReadOnly()414 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_positionJ_WriteOnly()[all …]
57 private static final byte[] CONTENT_AS_BYTES = CONTENT.getBytes(); field in OldFileChannelTest59 private static final int CONTENT_AS_BYTES_LENGTH = CONTENT_AS_BYTES.length;148 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_forceZ()155 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceZ()164 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceZ()180 fos.write(CONTENT_AS_BYTES); in writeDataToFile()764 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_writeLByteBufferJ_NonZeroPosition()845 writeBuffers[0] = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_write$LByteBuffer()846 writeBuffers[1] = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_write$LByteBuffer()861 System.arraycopy(CONTENT_AS_BYTES, 0, expectedResult, 0, in test_write$LByteBuffer()[all …]