1 16 package net.sf.dozer.util.mapping.jmx; 17 18 import net.sf.dozer.util.mapping.DozerTestBase; 19 import net.sf.dozer.util.mapping.util.MapperConstants; 20 21 24 public class DozerAdminControllerTest extends DozerTestBase { 25 26 private DozerAdminController controller; 27 28 protected void setUp() throws Exception { 29 super.setUp(); 30 controller = new DozerAdminController(); 31 } 32 33 public void testSetStatisticsEnabled() throws Exception { 34 boolean isStatisticsEnabled = controller.isStatisticsEnabled(); 35 controller.setStatisticsEnabled(!isStatisticsEnabled); 36 assertEquals("statistics enabled value was not updated", !isStatisticsEnabled, controller.isStatisticsEnabled()); 37 } 38 39 public void testGetCurrentVersion() throws Exception { 40 assertEquals("incorrect current version", MapperConstants.CURRENT_VERSION, controller.getCurrentVersion()); 41 } 42 43 } 44 | Popular Tags |