FstObjectOutput implements ObjectOutput { @Override public void writeFloat(float v) throws IOException { output.writeFloat(v); } FstObjectOutput(OutputStream outputStream); @Override void writeBool(boolean v); @Override void writeByte(byte v); @Override void writeShort(short v); @Override void writeInt(int v); @Override void writeLong(long v); @Override void writeFloat(float v); @Override void writeDouble(double v); @Override void writeBytes(byte[] v); @Override void writeBytes(byte[] v, int off, int len); @Override void writeUTF(String v); @Override void writeObject(Object v); @Override void flushBuffer();  }
@Test public void testWriteFloat() throws IOException { this.fstObjectOutput.writeFloat(-666.66f); this.flushToInput(); Float result = this.fstObjectInput.readFloat(); assertThat(result, is(-666.66f)); }