@Override public void setUp() throws Exception { super.setUp(); with(new SimpleUnorderedGroupsTestLanguageStandaloneSetup() { @Override public Injector createInjector() { return Guice.createInjector(new SimpleUnorderedGroupsTestLanguageRuntimeModule() { @SuppressWarnings("unused") public ISyntaxErrorMessageProvider bindSyntaxErrorMessageProvider() { return ErrorMessagesTest.this; } }); } }); delegate = get(SyntaxErrorMessageProvider.class); grammarAccess = get(SimpleUnorderedGroupsTestLanguageGrammarAccess.class); }
public Class<? extends ISyntaxErrorMessageProvider> bindISyntaxErrorMessageProvider() { return SpecSyntaxErrorMessageProvider.class; }
public Class<? extends ISyntaxErrorMessageProvider> bindISyntaxErrorMessageProvider() { return GamlSyntaxErrorMessageProvider.class; }