// test Track load support public void testTrackLoadSupport() { Location l = new Location("Location Test Load id", "Location Test Name"); Track t = new Track("Test id", "Test Name", "Test Type", l); Assert.assertEquals("Location Track Car id", "Test id", t.getId()); Assert.assertEquals("Location Track Car Name", "Test Name", t.getName()); Assert.assertEquals("Location Track Car Type", "Test Type", t.getTrackType()); Assert.assertEquals("Location", l, t.getLocation()); /* Test Load Swapable */ Assert.assertEquals("Location Track Load Swapable default", false, t.isLoadSwapEnabled()); t.setLoadSwapEnabled(true); Assert.assertEquals("Location Track Load Swapable true", true, t.isLoadSwapEnabled()); t.setLoadSwapEnabled(false); Assert.assertEquals("Location Track Load Swapable false", false, t.isLoadSwapEnabled()); /* Test Remove Loads */ Assert.assertEquals( "Location Track Remove Loads default", false, t.isRemoveCustomLoadsEnabled()); t.setRemoveCustomLoadsEnabled(true); Assert.assertEquals("Location Track Remove Loads true", true, t.isRemoveCustomLoadsEnabled()); t.setRemoveCustomLoadsEnabled(false); Assert.assertEquals("Location Track Remove Loads false", false, t.isRemoveCustomLoadsEnabled()); /* Test Add Loads */ Assert.assertEquals("Location Track Add Loads default", false, t.isAddCustomLoadsEnabled()); t.setAddCustomLoadsEnabled(true); Assert.assertEquals("Location Track Add Loads true", true, t.isAddCustomLoadsEnabled()); t.setAddCustomLoadsEnabled(false); Assert.assertEquals("Location Track Add Loads false", false, t.isAddCustomLoadsEnabled()); }