Skip to content

Commit

Permalink
code compiles after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Atanasov <[email protected]>
  • Loading branch information
ata-nas committed Dec 16, 2024
1 parent 3a44365 commit 1364a59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

import com.hedera.block.server.config.BlockNodeContext;
import com.hedera.block.server.persistence.storage.PersistenceStorageConfig;
import com.hedera.block.server.persistence.storage.compression.Compression;
import com.hedera.block.server.persistence.storage.compression.NoOpCompression;
import com.hedera.block.server.persistence.storage.path.BlockAsLocalFilePathResolver;
import com.hedera.block.server.persistence.storage.write.BlockAsLocalFileWriter;
import com.hedera.block.server.util.PersistTestUtils;
Expand All @@ -49,8 +51,10 @@
/**
* Tests for the {@link BlockAsLocalFileReader} class.
*/
@SuppressWarnings("FieldCanBeLocal")
class BlockAsLocalFileReaderTest {
private BlockAsLocalFileWriter blockAsLocalFileWriterMock;
private Compression compressionMock;
private BlockAsLocalFileReader toTest;

@TempDir
Expand All @@ -66,9 +70,11 @@ void setUp() throws IOException {
final String testConfigLiveRootPath = testConfig.liveRootPath();
assertThat(testConfigLiveRootPath).isEqualTo(testLiveRootPath.toString());

compressionMock = spy(NoOpCompression.newInstance());
final BlockAsLocalFilePathResolver blockAsLocalFileResolverMock =
spy(BlockAsLocalFilePathResolver.of(testLiveRootPath));
blockAsLocalFileWriterMock = spy(BlockAsLocalFileWriter.of(blockNodeContext, blockAsLocalFileResolverMock));
blockAsLocalFileWriterMock =
spy(BlockAsLocalFileWriter.of(blockNodeContext, blockAsLocalFileResolverMock, compressionMock));
toTest = BlockAsLocalFileReader.of(blockAsLocalFileResolverMock);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/**
* Test class for {@link BlockAsLocalFileWriter}.
*/
@SuppressWarnings("FieldCanBeLocal")
class BlockAsLocalFileWriterTest {
private BlockNodeContext blockNodeContext;
private PersistenceStorageConfig testConfig;
Expand Down

0 comments on commit 1364a59

Please sign in to comment.