Class AssertCompare


  • public final class AssertCompare
    extends Object
    A set of assertion methods useful for writing compare/merge tests.
    • Method Detail

      • assertThreeSidesNodeExists

        public static void assertThreeSidesNodeExists​(IComparisonSession session,
                                                      String symlink)
      • 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)
      • 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)
      • assertOneSideContainmentNodeExists

        public static void assertOneSideContainmentNodeExists​(IComparisonSession session,
                                                              ComparisonSide side,
                                                              String nearestTopNodeSymlink,
                                                              org.eclipse.emf.ecore.EStructuralFeature... featuresPath)
      • 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)
      • 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)