use of org.erlide.engine.model.root.ProjectConfigurationSerializer in project erlide_eclipse by erlang.
the class RebarProjectConfigurationTest method configCanBeParsed.
@Override
@Test
public void configCanBeParsed() throws CoreException {
project.setConfigType(ProjectConfigType.REBAR);
project.storeAllProperties();
setFileContent(ProjectConfigType.REBAR.getConfigName(), "");
final IProjectConfigurator persister = ProjectConfiguratorFactory.getDefault().getConfig(project.getConfigType(), project);
final ProjectConfigurationSerializer configurator = ((FileProjectConfigurator) persister).getSerializer();
final ErlangProjectProperties expected = new ErlangProjectProperties();
expected.setOutputDir(new Path("ebin"));
final ErlangProjectProperties actual = configurator.decodeConfig("");
assertThat(actual).isEqualTo(expected);
}
Aggregations