예제 #1
0
  @Test
  public void setMultiplierNegative() {
    Product product = new Product("test", "Test Product", owner);
    product.setMultiplier(-15L);

    assertEquals(Long.valueOf(1), product.getMultiplier());
  }
예제 #2
0
  @Test
  public void setMultiplierBasic() {
    Product product = new Product("test", "Test Product", owner);
    product.setMultiplier(4L);

    assertEquals(Long.valueOf(4), product.getMultiplier());
  }