DefaultScreenContextConfigurationUnitBuilder extends DomainTypeConfigurationUnitBuilder<ScreenContextConfigurationUnit> implements ScreenContextConfigurationUnitBuilder { @Override public ScreenContextConfigurationUnit build() { return new DefaultScreenContextConfigurationUnit(getDomainType(), screenName); } DefaultScreenContextConfigurationUnitBuilder(final Class<?> domainType); @Override ScreenContextConfigurationUnitBuilder screenName(final String screenName); @Override ScreenContextConfigurationUnit build();  }
@Test public void defaultConfigurationUnitCreatedForDomainType() throws Exception { ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().build(); assertEquals(DomainConfigurationUnitType.SCREEN_CONTEXT, configurationUnit.getDomainConfigurationUnitType()); assertEquals(DomainType.class, configurationUnit.getDomainType()); }
@Test public void defaultConfigurationUnitWithUndefinedScreenNameCreated() throws Exception { ScreenContextConfigurationUnit configurationUnit = screenContextBuilder().build(); assertEquals("DomainType", configurationUnit.getScreenName()); }