// @Test public void testToString() { int id = 1; cap.setId(id); String name = "Quartz capillary"; cap.setName(name); String silica = "SiO2"; cap.setComposition(silica); double density = 1.65; cap.setDensity(density); double pack = 0.6; cap.setPackingFraction(pack); }
@Test public void testSetGetId() { int id = 1; sample.setId(id); assertEquals("New ID not set/got correctly", id, sample.getId()); }