Пример #1
0
 @Test
 public void testEmptyConstructor() throws Exception {
   product = new Product("5678");
   assertEquals("5678", product.getEan());
   assertNull(product.getName());
   assertNotNull(product.getNameProperty());
   assertEquals(0, product.getPrice());
   assertNotNull(product.getPriceProperty());
 }
Пример #2
0
 @Test
 public void testGetEan() throws Exception {
   assertEquals("1234", product.getEan());
 }