ELTComponentPropertyAdapter implements IPropertyAdapter { @Override public void transform() throws ELTComponentPropertyAdapter.EmptyComponentPropertiesException { validateRawProperties(); for(hydrograph.ui.common.component.config.Property property : rawProperties){ Property tempProperty = transformProperty(property); this.properties.add(tempProperty); } } ELTComponentPropertyAdapter(List<hydrograph.ui.common.component.config.Property> rawProperties); @Override void transform(); @Override ArrayList<Property> getProperties();  }
@Test(expected = ELTComponentPropertyAdapter.EmptyComponentPropertiesException.class) public void itShouldThrowEmptyComponentPropertiesExceptionIfRawPropertiesAreEmptyWhileTransformation() { ELTComponentPropertyAdapter eltComponentPropertyAdapter = new ELTComponentPropertyAdapter(null); eltComponentPropertyAdapter.transform(); }