@@ -0,0 +1,1498 @@
+/*%0A * Copyright 2017 Red Hat, Inc. and/or its affiliates.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *       http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A */%0Apackage org.guvnor.m2repo.preferences;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class ArtifactRepositoryPreferenceTest %7B%0A%0A    @Test%0A    public void defaultValue() %7B%0A        ArtifactRepositoryPreference artifactRepositoryPreference = new ArtifactRepositoryPreference();%0A        artifactRepositoryPreference = artifactRepositoryPreference.defaultValue(artifactRepositoryPreference);%0A%0A        assertEquals(artifactRepositoryPreference.getGlobalM2RepoDir(), %22repositories/kie/global%22);%0A        assertEquals(artifactRepositoryPreference.getWorkspaceM2RepoDir(), %22repositories/kie/workspaces%22);%0A        assertTrue(artifactRepositoryPreference.isGlobalM2RepoDirEnabled());%0A        assertFalse(artifactRepositoryPreference.isWorkspaceM2RepoDirEnabled());%0A        assertTrue(artifactRepositoryPreference.isDistributionManagementM2RepoDirEnabled());%0A    %7D%0A%7D

add test for Artifact Repository preferences (#515)