@Test public void testCreateCopy() { System.out.println("createCopy"); Cell instance = new Cell(2,3,State.DEAD); Cell result = instance.createCopy(); assertEquals(instance, result); }
public Cell createCopy() { return new Cell(x,y,state); }
Cell { public Cell createCopy() { return new Cell(x,y,state); } }
Cell { public Cell createCopy() { return new Cell(x,y,state); } Cell(int x,int y);  Cell(int x,int y,State state); }
Cell { public Cell createCopy() { return new Cell(x,y,state); } Cell(int x,int y);  Cell(int x,int y,State state); int getX(); int getY(); State getState(); void setState(State state); @Override int hashCode(); @Override boolean equals(Object obj); Cell createCopy(); }
Cell { public Cell createCopy() { return new Cell(x,y,state); } Cell(int x,int y);  Cell(int x,int y,State state); int getX(); int getY(); State getState(); void setState(State state); @Override int hashCode(); @Override boolean equals(Object obj); Cell createCopy();  }