Package org.machanism.machai.bindex
Class BindexCreatorTest
java.lang.Object
org.machanism.machai.bindex.BindexCreatorTest
Unit tests for
BindexCreator.
Test Bindex creation/updating logic, chaining setter, and error handling.
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetUp()Set up mock objects and test fixture for each test.(package private) voidTests the folder processing creates the Bindex file when update is true.(package private) voidTests that folder processing throws IllegalArgumentException on I/O errors.(package private) voidTests thatBindexCreator.update(boolean)returns this instance for chaining.
-
Constructor Details
-
BindexCreatorTest
BindexCreatorTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp()Set up mock objects and test fixture for each test. -
testUpdateSetterReturnsSelf
@Test void testUpdateSetterReturnsSelf()Tests thatBindexCreator.update(boolean)returns this instance for chaining. -
testProcessFolderCreatesBindexFileAndLogs
Tests the folder processing creates the Bindex file when update is true.- Throws:
IOException- if mocked components fail
-
testProcessFolderThrowsOnIOException
Tests that folder processing throws IllegalArgumentException on I/O errors.- Throws:
IOException- if mocked builder fails
-