mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-13 13:44:26 +00:00
Removed superfluous public for tests
This commit is contained in:
@@ -76,6 +76,6 @@ public class TestClientOutput implements ClientOutput {
|
||||
}
|
||||
|
||||
public List<String> messagesToString() {
|
||||
return messages.stream().map(m -> m.toString()).collect(Collectors.toList());
|
||||
return messages.stream().map(Object::toString).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class AlpineLinuxNativeIT {
|
||||
class AlpineLinuxNativeIT {
|
||||
|
||||
private ImageFromDockerfile image;
|
||||
private String mvndHome;
|
||||
|
@@ -23,7 +23,7 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class AlpineLinuxTest extends AlpineLinuxNativeIT {
|
||||
class AlpineLinuxTest extends AlpineLinuxNativeIT {
|
||||
|
||||
@Override
|
||||
protected boolean isNative() {
|
||||
|
@@ -26,7 +26,7 @@ import org.mvndaemon.mvnd.client.Client;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/attached-artifact-resolution")
|
||||
public class AttachedArtifactResolutionTest {
|
||||
class AttachedArtifactResolutionTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -37,7 +37,7 @@ import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/bootstrap-plugin")
|
||||
@DisabledOnOs(OS.WINDOWS)
|
||||
public class BootstrapPluginTest {
|
||||
class BootstrapPluginTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -29,7 +29,7 @@ import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
import org.mvndaemon.mvnd.junit.MvndTestExtension;
|
||||
|
||||
@MvndNativeTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
|
||||
public class CompletionNativeIT {
|
||||
class CompletionNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -22,4 +22,4 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import org.mvndaemon.mvnd.junit.MvndTestExtension;
|
||||
|
||||
@MvndTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
|
||||
public class CompletionTest extends CompletionNativeIT {}
|
||||
class CompletionTest extends CompletionNativeIT {}
|
||||
|
@@ -33,7 +33,7 @@ import org.mvndaemon.mvnd.junit.TestParameters;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/concurrent-downloads")
|
||||
public class ConcurrentDownloadsTest {
|
||||
class ConcurrentDownloadsTest {
|
||||
|
||||
@Inject
|
||||
ClientFactory clientFactory;
|
||||
|
@@ -38,7 +38,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/daemon-crash", keepAlive = "100ms", maxLostKeepAlive = "30")
|
||||
@Timeout(60)
|
||||
public class DaemonCrashTest {
|
||||
class DaemonCrashTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -33,7 +33,7 @@ import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
import org.mvndaemon.mvnd.junit.TestUtils;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/delete-repo")
|
||||
public class DeleteRepoNativeIT {
|
||||
class DeleteRepoNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/delete-repo")
|
||||
public class DeleteRepoTest extends DeleteRepoNativeIT {}
|
||||
class DeleteRepoTest extends DeleteRepoNativeIT {}
|
||||
|
@@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
public class DistroIT {
|
||||
class DistroIT {
|
||||
|
||||
/**
|
||||
* Asserts that we do not have the same libs in lib/ext and in lib or boot directories.
|
||||
|
@@ -29,7 +29,7 @@ import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/dup-ga")
|
||||
public class DupGATest {
|
||||
class DupGATest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -36,7 +36,7 @@ import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/environment")
|
||||
public class EnvironmentTest {
|
||||
class EnvironmentTest {
|
||||
|
||||
@Inject
|
||||
TestRegistry registry;
|
||||
|
@@ -31,7 +31,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/exec-output")
|
||||
public class ExecOutputTest {
|
||||
class ExecOutputTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -27,7 +27,7 @@ import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||
import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/extension-with-api")
|
||||
public class ExtensionWithApiNativeIT {
|
||||
class ExtensionWithApiNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -34,7 +34,7 @@ import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/extensions")
|
||||
public class ExtensionsNativeIT {
|
||||
class ExtensionsNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/extensions")
|
||||
public class ExtensionsTest extends ExtensionsNativeIT {}
|
||||
class ExtensionsTest extends ExtensionsNativeIT {}
|
||||
|
@@ -31,7 +31,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/forked")
|
||||
public class ForkedTest {
|
||||
class ForkedTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -34,7 +34,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/single-module")
|
||||
@Timeout(300)
|
||||
public class InteractiveTest {
|
||||
class InteractiveTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -35,7 +35,7 @@ import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||
import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/invoker")
|
||||
public class InvokerNativeIT {
|
||||
class InvokerNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/invoker")
|
||||
public class InvokerTest extends InvokerNativeIT {}
|
||||
class InvokerTest extends InvokerNativeIT {}
|
||||
|
@@ -30,7 +30,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/junit-platform")
|
||||
public class JUnitPlatformTest {
|
||||
class JUnitPlatformTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -31,7 +31,7 @@ import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/maven-conf")
|
||||
public class MavenConfNativeIT {
|
||||
class MavenConfNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/maven-conf")
|
||||
public class MavenConfTest extends MavenConfNativeIT {}
|
||||
class MavenConfTest extends MavenConfNativeIT {}
|
||||
|
@@ -36,7 +36,7 @@ import org.slf4j.spi.LocationAwareLogger;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
public class MaxHeapNativeIT {
|
||||
class MaxHeapNativeIT {
|
||||
|
||||
static class BaseTest {
|
||||
|
||||
|
@@ -20,7 +20,7 @@ package org.mvndaemon.mvnd.it;
|
||||
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
public class MaxHeapTest extends MaxHeapNativeIT {
|
||||
class MaxHeapTest extends MaxHeapNativeIT {
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/max-heap/default-heap")
|
||||
static class DefaultConfig extends MaxHeapNativeIT.DefaultConfig {}
|
||||
|
@@ -35,7 +35,7 @@ import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
import org.mvndaemon.mvnd.junit.TestUtils;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/module-and-plugin")
|
||||
public class ModuleAndPluginNativeIT {
|
||||
class ModuleAndPluginNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/module-and-plugin")
|
||||
public class ModuleAndPluginTest extends ModuleAndPluginNativeIT {}
|
||||
class ModuleAndPluginTest extends ModuleAndPluginNativeIT {}
|
||||
|
@@ -29,7 +29,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import org.mvndaemon.mvnd.junit.TestParameters;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/multi-lookup")
|
||||
public class MultiLookupTest {
|
||||
class MultiLookupTest {
|
||||
|
||||
@Inject
|
||||
ClientFactory clientFactory;
|
||||
|
@@ -40,7 +40,7 @@ import org.mvndaemon.mvnd.common.Message.StringMessage;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/multi-module")
|
||||
public class MultiModuleTest {
|
||||
class MultiModuleTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -37,7 +37,7 @@ import org.mvndaemon.mvnd.junit.TestParameters;
|
||||
import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/new-managed-module")
|
||||
public class NewManagedModuleNativeIT {
|
||||
class NewManagedModuleNativeIT {
|
||||
|
||||
@Inject
|
||||
TestParameters parameters;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/new-managed-module")
|
||||
public class NewManagedModuleTest extends NewManagedModuleNativeIT {}
|
||||
class NewManagedModuleTest extends NewManagedModuleNativeIT {}
|
||||
|
@@ -32,7 +32,7 @@ import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
import org.mvndaemon.mvnd.junit.TestUtils;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/parent-with-property")
|
||||
public class ParentWithPropertyTest {
|
||||
class ParentWithPropertyTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -33,7 +33,7 @@ import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/raw-streams")
|
||||
public class RawStreamsTest {
|
||||
class RawStreamsTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/resident-extensions")
|
||||
public class ResidentExtensionsTest {
|
||||
class ResidentExtensionsTest {
|
||||
|
||||
@Inject
|
||||
ClientFactory clientFactory;
|
||||
|
@@ -37,7 +37,7 @@ import org.mvndaemon.mvnd.common.Message;
|
||||
import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/single-module")
|
||||
public class SingleModuleNativeIT {
|
||||
class SingleModuleNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -29,12 +29,12 @@ import org.mvndaemon.mvnd.common.Message;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/single-module")
|
||||
public class SingleModuleTest extends SingleModuleNativeIT {
|
||||
class SingleModuleTest extends SingleModuleNativeIT {
|
||||
|
||||
protected void assertJVM(TestClientOutput o, Properties props) {
|
||||
final List<String> filteredMessages = o.getMessages().stream()
|
||||
.filter(m -> m.getType() == Message.MOJO_STARTED)
|
||||
.map(m -> m.toString())
|
||||
.map(Object::toString)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Assertions.assertThat(filteredMessages)
|
||||
|
@@ -40,7 +40,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
* in the test iself.
|
||||
*/
|
||||
@MvndNativeTest(projectDir = "src/test/projects/specific-file")
|
||||
public class SpecificFileNativeIT {
|
||||
class SpecificFileNativeIT {
|
||||
|
||||
@Inject
|
||||
ClientFactory clientFactory;
|
||||
|
@@ -32,7 +32,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/single-module")
|
||||
public class StopStatusTest {
|
||||
class StopStatusTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -29,7 +29,7 @@ import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||
import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/multi-module")
|
||||
public class ThreadOptionNativeIT {
|
||||
class ThreadOptionNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/multi-module")
|
||||
public class ThreadOptionTest extends ThreadOptionNativeIT {}
|
||||
class ThreadOptionTest extends ThreadOptionNativeIT {}
|
||||
|
@@ -29,7 +29,7 @@ import org.mvndaemon.mvnd.client.DaemonParameters;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/type-description")
|
||||
public class TypeDescriptionTest {
|
||||
class TypeDescriptionTest {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -36,7 +36,7 @@ import org.mvndaemon.mvnd.junit.TestRegistry;
|
||||
import org.mvndaemon.mvnd.junit.TestUtils;
|
||||
|
||||
@MvndNativeTest(projectDir = "src/test/projects/upgrades-in-bom")
|
||||
public class UpgradesInBomNativeIT {
|
||||
class UpgradesInBomNativeIT {
|
||||
|
||||
@Inject
|
||||
TestParameters parameters;
|
||||
|
@@ -21,4 +21,4 @@ package org.mvndaemon.mvnd.it;
|
||||
import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
|
||||
@MvndTest(projectDir = "src/test/projects/upgrades-in-bom")
|
||||
public class UpgradesInBomTest extends UpgradesInBomNativeIT {}
|
||||
class UpgradesInBomTest extends UpgradesInBomNativeIT {}
|
||||
|
@@ -30,7 +30,7 @@ import org.mvndaemon.mvnd.junit.MvndNativeTest;
|
||||
import org.mvndaemon.mvnd.junit.MvndTestExtension;
|
||||
|
||||
@MvndNativeTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
|
||||
public class VersionNativeIT {
|
||||
class VersionNativeIT {
|
||||
|
||||
@Inject
|
||||
Client client;
|
||||
|
@@ -22,7 +22,7 @@ import org.mvndaemon.mvnd.junit.MvndTest;
|
||||
import org.mvndaemon.mvnd.junit.MvndTestExtension;
|
||||
|
||||
@MvndTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
|
||||
public class VersionTest extends VersionNativeIT {
|
||||
class VersionTest extends VersionNativeIT {
|
||||
protected boolean isNative() {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user