Search in sources :

Example 21 with RuntimeVersion

use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.

the class RuntimeVersionTest method compare_6a.

@Test
public void compare_6a() {
    final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R16B03");
    final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R16B03-1");
    assertThat(test1.compareTo(test2)).isLessThan(0);
}
Also used : RuntimeVersion(org.erlide.runtime.runtimeinfo.RuntimeVersion) Test(org.junit.Test)

Example 22 with RuntimeVersion

use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.

the class RuntimeVersionTest method compare_4a.

@Test
public void compare_4a() {
    final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("R13A01");
    final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("R13A02");
    assertThat(test1.compareTo(test2)).isLessThan(0);
}
Also used : RuntimeVersion(org.erlide.runtime.runtimeinfo.RuntimeVersion) Test(org.junit.Test)

Example 23 with RuntimeVersion

use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.

the class IErlProjectTest method getRuntimeVersion.

// RuntimeVersion getRuntimeVersion();
@Test
public void getRuntimeVersion() throws Exception {
    final IErlProject aProject = ErlModelTestBase.projects[0];
    final RuntimeVersion version = aProject.getRuntimeVersion();
    assertNotNull(version);
    final int majorVersion = version.getMajor();
    assertTrue(majorVersion >= 12);
}
Also used : IErlProject(org.erlide.engine.model.root.IErlProject) RuntimeVersion(org.erlide.runtime.runtimeinfo.RuntimeVersion) Test(org.junit.Test)

Example 24 with RuntimeVersion

use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.

the class RuntimeVersionTest method compare_7.

@Test
public void compare_7() {
    final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("17.2.0");
    final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("18.1.0");
    assertThat(test1.compareTo(test2)).isLessThan(0);
}
Also used : RuntimeVersion(org.erlide.runtime.runtimeinfo.RuntimeVersion) Test(org.junit.Test)

Example 25 with RuntimeVersion

use of org.erlide.runtime.runtimeinfo.RuntimeVersion in project erlide_eclipse by erlang.

the class RuntimeVersionTest method compare_9.

@Test
public void compare_9() {
    final RuntimeVersion test1 = RuntimeVersion.Serializer.parse("17.1.1");
    final RuntimeVersion test2 = RuntimeVersion.Serializer.parse("17.1.2");
    assertThat(test1.compareTo(test2)).isLessThan(0);
}
Also used : RuntimeVersion(org.erlide.runtime.runtimeinfo.RuntimeVersion) Test(org.junit.Test)

Aggregations

RuntimeVersion (org.erlide.runtime.runtimeinfo.RuntimeVersion)33 Test (org.junit.Test)29 IProject (org.eclipse.core.resources.IProject)1 CoreException (org.eclipse.core.runtime.CoreException)1 IConfigurationElement (org.eclipse.core.runtime.IConfigurationElement)1 Path (org.eclipse.core.runtime.Path)1 ILaunchConfigurationType (org.eclipse.debug.core.ILaunchConfigurationType)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 ILaunchManager (org.eclipse.debug.core.ILaunchManager)1 ModifyEvent (org.eclipse.swt.events.ModifyEvent)1 ModifyListener (org.eclipse.swt.events.ModifyListener)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Combo (org.eclipse.swt.widgets.Combo)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1 Text (org.eclipse.swt.widgets.Text)1 Pair (org.eclipse.xtext.xbase.lib.Pair)1