Skip to content

Commit

Permalink
Removed superfluous public for tests (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
khmarbaise authored Oct 16, 2023
1 parent 09168b3 commit accb99e
Show file tree
Hide file tree
Showing 47 changed files with 48 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ public void assertContainsMatchingSubsequence(String... patterns) {
}

public List<String> messagesToString() {
return messages.stream().map(m -> m.toString()).collect(Collectors.toList());
return messages.stream().map(Object::toString).collect(Collectors.toList());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@Testcontainers(disabledWithoutDocker = true)
public class AlpineLinuxNativeIT {
class AlpineLinuxNativeIT {

private ImageFromDockerfile image;
private String mvndHome;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@Testcontainers(disabledWithoutDocker = true)
public class AlpineLinuxTest extends AlpineLinuxNativeIT {
class AlpineLinuxTest extends AlpineLinuxNativeIT {

@Override
protected boolean isNative() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/attached-artifact-resolution")
public class AttachedArtifactResolutionTest {
class AttachedArtifactResolutionTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

@MvndTest(projectDir = "src/test/projects/bootstrap-plugin")
@DisabledOnOs(OS.WINDOWS)
public class BootstrapPluginTest {
class BootstrapPluginTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.mvndaemon.mvnd.junit.MvndTestExtension;

@MvndNativeTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
public class CompletionNativeIT {
class CompletionNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
import org.mvndaemon.mvnd.junit.MvndTestExtension;

@MvndTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
public class CompletionTest extends CompletionNativeIT {}
class CompletionTest extends CompletionNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/concurrent-downloads")
public class ConcurrentDownloadsTest {
class ConcurrentDownloadsTest {

@Inject
ClientFactory clientFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

@MvndTest(projectDir = "src/test/projects/daemon-crash", keepAlive = "100ms", maxLostKeepAlive = "30")
@Timeout(60)
public class DaemonCrashTest {
class DaemonCrashTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import org.mvndaemon.mvnd.junit.TestUtils;

@MvndNativeTest(projectDir = "src/test/projects/delete-repo")
public class DeleteRepoNativeIT {
class DeleteRepoNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/delete-repo")
public class DeleteRepoTest extends DeleteRepoNativeIT {}
class DeleteRepoTest extends DeleteRepoNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/dup-ga")
public class DupGATest {
class DupGATest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/environment")
public class EnvironmentTest {
class EnvironmentTest {

@Inject
TestRegistry registry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/exec-output")
public class ExecOutputTest {
class ExecOutputTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.mvndaemon.mvnd.junit.MvndNativeTest;

@MvndNativeTest(projectDir = "src/test/projects/extension-with-api")
public class ExtensionWithApiNativeIT {
class ExtensionWithApiNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndNativeTest(projectDir = "src/test/projects/extensions")
public class ExtensionsNativeIT {
class ExtensionsNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/extensions")
public class ExtensionsTest extends ExtensionsNativeIT {}
class ExtensionsTest extends ExtensionsNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/forked")
public class ForkedTest {
class ForkedTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

@MvndTest(projectDir = "src/test/projects/single-module")
@Timeout(300)
public class InteractiveTest {
class InteractiveTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.mvndaemon.mvnd.junit.MvndNativeTest;

@MvndNativeTest(projectDir = "src/test/projects/invoker")
public class InvokerNativeIT {
class InvokerNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/invoker")
public class InvokerTest extends InvokerNativeIT {}
class InvokerTest extends InvokerNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/junit-platform")
public class JUnitPlatformTest {
class JUnitPlatformTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndNativeTest(projectDir = "src/test/projects/maven-conf")
public class MavenConfNativeIT {
class MavenConfNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/maven-conf")
public class MavenConfTest extends MavenConfNativeIT {}
class MavenConfTest extends MavenConfNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import static org.junit.jupiter.api.Assertions.assertTrue;

public class MaxHeapNativeIT {
class MaxHeapNativeIT {

static class BaseTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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 {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.mvndaemon.mvnd.junit.TestUtils;

@MvndNativeTest(projectDir = "src/test/projects/module-and-plugin")
public class ModuleAndPluginNativeIT {
class ModuleAndPluginNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/module-and-plugin")
public class ModuleAndPluginTest extends ModuleAndPluginNativeIT {}
class ModuleAndPluginTest extends ModuleAndPluginNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.mvndaemon.mvnd.junit.TestParameters;

@MvndTest(projectDir = "src/test/projects/multi-lookup")
public class MultiLookupTest {
class MultiLookupTest {

@Inject
ClientFactory clientFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/multi-module")
public class MultiModuleTest {
class MultiModuleTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.mvndaemon.mvnd.junit.TestRegistry;

@MvndNativeTest(projectDir = "src/test/projects/new-managed-module")
public class NewManagedModuleNativeIT {
class NewManagedModuleNativeIT {

@Inject
TestParameters parameters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/new-managed-module")
public class NewManagedModuleTest extends NewManagedModuleNativeIT {}
class NewManagedModuleTest extends NewManagedModuleNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.mvndaemon.mvnd.junit.TestUtils;

@MvndTest(projectDir = "src/test/projects/parent-with-property")
public class ParentWithPropertyTest {
class ParentWithPropertyTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/raw-streams")
public class RawStreamsTest {
class RawStreamsTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@MvndTest(projectDir = "src/test/projects/resident-extensions")
public class ResidentExtensionsTest {
class ResidentExtensionsTest {

@Inject
ClientFactory clientFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import org.mvndaemon.mvnd.junit.MvndNativeTest;

@MvndNativeTest(projectDir = "src/test/projects/single-module")
public class SingleModuleNativeIT {
class SingleModuleNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* in the test iself.
*/
@MvndNativeTest(projectDir = "src/test/projects/specific-file")
public class SpecificFileNativeIT {
class SpecificFileNativeIT {

@Inject
ClientFactory clientFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.mvndaemon.mvnd.junit.TestRegistry;

@MvndTest(projectDir = "src/test/projects/single-module")
public class StopStatusTest {
class StopStatusTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.mvndaemon.mvnd.junit.MvndNativeTest;

@MvndNativeTest(projectDir = "src/test/projects/multi-module")
public class ThreadOptionNativeIT {
class ThreadOptionNativeIT {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/multi-module")
public class ThreadOptionTest extends ThreadOptionNativeIT {}
class ThreadOptionTest extends ThreadOptionNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/type-description")
public class TypeDescriptionTest {
class TypeDescriptionTest {

@Inject
Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.mvndaemon.mvnd.junit.TestUtils;

@MvndNativeTest(projectDir = "src/test/projects/upgrades-in-bom")
public class UpgradesInBomNativeIT {
class UpgradesInBomNativeIT {

@Inject
TestParameters parameters;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import org.mvndaemon.mvnd.junit.MvndTest;

@MvndTest(projectDir = "src/test/projects/upgrades-in-bom")
public class UpgradesInBomTest extends UpgradesInBomNativeIT {}
class UpgradesInBomTest extends UpgradesInBomNativeIT {}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.mvndaemon.mvnd.junit.MvndTestExtension;

@MvndNativeTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
public class VersionNativeIT {
class VersionNativeIT {

@Inject
Client client;
Expand Down
Loading

0 comments on commit accb99e

Please sign in to comment.