/** * A unit test suite for JUnit. * * @return The test suite * @throws Exception */ @Test public void testGetMaxIterations() throws Exception { PiElectronegativity pe = new PiElectronegativity(); Assert.assertSame(6, pe.getMaxIterations()); }
/** * A unit test suite for JUnit. * * @return The test suite * @throws Exception */ @Test public void testSetMaxIterations_Int() throws Exception { PiElectronegativity pe = new PiElectronegativity(); int maxIter = 10; pe.setMaxIterations(maxIter); Assert.assertSame(maxIter, pe.getMaxIterations()); }