dialogFixture.textBox("TextFieldSupplierDescription").enterText(
"beskrivelse");
dialogFixture.checkBox("CheckBoxInactive").check();
dialogFixture.button("SaveSupplier").click();
Supplier supplier = new Supplier();
supplier.setSupplierName("test");
List<Supplier> list = supplierManager.findByObject(supplier);
assertNotNull(list);
assertEquals(1, list.size());
supplier = list.get(0);
assertEquals("test", supplier.getSupplierName());
assertEquals("Montering", supplier.getSupplierType()
.getSupplierTypeName());
assertEquals("1111111", supplier.getPhone());
assertEquals("2222222", supplier.getFax());
assertEquals("adresse", supplier.getAddress());
assertEquals("1000", supplier.getPostalCode());
assertEquals("poststed", supplier.getPostOffice());
assertEquals("beskrivelse", supplier.getSupplierDescription());
assertEquals(Integer.valueOf(1), supplier.getInactive());
}