org.eclipse.modisco.common.tests
Class TestModelUtils

java.lang.Object
  extended by org.eclipse.modisco.common.tests.TestModelUtils

public class TestModelUtils
extends java.lang.Object


Constructor Summary
TestModelUtils()
           
 
Method Summary
static boolean compareModels(java.io.File leftUri, java.io.File rightUri, boolean ignoreIds, boolean delete)
          Compare two ecore files as models.
static boolean compareModels(Resource leftModel, Resource rightModel, boolean ignoreIds)
          Compare two ecore files as models.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestModelUtils

public TestModelUtils()
Method Detail

compareModels

public static boolean compareModels(java.io.File leftUri,
                                    java.io.File rightUri,
                                    boolean ignoreIds,
                                    boolean delete)
                             throws java.io.IOException,
                                    java.lang.InterruptedException
Compare two ecore files as models.

Parameters:
leftUri - the left file uri
rightUri - the right file uri
ignoreIds - if true, ignore xmi ids
delete - if true, delete the right file after comparison
Throws:
java.io.IOException
java.lang.InterruptedException

compareModels

public static boolean compareModels(Resource leftModel,
                                    Resource rightModel,
                                    boolean ignoreIds)
                             throws java.io.IOException,
                                    java.lang.InterruptedException
Compare two ecore files as models.

Parameters:
leftUri - the left file uri
rightUri - the right file uri
ignoreIds - if true, ignore xmi ids
delete - if true, delete the right file after comparison
Throws:
java.io.IOException
java.lang.InterruptedException