@@ -0,0 +1,1827 @@
+package jsettlers.logic.map.grid.partition.manager.settings;%0A%0Aimport jsettlers.common.buildings.EBuildingType;%0Aimport jsettlers.common.material.EMaterialType;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A%0Apublic class MaterialDistributionSettingsTest %7B%0A%0A    private static final EMaterialType TEST_MATERIAL = EMaterialType.IRON;%0A    private static final EBuildingType TEST_BUILDING_TYPE = EBuildingType.WEAPONSMITH;%0A%0A    @Test%0A    public void testGetUserConfiguredDistributionValue() %7B%0A        MaterialDistributionSettings settings = new MaterialDistributionSettings(TEST_MATERIAL);%0A        float testValue = 0.5f;%0A        settings.setUserConfiguredDistributionValue(TEST_BUILDING_TYPE, testValue);%0A%0A        float result = settings.getUserConfiguredDistributionValue(TEST_BUILDING_TYPE);%0A%0A        assertEquals(%22the inserted value should be returned%22, testValue, result, 0f);%0A    %7D%0A%0A%0A    @Test%0A    public void testGetDistributionProbability() %7B%0A        MaterialDistributionSettings settings = new MaterialDistributionSettings(TEST_MATERIAL);%0A        settings.setUserConfiguredDistributionValue(TEST_BUILDING_TYPE, 1f);%0A        settings.setUserConfiguredDistributionValue(EBuildingType.TOOLSMITH, 0.7f);%0A        settings.setUserConfiguredDistributionValue(EBuildingType.DOCKYARD, 0.3f);%0A%0A        float result = settings.getDistributionProbability(TEST_BUILDING_TYPE);%0A%0A        assertEquals(%22the distribution probability should take every value into account%22, 0.5f, result, 0f);%0A    %7D%0A%0A    @Test%0A    public void testGetMaterialType() %7B%0A        MaterialDistributionSettings settings = new MaterialDistributionSettings(TEST_MATERIAL);%0A%0A        EMaterialType result = settings.getMaterialType();%0A%0A        assertEquals(%22the type should by the same as used in theconstructor%22, TEST_MATERIAL, result);%0A    %7D%0A%0A%7D%0A

add test for MaterialDistributionSettings