use of org.eclipse.scout.rt.shared.extension.fixture.BasicForm in project scout.rt by eclipse.
the class ExtensionRegistryInstantiationTest method testNestedBasicFormExtension.
@Test
public void testNestedBasicFormExtension() throws Exception {
BEANS.get(IExtensionRegistry.class).register(NestedBasicFormExtension.class);
BasicForm basicForm = new BasicForm();
assertExtensions(basicForm.getAllExtensions(), NestedBasicFormExtension.class);
assertExtensions(basicForm.getMainBox().getAllExtensions());
assertExtensions(basicForm.getTopBox().getAllExtensions());
assertExtensions(basicForm.getNameField().getAllExtensions(), NestedBasicFormExtension.NameFieldExtension.class);
assertExtensions(basicForm.getBottomBox().getAllExtensions());
assertExtensions(basicForm.getFirstNameField().getAllExtensions(), NestedBasicFormExtension.FirstNameFieldExtension.class);
}
use of org.eclipse.scout.rt.shared.extension.fixture.BasicForm in project scout.rt by eclipse.
the class ExtensionRegistryInstantiationTest method testExtensionOrder.
@Test
public void testExtensionOrder() throws Exception {
IExtensionRegistry registry = BEANS.get(IExtensionRegistry.class);
registry.register(NameFieldExtension.class);
registry.register(NameFieldExtension02.class);
// test code
BasicForm basicForm = new BasicForm();
assertExtensions(basicForm.getAllExtensions());
assertExtensions(basicForm.getNameField().getAllExtensions(), NameFieldExtension02.class, NameFieldExtension.class);
}
Aggregations