Search in sources :

Example 21 with Status

use of org.eclipse.scout.rt.platform.status.Status in project scout.rt by eclipse.

the class StatusTest method setup.

@Before
public void setup() {
    m_infoStatus = new Status(IStatus.INFO);
    m_warningStatus = new Status(IStatus.WARNING);
}
Also used : IStatus(org.eclipse.scout.rt.platform.status.IStatus) Status(org.eclipse.scout.rt.platform.status.Status) Before(org.junit.Before)

Example 22 with Status

use of org.eclipse.scout.rt.platform.status.Status in project scout.rt by eclipse.

the class CellTest method testSetErrorStatus.

/**
 * {@link Cell#setErrorStatus(org.eclipse.scout.rt.platform.status.IStatus)}
 */
@Test
public void testSetErrorStatus() {
    Cell c = new Cell();
    c.addErrorStatus(new Status("error", IStatus.ERROR));
    assertEquals(IStatus.ERROR, c.getErrorStatus().getSeverity());
}
Also used : IStatus(org.eclipse.scout.rt.platform.status.IStatus) Status(org.eclipse.scout.rt.platform.status.Status) MultiStatus(org.eclipse.scout.rt.platform.status.MultiStatus) ParsingFailedStatus(org.eclipse.scout.rt.client.ui.form.fields.ParsingFailedStatus) Test(org.junit.Test)

Example 23 with Status

use of org.eclipse.scout.rt.platform.status.Status in project scout.rt by eclipse.

the class CellTest method testIconCellSetErrorStatus.

/**
 * When creating a cell. The errorstatus should not be set.
 * {@link Cell#setErrorStatus(org.eclipse.scout.rt.platform.status.IStatus)}
 */
@Test
public void testIconCellSetErrorStatus() {
    final String testIconId = "";
    Cell c = new Cell();
    c.setIconId(testIconId);
    c.addErrorStatus(new Status("error", IStatus.ERROR));
    c.addErrorStatus(new Status("error2", IStatus.ERROR));
    c.clearErrorStatus();
    c.addErrorStatus(new Status("error3", IStatus.ERROR));
    c.clearErrorStatus();
    assertNull(c.getErrorStatus());
    assertEquals(testIconId, c.getIconId());
}
Also used : IStatus(org.eclipse.scout.rt.platform.status.IStatus) Status(org.eclipse.scout.rt.platform.status.Status) MultiStatus(org.eclipse.scout.rt.platform.status.MultiStatus) ParsingFailedStatus(org.eclipse.scout.rt.client.ui.form.fields.ParsingFailedStatus) Test(org.junit.Test)

Aggregations

Status (org.eclipse.scout.rt.platform.status.Status)23 Test (org.junit.Test)15 IStatus (org.eclipse.scout.rt.platform.status.IStatus)14 MultiStatus (org.eclipse.scout.rt.platform.status.MultiStatus)11 IMultiStatus (org.eclipse.scout.rt.platform.status.IMultiStatus)9 InvalidSequenceStatus (org.eclipse.scout.rt.client.ui.form.fields.sequencebox.InvalidSequenceStatus)8 ParsingFailedStatus (org.eclipse.scout.rt.client.ui.form.fields.ParsingFailedStatus)3 ITable (org.eclipse.scout.rt.client.ui.basic.table.ITable)2 IProcessingStatus (org.eclipse.scout.rt.platform.exception.IProcessingStatus)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 ITableRow (org.eclipse.scout.rt.client.ui.basic.table.ITableRow)1 ITableCustomizer (org.eclipse.scout.rt.client.ui.basic.table.customizer.ITableCustomizer)1 TableUserFilterManager (org.eclipse.scout.rt.client.ui.basic.table.userfilter.TableUserFilterManager)1 ITreeNode (org.eclipse.scout.rt.client.ui.basic.tree.ITreeNode)1 ISearchForm (org.eclipse.scout.rt.client.ui.desktop.outline.pages.ISearchForm)1 Order (org.eclipse.scout.rt.platform.Order)1 ConfigOperation (org.eclipse.scout.rt.platform.annotations.ConfigOperation)1 ProcessingException (org.eclipse.scout.rt.platform.exception.ProcessingException)1 VetoException (org.eclipse.scout.rt.platform.exception.VetoException)1