Searched refs:charBuffer (Results 1 – 5 of 5) sorted by relevance
30 CharBuffer charBuffer = null; in test_Reader_CharBuffer_null() local32 mockReader.read(charBuffer); in test_Reader_CharBuffer_null()45 CharBuffer charBuffer = CharBuffer.allocate(0); in test_Reader_CharBuffer_ZeroChar() local46 int result = mockReader.read(charBuffer); in test_Reader_CharBuffer_ZeroChar()58 CharBuffer charBuffer = CharBuffer.allocate(CHARBUFFER_SIZE); in test_Reader_CharBufferChar() local59 charBuffer.append('A'); in test_Reader_CharBufferChar()60 final int CHARBUFFER_REMAINING = charBuffer.remaining(); in test_Reader_CharBufferChar()61 int result = mockReader.read(charBuffer); in test_Reader_CharBufferChar()63 charBuffer.rewind(); in test_Reader_CharBufferChar()64 assertEquals(s.substring(0, CHARBUFFER_REMAINING), charBuffer in test_Reader_CharBufferChar()
61 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress() local63 long charBufferBasePointer = NIOAccess.getBasePointer(charBuffer); in testJNIAccessByAddress()67 charBuffer.put('b'); in testJNIAccessByAddress()68 assertEquals(charBufferBasePointer + Character.BYTES, NIOAccess.getBasePointer(charBuffer)); in testJNIAccessByAddress()
845 CharBuffer charBuffer; in testAsCharBuffer() local852 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()853 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()854 while (charBuffer.remaining() > 0) { in testAsCharBuffer()856 value = charBuffer.get(); in testAsCharBuffer()863 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()864 assertSame(ByteOrder.LITTLE_ENDIAN, charBuffer.order()); in testAsCharBuffer()865 while (charBuffer.remaining() > 0) { in testAsCharBuffer()867 value = charBuffer.get(); in testAsCharBuffer()875 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()[all …]
1044 CharBuffer charBuffer = CharBuffer.wrap(charArray); in testRead_scenario1() local1046 charBuffer.read(charBuffer); in testRead_scenario1()1051 charBuffer.put(charArray); in testRead_scenario1()1052 assertEquals(-1, charBuffer.read(charBuffer)); in testRead_scenario1()
5546 public int read(CharBuffer charBuffer) throws IOException { in test_nextLine() argument5548 charBuffer.append("hello\n"); in test_nextLine()