Search in sources :

Example 1 with FreezerPage

use of uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage in project miso-lims by miso-lims.

the class FreezerPageIT method testCreate.

@Test
public void testCreate() {
    FreezerPage page1 = FreezerPage.getForCreate(getDriver(), getBaseUrl());
    Map<FreezerPage.Field, String> fields = Maps.newLinkedHashMap();
    fields.put(Field.ROOM, "Room One");
    fields.put(Field.ALIAS, "New Freezer");
    page1.setFields(fields);
    FreezerPage page2 = page1.save();
    long savedId = Long.parseLong(page2.getField(Field.ID));
    StorageLocation saved = (StorageLocation) getSession().get(StorageLocation.class, savedId);
    assertFreezerAttributes(fields, saved);
}
Also used : Field(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage.Field) FreezerPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage) StorageLocation(uk.ac.bbsrc.tgac.miso.core.data.impl.StorageLocation) Test(org.junit.Test)

Example 2 with FreezerPage

use of uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage in project miso-lims by miso-lims.

the class FreezerPageIT method testUpdate.

@Test
public void testUpdate() {
    FreezerPage page1 = FreezerPage.get(getDriver(), getBaseUrl(), 3L);
    FreezerPage page2 = page1.save();
    assertNotNull(page2);
}
Also used : FreezerPage(uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 FreezerPage (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage)2 StorageLocation (uk.ac.bbsrc.tgac.miso.core.data.impl.StorageLocation)1 Field (uk.ac.bbsrc.tgac.miso.webapp.integrationtest.page.FreezerPage.Field)1