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);
}
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());
}
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());
}
Aggregations