org.eclipse.xtext.junit4.validation
Class ValidationTestHelper

java.lang.Object
  extended by org.eclipse.xtext.junit4.validation.ValidationTestHelper

public class ValidationTestHelper
extends java.lang.Object

Author:
Jan Koehnlein - Initial contribution and API, Sven Efftinge

Constructor Summary
ValidationTestHelper()
           
 
Method Summary
 void assertError(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EClass objectType, java.lang.String code, java.lang.String... messageParts)
           
 void assertIssue(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EClass objectType, java.lang.String code, Severity severity, java.lang.String... messageParts)
           
 void assertNoError(org.eclipse.emf.ecore.EObject model, java.lang.String issuecode)
           
 void assertNoErrors(org.eclipse.emf.ecore.EObject model)
           
 void assertNoIssues(org.eclipse.emf.ecore.EObject model)
           
 void assertWarning(org.eclipse.emf.ecore.EObject model, org.eclipse.emf.ecore.EClass objectType, java.lang.String code, java.lang.String... messageParts)
           
 java.util.List<Issue> validate(org.eclipse.emf.ecore.EObject model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationTestHelper

public ValidationTestHelper()
Method Detail

validate

public java.util.List<Issue> validate(org.eclipse.emf.ecore.EObject model)

assertNoIssues

public void assertNoIssues(org.eclipse.emf.ecore.EObject model)

assertNoErrors

public void assertNoErrors(org.eclipse.emf.ecore.EObject model)

assertNoError

public void assertNoError(org.eclipse.emf.ecore.EObject model,
                          java.lang.String issuecode)

assertError

public void assertError(org.eclipse.emf.ecore.EObject model,
                        org.eclipse.emf.ecore.EClass objectType,
                        java.lang.String code,
                        java.lang.String... messageParts)

assertIssue

public void assertIssue(org.eclipse.emf.ecore.EObject model,
                        org.eclipse.emf.ecore.EClass objectType,
                        java.lang.String code,
                        Severity severity,
                        java.lang.String... messageParts)

assertWarning

public void assertWarning(org.eclipse.emf.ecore.EObject model,
                          org.eclipse.emf.ecore.EClass objectType,
                          java.lang.String code,
                          java.lang.String... messageParts)