@Override @Test (dependsOnMethods = "read") public void create () { int value = 42; EvictionStrategy strategy = EvictionStrategy.LRU; Eviction eviction = createEviction (value, value, value, strategy); eviction = dao.create (eviction); eviction = dao.read (eviction.getId ()); assertEquals (dao.count (), (howMany () + 1)); assertNotNull (eviction); assertEquals (eviction.getKeepPeriod (), value); assertEquals (eviction.getMaxDiskUsage (), value); assertEquals (eviction.getMaxProductNumber (), value); assertEquals (eviction.getProducts (), getProducts ()); assertEquals (eviction.getStrategy (), strategy); }
public Set<Product> getProducts () { Eviction eviction = getEviction (); return eviction.getProducts (); }
EvictionDao extends HibernateDao<Eviction, Long> implements
      IEvictionDao { public Set<Product> getProducts () { Eviction eviction = getEviction (); return eviction.getProducts (); } }
EvictionDao extends HibernateDao<Eviction, Long> implements
      IEvictionDao { public Set<Product> getProducts () { Eviction eviction = getEviction (); return eviction.getProducts (); }  }
EvictionDao extends HibernateDao<Eviction, Long> implements
      IEvictionDao { public Set<Product> getProducts () { Eviction eviction = getEviction (); return eviction.getProducts (); }  Eviction getFactoryDefault(); Eviction getEviction(); void update(EvictionStrategy strategy, int keep_period,
      int max_disk_usage); void setProducts(Set<Product> products); Set<Product> getProducts(); void removeProduct(Product product); }
EvictionDao extends HibernateDao<Eviction, Long> implements
      IEvictionDao { public Set<Product> getProducts () { Eviction eviction = getEviction (); return eviction.getProducts (); }  Eviction getFactoryDefault(); Eviction getEviction(); void update(EvictionStrategy strategy, int keep_period,
      int max_disk_usage); void setProducts(Set<Product> products); Set<Product> getProducts(); void removeProduct(Product product);  }