org.eclipse.modisco.infra.query.tests
Class UnitTests

java.lang.Object
  extended by org.eclipse.modisco.infra.query.tests.UnitTests

public class UnitTests
extends java.lang.Object


Constructor Summary
UnitTests()
           
 
Method Summary
 void bug303036()
          Bug 303036 - implements IJavaModelQuery may be done by a superclass
 void bug306724()
          Bug 306724 - deleting a project containing a query set does not remove the query set from its catalog
 void bug307095()
          Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed
 void bug307095v2()
          Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed
 void bug307095v3()
          Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed
 void bug307187()
          Bug 307187 - AbstractMoDiscoCatalog and name conflicts : If two querySets have the same name, only one will be registered in the catalog and the user will never be informed about this problem.
 void bug309657()
          Bug 309657 - Moving facet or query models generates wrong problem messages
 void bug310269()
          Check that a model stored in the catalog in contained in resource.
 void bug310599()
          Name conflict markers not cleared when closing or deleting other project
 void bug310599v2()
          Name conflict markers not cleared when closing or deleting other project
 void emfmqQueryTest()
           
 void installedQuery01()
          Using platform protocol to refer Ecore model.
 void installedQuery02()
          Using http protocol to refer Ecore model.
 void jxpathQueryTest()
           
 void modiscoProtocol()
           
 void nullResultType()
           
 void oclQueryTest()
           
 void oclQueryTest2()
           
 void oclQueryTest3()
           
 void osgiReload()
          Tests that when the implementation of a Java query is modified, the new implementation is used instead of the old
 void parameterUniqueName()
           
 void resourceSet()
           
 void resourceSet2()
           
 void resourceSet3()
           
 void returnType()
          The query declares that it returns EBoolean, whereas the implementation class returns an Integer
 void returnTypeMulti()
          The query declares that it returns a collection of EClass, whereas the implementation class returns a collection of Boolean
 void scope()
          The query declares EObject as a scope, whereas the implementation class defines EClass (which is more restrictive)
 void simpleEval()
           
 void test001()
           
 void uniqueName()
           
 void wrongImplementationClassInterface()
           
 void wrongImplementationClassName()
           
 void wrongName()
           
 void wrongNameInInstalledQuerySet()
           
 void wrongResultType()
           
 void wrongScope()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTests

public UnitTests()
Method Detail

test001

public void test001()
             throws java.lang.Exception
Throws:
java.lang.Exception

simpleEval

public void simpleEval()
                throws java.lang.Exception
Throws:
java.lang.Exception

osgiReload

public void osgiReload()
                throws java.lang.Exception
Tests that when the implementation of a Java query is modified, the new implementation is used instead of the old

Throws:
java.lang.Exception

oclQueryTest

public void oclQueryTest()
                  throws java.lang.Exception
Throws:
java.lang.Exception

oclQueryTest2

public void oclQueryTest2()
                   throws java.lang.Exception
Throws:
java.lang.Exception

oclQueryTest3

public void oclQueryTest3()
                   throws java.lang.Exception
Throws:
java.lang.Exception

emfmqQueryTest

public void emfmqQueryTest()
                    throws java.lang.Exception
Throws:
java.lang.Exception

jxpathQueryTest

public void jxpathQueryTest()
                     throws java.lang.Exception
Throws:
java.lang.Exception

installedQuery01

public void installedQuery01()
                      throws ModelQueryException
Using platform protocol to refer Ecore model.

Throws:
ModelQueryException

installedQuery02

public void installedQuery02()
                      throws ModelQueryException
Using http protocol to refer Ecore model.

Throws:
ModelQueryException

wrongName

public void wrongName()
               throws java.lang.Exception
Throws:
java.lang.Exception

wrongResultType

public void wrongResultType()
                     throws java.lang.Exception
Throws:
java.lang.Exception

wrongScope

public void wrongScope()
                throws java.lang.Exception
Throws:
java.lang.Exception

nullResultType

public void nullResultType()
                    throws java.lang.Exception
Throws:
java.lang.Exception

uniqueName

public void uniqueName()
                throws java.lang.Exception
Throws:
java.lang.Exception

parameterUniqueName

public void parameterUniqueName()
                         throws java.lang.Exception
Throws:
java.lang.Exception

returnType

public void returnType()
                throws java.lang.Exception
The query declares that it returns EBoolean, whereas the implementation class returns an Integer

Throws:
java.lang.Exception

returnTypeMulti

public void returnTypeMulti()
                     throws java.lang.Exception
The query declares that it returns a collection of EClass, whereas the implementation class returns a collection of Boolean

Throws:
java.lang.Exception

scope

public void scope()
           throws java.lang.Exception
The query declares EObject as a scope, whereas the implementation class defines EClass (which is more restrictive)

Throws:
java.lang.Exception

wrongNameInInstalledQuerySet

public void wrongNameInInstalledQuerySet()

resourceSet

public void resourceSet()
                 throws java.lang.Exception
Throws:
java.lang.Exception

resourceSet2

public void resourceSet2()
                  throws java.lang.Exception
Throws:
java.lang.Exception

resourceSet3

public void resourceSet3()

modiscoProtocol

public void modiscoProtocol()

bug303036

public void bug303036()
               throws ModelQueryException
Bug 303036 - implements IJavaModelQuery may be done by a superclass

Throws:
ModelQueryException

wrongImplementationClassName

public void wrongImplementationClassName()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

wrongImplementationClassInterface

public void wrongImplementationClassInterface()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

bug306724

public void bug306724()
               throws java.lang.Exception
Bug 306724 - deleting a project containing a query set does not remove the query set from its catalog

Throws:
java.lang.Exception

bug307095

public void bug307095()
               throws java.lang.Exception
Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed

Throws:
java.lang.Exception

bug307095v2

public void bug307095v2()
                 throws java.lang.Exception
Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed

Throws:
java.lang.Exception

bug307095v3

public void bug307095v3()
                 throws java.lang.Exception
Bug 307095 - the validation state of a Java query is not updated when the Java class is fixed

Throws:
java.lang.Exception

bug307187

public void bug307187()
               throws java.lang.Exception
Bug 307187 - AbstractMoDiscoCatalog and name conflicts : If two querySets have the same name, only one will be registered in the catalog and the user will never be informed about this problem.

Throws:
java.lang.Exception

bug309657

public void bug309657()
               throws java.lang.Exception
Bug 309657 - Moving facet or query models generates wrong problem messages

Throws:
java.lang.Exception

bug310269

public void bug310269()
               throws java.lang.Exception
Check that a model stored in the catalog in contained in resource.

Throws:
java.lang.Exception

bug310599

public void bug310599()
               throws java.lang.Exception
Name conflict markers not cleared when closing or deleting other project

Throws:
java.lang.Exception

bug310599v2

public void bug310599v2()
                 throws java.lang.Exception
Name conflict markers not cleared when closing or deleting other project

Throws:
java.lang.Exception