Search in sources :

Example 11 with ErlangProjectProperties

use of org.erlide.engine.model.root.ErlangProjectProperties in project erlide_eclipse by erlang.

the class ErlProjectPropertiesTest method defaultValuesTest.

@Test
public void defaultValuesTest() {
    final ErlangProjectProperties p = new ErlangProjectProperties();
    assertThat(p.getOutputDir()).isEqualTo(new Path(""));
    assertThat(p.getSourceDirs()).isEmpty();
    assertThat(p.getIncludeDirs()).isEmpty();
}
Also used : Path(org.eclipse.core.runtime.Path) ErlangProjectProperties(org.erlide.engine.model.root.ErlangProjectProperties) Test(org.junit.Test)

Example 12 with ErlangProjectProperties

use of org.erlide.engine.model.root.ErlangProjectProperties 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);
}
Also used : IProjectConfigurator(org.erlide.engine.model.root.IProjectConfigurator) ErlangProjectProperties(org.erlide.engine.model.root.ErlangProjectProperties) Test(org.junit.Test)

Aggregations

ErlangProjectProperties (org.erlide.engine.model.root.ErlangProjectProperties)12 IPath (org.eclipse.core.runtime.IPath)8 Test (org.junit.Test)7 Path (org.eclipse.core.runtime.Path)6 IProject (org.eclipse.core.resources.IProject)3 IErlProject (org.erlide.engine.model.root.IErlProject)3 ArrayList (java.util.ArrayList)2 IWorkspaceRoot (org.eclipse.core.resources.IWorkspaceRoot)2 CoreException (org.eclipse.core.runtime.CoreException)2 IProjectConfigurator (org.erlide.engine.model.root.IProjectConfigurator)2 OtpErlangList (com.ericsson.otp.erlang.OtpErlangList)1 OtpErlangString (com.ericsson.otp.erlang.OtpErlangString)1 IResource (org.eclipse.core.resources.IResource)1 ProjectScope (org.eclipse.core.resources.ProjectScope)1 OperationCanceledException (org.eclipse.core.runtime.OperationCanceledException)1 IEclipsePreferences (org.eclipse.core.runtime.preferences.IEclipsePreferences)1 BackendException (org.erlide.backend.api.BackendException)1 DialyzerBuilder (org.erlide.dialyzer.internal.builder.DialyzerBuilder)1 ErlProject (org.erlide.engine.internal.model.root.ErlProject)1 ErlModelException (org.erlide.engine.model.ErlModelException)1