@Test public void ch_tryLock() throws IOException { chan( false ).tryLock().release(); }
@Test( expected = ClosedByInterruptException.class ) public void ch_writeAll_ByteBuffer() throws IOException { chan( true ).writeAll( ByteBuffer.allocate( 1 ) ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_write_ByteBuffers() throws IOException { chan( true ).write( new ByteBuffer[]{ByteBuffer.allocate( 1 )} ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_read_ByteBuffers() throws IOException { chan( true ).read( new ByteBuffer[]{ByteBuffer.allocate( 1 )} ); } }
@Test( expected = ClosedByInterruptException.class ) public void ch_writeAll_ByteBuffer_position() throws IOException { chan( true ).writeAll( ByteBuffer.allocate( 1 ), 1 ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_write_ByteBuffers_offset_length() throws IOException { chan( true ).write( new ByteBuffer[]{ByteBuffer.allocate( 1 )}, 0, 1 ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_read_ByteBuffer() throws IOException { chan( true ).read( ByteBuffer.allocate( 1 ) ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_write_ByteBuffer() throws IOException { chan( true ).write( ByteBuffer.allocate( 1 ) ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_read_ByteBuffers_offset_length() throws IOException { chan( true ).read( new ByteBuffer[]{ByteBuffer.allocate( 1 )}, 0, 1 ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_size() throws IOException { chan( true ).size(); }
@Test public void fs_openClose() throws IOException { chan( true ).close(); }
@Test( expected = ClosedByInterruptException.class ) public void ch_getPosition() throws IOException { chan( true ).position(); }
@Test( expected = ClosedByInterruptException.class ) public void ch_truncate() throws IOException { chan( true ).truncate( 0 ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_force() throws IOException { chan( true ).force( true ); }
@Test( expected = ClosedByInterruptException.class ) public void ch_setPosition() throws IOException { chan( true ).position( 0 ); }
@Test public void ch_isOpen() throws IOException { chan( false ).isOpen(); }