Exemple #1
0
  @Test
  public void testClone() throws CloneNotSupportedException {
    LQISeverity sev = new LQISeverity("Murky", 7.0);
    List<LQIErrorCategory> cats = Collections.singletonList(new LQIErrorCategory("Confusion"));
    grid.setSeverities(Collections.singletonList(sev));
    grid.setErrorCategories((cats));

    LQIGrid clone = (LQIGrid) grid.clone();
    assertEquals(sev, clone.getSeverity("Murky"));
    assertEquals(cats, clone.getErrorCategories());
  }