mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
added test for bug #250313
This commit is contained in:
parent
c49e480e31
commit
f476f15554
3 changed files with 42 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
|||
package org.eclipse.xtext.valueconverter;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.xtext.tests.AbstractGeneratorTest;
|
||||
|
||||
public class Bug250313 extends AbstractGeneratorTest {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
Bug250313StandaloneSetup.doSetup();
|
||||
with(Bug250313StandaloneSetup.class);
|
||||
}
|
||||
public void testCheckValueConversion() throws Exception {
|
||||
//TODO fix bug 250131
|
||||
// EObject model = getModel("#2 'str'");
|
||||
// assertWithXtend("'str'", "this.ref2", model);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
language org.eclipse.xtext.valueconverter.Bug250313
|
||||
|
||||
generate bug250313 "http://org.eclipse.xtext.valueconverter.Bug250313"
|
||||
|
||||
Ref2: '#2' ref2 = ('mykeyword1' | STRING | ID) ;
|
|
@ -0,0 +1,19 @@
|
|||
package org.eclipse.xtext.valueconverter;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.xtext.service.AbstractServiceRegistrationFactory;
|
||||
|
||||
/**
|
||||
* used to register components to be used at runtime.
|
||||
*/
|
||||
public class Bug250313RuntimeConfig extends AbstractBug250313RuntimeConfig {
|
||||
|
||||
public Set<IServiceRegistration> registrations() {
|
||||
Set<IServiceRegistration> generated = super.registrations();
|
||||
// do stuff
|
||||
return generated;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in a new issue