Package com._1c.g5.v8.dt.testing.compare
Class AssertCompare
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.compare.AssertCompare
-
public final class AssertCompare extends Object
A set of assertion methods useful for writing compare/merge tests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertBothSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertBothSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertBothSidesContainmentNodeExists(String message, IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertBothSidesNodeExists(IComparisonSession session, String symlink)
static void
assertBothSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink)
static void
assertBothSidesNodeExists(String message, IComparisonSession session, String symlink)
static void
assertBothSidesNodeExists(String message, IComparisonSession session, String mainSymlink, String otherSymlink)
static void
assertContainmentNodeCanBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedCanBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertContainmentNodeDoesNotExist(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featurePath)
static void
assertContainmentNodeHasDoubleChanges(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedHasDoubleChanges, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertContainmentNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertContainmentNodeMustBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedMustBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertCorrespondenceEstablished(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink)
static void
assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath)
static void
assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath)
static void
assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path)
static void
assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath)
static void
assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath)
static void
assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath)
static void
assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path)
static void
assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath)
static void
assertOneSideContainmentNodeExists(IComparisonSession session, ComparisonSide side, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertOneSideNodeExists(IComparisonSession session, String symlink, ComparisonSide side)
static void
assertThreeSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, String ancestorNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertThreeSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
static void
assertThreeSidesNodeExists(IComparisonSession session, String symlink)
static void
assertThreeSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink)
static void
assertTopNodeCanBeMerged(IComparisonSession session, String symlink, boolean expectedCanBeMerged)
static void
assertTopNodeComparisonStatusEqualsTo(IComparisonSession session, String symlink, ComparisonNodeStatus expectedComparisonNodeStatus)
static void
assertTopNodeDoesNotExist(IComparisonSession session, String symlink)
static void
assertTopNodeHasDoubleChanges(IComparisonSession session, String symlink, boolean expectedHasDoubleChanges)
static void
assertTopNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule)
static void
assertTopNodeMustBeMerged(IComparisonSession session, String symlink, boolean expectedMustBeMerged)
static void
assertTopNodeMustBeMerged(String message, IComparisonSession session, String symlink, boolean expectedMustBeMerged)
-
-
-
Method Detail
-
assertThreeSidesNodeExists
public static void assertThreeSidesNodeExists(IComparisonSession session, String symlink)
-
assertThreeSidesNodeExists
public static void assertThreeSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink)
-
assertThreeSidesContainmentNodeExists
public static void assertThreeSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertThreeSidesContainmentNodeExists
public static void assertThreeSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, String ancestorNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertBothSidesNodeExists
public static void assertBothSidesNodeExists(IComparisonSession session, String symlink)
-
assertBothSidesNodeExists
public static void assertBothSidesNodeExists(String message, IComparisonSession session, String symlink)
-
assertBothSidesNodeExists
public static void assertBothSidesNodeExists(String message, IComparisonSession session, String mainSymlink, String otherSymlink)
-
assertBothSidesNodeExists
public static void assertBothSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink)
-
assertBothSidesContainmentNodeExists
public static void assertBothSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertBothSidesContainmentNodeExists
public static void assertBothSidesContainmentNodeExists(String message, IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertBothSidesContainmentNodeExists
public static void assertBothSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertOneSideNodeExists
public static void assertOneSideNodeExists(IComparisonSession session, String symlink, ComparisonSide side)
-
assertOneSideContainmentNodeExists
public static void assertOneSideContainmentNodeExists(IComparisonSession session, ComparisonSide side, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertTopNodeHasMergeRule
public static void assertTopNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule)
-
assertContainmentNodeHasMergeRule
public static void assertContainmentNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertTopNodeMustBeMerged
public static void assertTopNodeMustBeMerged(String message, IComparisonSession session, String symlink, boolean expectedMustBeMerged)
-
assertTopNodeMustBeMerged
public static void assertTopNodeMustBeMerged(IComparisonSession session, String symlink, boolean expectedMustBeMerged)
-
assertTopNodeCanBeMerged
public static void assertTopNodeCanBeMerged(IComparisonSession session, String symlink, boolean expectedCanBeMerged)
-
assertContainmentNodeMustBeMerged
public static void assertContainmentNodeMustBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedMustBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertContainmentNodeCanBeMerged
public static void assertContainmentNodeCanBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedCanBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertTopNodeDoesNotExist
public static void assertTopNodeDoesNotExist(IComparisonSession session, String symlink)
-
assertContainmentNodeDoesNotExist
public static void assertContainmentNodeDoesNotExist(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featurePath)
-
assertTopNodeHasDoubleChanges
public static void assertTopNodeHasDoubleChanges(IComparisonSession session, String symlink, boolean expectedHasDoubleChanges)
-
assertTopNodeComparisonStatusEqualsTo
public static void assertTopNodeComparisonStatusEqualsTo(IComparisonSession session, String symlink, ComparisonNodeStatus expectedComparisonNodeStatus)
-
assertContainmentNodeHasDoubleChanges
public static void assertContainmentNodeHasDoubleChanges(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedHasDoubleChanges, org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
-
assertCorrespondenceEstablished
public static void assertCorrespondenceEstablished(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink)
-
assertFileEquals
public static void assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath)
-
assertFileEquals
public static void assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath)
-
assertFileEquals
public static void assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path)
-
assertFileEquals
public static void assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path)
-
assertFileEquals
public static void assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath)
-
assertFileEquals
public static void assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath)
-
assertFileEquals
public static void assertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath)
-
assertFileEquals
public static void assertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath)
-
-