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