org.eclipse.xtext.junit.validation
Class ValidatorTester<T extends AbstractDeclarativeValidator>

java.lang.Object
  extended by org.eclipse.xtext.junit.validation.AbstractValidatorTester
      extended by org.eclipse.xtext.junit.validation.ValidatorTester<T>

public class ValidatorTester<T extends AbstractDeclarativeValidator>
extends AbstractValidatorTester

Author:
Moritz Eysholdt - Initial contribution and API

Field Summary
protected  T validator
           
protected  boolean validatorCalled
           
 
Fields inherited from class org.eclipse.xtext.junit.validation.AbstractValidatorTester
diagnostician
 
Constructor Summary
ValidatorTester(T validator, EValidatorRegistrar registrar, java.lang.String languageName)
           
ValidatorTester(T validator, com.google.inject.Injector injector)
           
 
Method Summary
 AssertableDiagnostics diagnose()
           
 T validator()
           
 
Methods inherited from class org.eclipse.xtext.junit.validation.AbstractValidatorTester
validate, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected T extends AbstractDeclarativeValidator validator

validatorCalled

protected boolean validatorCalled
Constructor Detail

ValidatorTester

public ValidatorTester(T validator,
                       com.google.inject.Injector injector)

ValidatorTester

public ValidatorTester(T validator,
                       EValidatorRegistrar registrar,
                       java.lang.String languageName)
Method Detail

diagnose

public AssertableDiagnostics diagnose()

validator

public T validator()