Class AbstractTransplant
- java.lang.Object
-
- org.projectnessie.versioned.tests.AbstractNestedVersionStore
-
- org.projectnessie.versioned.tests.AbstractTransplant
-
- Direct Known Subclasses:
AbstractVersionStoreTestBase.Transplant
@ExtendWith(org.assertj.core.api.junit.jupiter.SoftAssertionsExtension.class) public abstract class AbstractTransplant extends AbstractNestedVersionStore
-
-
Field Summary
Fields Modifier and Type Field Description protected org.assertj.core.api.SoftAssertionssoft-
Fields inherited from class org.projectnessie.versioned.tests.AbstractNestedVersionStore
store
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTransplant(org.projectnessie.versioned.VersionStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckInvalidBranchHash(boolean individualCommits, boolean dryRun)protected voidcheckTransplantOnEmptyBranch(boolean individualCommits)protected voidcheckTransplantOnEmptyBranchModify(boolean individualCommits)protected voidcheckTransplantOnNonExistingBranch(boolean individualCommits, boolean dryRun)protected voidcheckTransplantWithCommitsInWrongOrder(boolean individualCommits, boolean dryRun)protected voidcheckTransplantWithConflictingCommit(boolean individualCommits, boolean dryRun)protected voidcheckTransplantWithDelete(boolean individualCommits)protected voidcheckTransplantWithNoExpectedHash(boolean individualCommits)protected voidcheckTransplantWithNonExistingCommit(boolean individualCommits, boolean dryRun)protected voidcheckTransplantWithPreviousCommit(boolean individualCommits)protected voidsetupCommits()protected voidtransplantBasic(boolean individualCommits)protected voidtransplantEmptyCommit(boolean individualCommits)-
Methods inherited from class org.projectnessie.versioned.tests.AbstractNestedVersionStore
assertCommitMeta, commit, commit, commit, commit, commitsList, commitsListMap, contentsWithoutId, contentWithoutId, contentWithoutId, delete, diffsWithoutContentId, filterMainBranch, forceCommit, isNewStorageModel, operationsWithoutContentId, put, storageCheckpoint, store, unchanged
-
-
-
-
Method Detail
-
setupCommits
@BeforeEach protected void setupCommits() throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantOnEmptyBranch
@ParameterizedTest @ValueSource(booleans={false,true}) protected void checkTransplantOnEmptyBranch(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantOnEmptyBranchModify
@ParameterizedTest @ValueSource(booleans={false,true}) protected void checkTransplantOnEmptyBranchModify(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantWithPreviousCommit
@ParameterizedTest @ValueSource(booleans={false,true}) protected void checkTransplantWithPreviousCommit(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantWithConflictingCommit
@ParameterizedTest @CsvSource({"false,false","false,true","true,false","true,true"}) protected void checkTransplantWithConflictingCommit(boolean individualCommits, boolean dryRun) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantWithDelete
@ParameterizedTest @ValueSource(booleans={false,true}) protected void checkTransplantWithDelete(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantOnNonExistingBranch
@ParameterizedTest @CsvSource({"false,false","false,true","true,false","true,true"}) protected void checkTransplantOnNonExistingBranch(boolean individualCommits, boolean dryRun)
-
checkTransplantWithNonExistingCommit
@ParameterizedTest @CsvSource({"false,false","false,true","true,false","true,true"}) protected void checkTransplantWithNonExistingCommit(boolean individualCommits, boolean dryRun) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantWithNoExpectedHash
@ParameterizedTest @ValueSource(booleans={false,true}) protected void checkTransplantWithNoExpectedHash(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkTransplantWithCommitsInWrongOrder
@ParameterizedTest @CsvSource({"false,false","false,true","true,false","true,true"}) protected void checkTransplantWithCommitsInWrongOrder(boolean individualCommits, boolean dryRun) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
checkInvalidBranchHash
@ParameterizedTest @CsvSource({"false,false","false,true","true,false","true,true"}) protected void checkInvalidBranchHash(boolean individualCommits, boolean dryRun) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
transplantBasic
@ParameterizedTest @ValueSource(booleans={false,true}) protected void transplantBasic(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
transplantEmptyCommit
@ParameterizedTest @ValueSource(booleans={false,true}) protected void transplantEmptyCommit(boolean individualCommits) throws org.projectnessie.versioned.VersionStoreException- Throws:
org.projectnessie.versioned.VersionStoreException
-
-