Package com._1c.g5.v8.dt.testing.compare
Class AssertCompare
java.lang.Object
com._1c.g5.v8.dt.testing.compare.AssertCompare
A set of assertion methods useful for writing compare/merge tests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertBothSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertBothSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertBothSidesContainmentNodeExists(String message, IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertBothSidesNodeExists(IComparisonSession session, String symlink) static voidassertBothSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink) static voidassertBothSidesNodeExists(String message, IComparisonSession session, String symlink) static voidassertBothSidesNodeExists(String message, IComparisonSession session, String mainSymlink, String otherSymlink) static voidassertContainmentNodeCanBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedCanBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertContainmentNodeDoesNotExist(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featurePath) static voidassertContainmentNodeHasDoubleChanges(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedHasDoubleChanges, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertContainmentNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertContainmentNodeMustBeMerged(IComparisonSession session, String nearestTopNodeSymlink, boolean expectedMustBeMerged, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertCorrespondenceEstablished(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink) static voidassertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath) static voidassertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath) static voidassertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path) static voidassertFileEquals(IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath) static voidassertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String stringPath) static voidassertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, String mainPath, String otherPath) static voidassertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path path) static voidassertFileEquals(String message, IProjectSourceProvider mainSourceProvider, IProjectSourceProvider otherSourceProvider, Path mainPath, Path otherPath) static voidassertOneSideContainmentNodeExists(IComparisonSession session, ComparisonSide side, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertOneSideNodeExists(IComparisonSession session, String symlink, ComparisonSide side) static voidassertThreeSidesContainmentNodeExists(IComparisonSession session, String mainNearestTopNodeSymlink, String otherNearestTopNodeSymlink, String ancestorNearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertThreeSidesContainmentNodeExists(IComparisonSession session, String nearestTopNodeSymlink, org.eclipse.emf.ecore.EStructuralFeature... featuresPath) static voidassertThreeSidesNodeExists(IComparisonSession session, String symlink) static voidassertThreeSidesNodeExists(IComparisonSession session, String mainSymlink, String otherSymlink, String ancestorSymlink) static voidassertTopNodeCanBeMerged(IComparisonSession session, String symlink, boolean expectedCanBeMerged) static voidassertTopNodeComparisonStatusEqualsTo(IComparisonSession session, String symlink, ComparisonNodeStatus expectedComparisonNodeStatus) static voidassertTopNodeDoesNotExist(IComparisonSession session, String symlink) static voidassertTopNodeHasDoubleChanges(IComparisonSession session, String symlink, boolean expectedHasDoubleChanges) static voidassertTopNodeHasMergeRule(IComparisonSession session, String symlink, MergeRule expectedMergeRule) static voidassertTopNodeMustBeMerged(IComparisonSession session, String symlink, boolean expectedMustBeMerged) static voidassertTopNodeMustBeMerged(String message, IComparisonSession session, String symlink, boolean expectedMustBeMerged)
-
Method Details
-
assertThreeSidesNodeExists
-
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
-
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
-
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)
-