use of org.erlide.engine.model.root.IProjectConfigurator 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);
}
use of org.erlide.engine.model.root.IProjectConfigurator in project erlide_eclipse by erlang.
the class ErlProject method storeProperties.
private void storeProperties() {
if (properties != null) {
final IProjectConfigurator builderConfig = getConfig();
builderConfig.setConfiguration(properties);
}
}
use of org.erlide.engine.model.root.IProjectConfigurator in project erlide_eclipse by erlang.
the class EmakeProjectConfigurationTest method configuratorExists.
@Test
public void configuratorExists() {
project.setConfigType(ProjectConfigType.EMAKE);
final IProjectConfigurator config = ProjectConfiguratorFactory.getDefault().getConfig(project.getConfigType(), project);
assertThat(config).isNotNull();
// final ProjectConfigurator configurator = config.getConfigurator();
// assertThat(configurator).isEqualTo(notNullValue()));
}
use of org.erlide.engine.model.root.IProjectConfigurator in project erlide_eclipse by erlang.
the class EmakeProjectConfigurationTest method configCanBeParsed.
@Override
@Test
public void configCanBeParsed() throws CoreException {
project.setConfigType(ProjectConfigType.EMAKE);
final IProjectConfigurator config = ProjectConfiguratorFactory.getDefault().getConfig(project.getConfigType(), project);
final ErlangProjectProperties expected = ErlangProjectProperties.DEFAULT;
final ErlangProjectProperties actual = config.getConfiguration();
assertThat(actual).isEqualTo(expected);
}
Aggregations