@Test @DisplayName("Writes the header to the data stream") public void testWriteHeader() throws Exception { storage.writeHeader("k.3"); assertThat(storage.appendedContent).containsExactly( "!evelyn-db", "!version=k.3" ); }
@Override public void writeHeader(String version) throws StorageExistsException { initialize(); HeaderStructure.writeHeader(version, this::append); }
StorageSupport implements Storage { @Override public void writeHeader(String version) throws StorageExistsException { initialize(); HeaderStructure.writeHeader(version, this::append); } }
StorageSupport implements Storage { @Override public void writeHeader(String version) throws StorageExistsException { initialize(); HeaderStructure.writeHeader(version, this::append); }  }
StorageSupport implements Storage { @Override public void writeHeader(String version) throws StorageExistsException { initialize(); HeaderStructure.writeHeader(version, this::append); }  @Override void writeHeader(String version); @Override String readVersion(); }
StorageSupport implements Storage { @Override public void writeHeader(String version) throws StorageExistsException { initialize(); HeaderStructure.writeHeader(version, this::append); }  @Override void writeHeader(String version); @Override String readVersion();  }