diff options
author | Michal Duda <michal.duda@sonarsource.com> | 2019-05-16 12:36:17 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-21 20:21:07 +0200 |
commit | dfcb1c01a430cf3317d12ff4448fc700b9979d4f (patch) | |
tree | 07a32c098cc59661abf85ff15bdff909e2cfd4b0 /sonar-core/src/test | |
parent | 42aa152b7b174ce55796b8b00758d1fe63643cb7 (diff) | |
download | sonarqube-dfcb1c01a430cf3317d12ff4448fc700b9979d4f.tar.gz sonarqube-dfcb1c01a430cf3317d12ff4448fc700b9979d4f.zip |
SONAR-11720 Set different memory defaults for EE+
Diffstat (limited to 'sonar-core/src/test')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionTest.java | 44 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionsLoaderTest.java | 2 |
2 files changed, 45 insertions, 1 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionTest.java b/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionTest.java new file mode 100644 index 00000000000..b3acb7608da --- /dev/null +++ b/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionTest.java @@ -0,0 +1,44 @@ +/* + * SonarQube + * Copyright (C) 2009-2019 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.sonar.core.extension; + +import org.junit.Test; + +import static org.assertj.core.api.Assertions.assertThat; + +public class CoreExtensionTest { + + private CoreExtension underTest = new CoreExtension() { + @Override + public String getName() { + return "fake"; + } + + @Override + public void load(Context context) { + // nothing to do here + } + }; + + @Test + public void getExtensionProperties_by_default_does_not_contain_any_overridden_property_defaults() { + assertThat(underTest.getExtensionProperties()).isEmpty(); + } +} diff --git a/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionsLoaderTest.java b/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionsLoaderTest.java index eb727ff8249..0fe863d1cdf 100644 --- a/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionsLoaderTest.java +++ b/sonar-core/src/test/java/org/sonar/core/extension/CoreExtensionsLoaderTest.java @@ -40,7 +40,7 @@ public class CoreExtensionsLoaderTest { public ExpectedException expectedException = ExpectedException.none(); private CoreExtensionRepository coreExtensionRepository = mock(CoreExtensionRepository.class); - private CoreExtensionsLoader.ServiceLoaderWrapper serviceLoaderWrapper = mock(CoreExtensionsLoader.ServiceLoaderWrapper.class); + private ServiceLoaderWrapper serviceLoaderWrapper = mock(ServiceLoaderWrapper.class); private CoreExtensionsLoader underTest = new CoreExtensionsLoader(coreExtensionRepository, serviceLoaderWrapper); @Test |