Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
bc0d826
Update actions/checkout action to v7
xdev-renovate Jun 19, 2026
8cc6585
Merge pull request #462 from xdev-software/master
AB-xdev Jun 25, 2026
654614e
Update dependency org.junit.jupiter:junit-jupiter to v6.1.1
xdev-renovate Jun 29, 2026
0faf09a
Update dependency com.puppycrawl.tools:checkstyle to v13.7.0
xdev-renovate Jun 29, 2026
bbc7ec4
Update dependency com.puppycrawl.tools:checkstyle to v13.7.0
xdev-renovate Jun 29, 2026
bdc3e2b
Update net.sourceforge.pmd to v7.26.0
xdev-renovate Jun 30, 2026
bf72b0d
Update net.sourceforge.pmd to v7.26.0
xdev-renovate Jun 30, 2026
793d311
Enable new PMD 7.26 rule
AB-xdev Jul 1, 2026
0fb2aeb
CheckStyle-IDEA: Always use lastest (bundled) version
AB-xdev Jul 1, 2026
ce4df2b
Merge pull request #286 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Jul 1, 2026
1d0926f
Merge pull request #285 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jul 1, 2026
588dbec
Merge branch 'master' into update-from-template-github_com_xdev-softw…
xdev-gh-bot Jul 1, 2026
0af1931
Merge branch 'master' into update-from-template-github_com_xdev-softw…
xdev-gh-bot Jul 1, 2026
41204dc
Update dependency io.netty:netty-bom to v4.2.16.Final
xdev-renovate Jul 7, 2026
66cc5dd
Merge pull request #466 from xdev-software/renovate/net.sourceforge.pmd
AB-xdev Jul 8, 2026
d5536dd
Merge pull request #465 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jul 8, 2026
b1a5e7b
Merge pull request #464 from xdev-software/renovate/org.junit.jupiter…
AB-xdev Jul 8, 2026
0194def
Merge pull request #469 from xdev-software/renovate/io.netty-netty-bo…
AB-xdev Jul 8, 2026
c71cee8
Fix PMD
AB-xdev Jul 8, 2026
11402a9
Merge branch 'develop' of https://github.com/xdev-software/mockserver…
AB-xdev Jul 8, 2026
05dad41
Merge remote-tracking branch 'origin/update-from-template-github_com_…
AB-xdev Jul 8, 2026
b31eb4f
Update lycheeverse/lychee-action digest to e747777
xdev-renovate Jul 10, 2026
6593c52
Merge pull request #14 from xdev-software/renovate/actions-checkout-7.x
AB-xdev Jul 10, 2026
4bf8317
Merge pull request #15 from xdev-software/renovate/lycheeverse-lychee…
AB-xdev Jul 10, 2026
a872fd9
Merge branch 'master' into update-from-template-github_com_xdev-softw…
xdev-gh-bot Jul 10, 2026
4b60347
Merge branch 'master' into update-from-template-github_com_xdev-softw…
xdev-gh-bot Jul 10, 2026
01814ff
Merge branch 'develop' into update-from-template-github_com_xdev-soft…
xdev-gh-bot Jul 10, 2026
ce77aa9
Update dependency com.puppycrawl.tools:checkstyle to v13.8.0
xdev-renovate Jul 12, 2026
d5d7f92
Update dependency com.puppycrawl.tools:checkstyle to v13.8.0
xdev-renovate Jul 12, 2026
cf3dbe3
Merge pull request #290 from xdev-software/renovate/com.puppycrawl.to…
AB-xdev Jul 13, 2026
ebc591b
Merge branch 'develop' into update-from-template-github_com_xdev-soft…
xdev-gh-bot Jul 13, 2026
4882010
Update dependency org.junit.jupiter:junit-jupiter to v6.1.2
xdev-renovate Jul 14, 2026
9e4924b
Update dependency tools.jackson.core:jackson-databind to v3.2.1
xdev-renovate Jul 14, 2026
0ac858f
Update dependency software.xdev:testcontainers-advanced-imagebuilder …
xdev-renovate Jul 14, 2026
650f383
Testcontainers: Extract wait strategy constants
AB-xdev Jul 14, 2026
9fccddb
Merge remote-tracking branch 'origin/renovate/org.junit.jupiter-junit…
AB-xdev Jul 14, 2026
0501d8b
Merge remote-tracking branch 'origin/renovate/com.puppycrawl.tools-ch…
AB-xdev Jul 14, 2026
117a207
Merge remote-tracking branch 'origin/renovate/tools.jackson.core-jack…
AB-xdev Jul 14, 2026
db463a7
Merge remote-tracking branch 'origin/renovate/software.xdev-testconta…
AB-xdev Jul 14, 2026
bd03e97
Update to latest image builder API
AB-xdev Jul 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/pmd/java/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
</properties>
</rule>

<rule ref="category/java/errorprone.xml/AssertEqualsArgumentOrder"/>
<rule ref="category/java/errorprone.xml/AssignmentToNonFinalStatic"/>
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/>
<rule ref="category/java/errorprone.xml/AvoidMultipleUnaryOperators"/>
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/broken-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2
with:
args: "--verbose --no-progress './**/*.md'"
fail: false # Don't fail on broken links, create an issue instead
Expand Down
2 changes: 1 addition & 1 deletion .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.52.0
* Testcontainers: Extract wait strategy constants
* Updated dependencies

# 2.51.0
* Updated dependencies
* Code cleanup and improved error reporting
Expand Down
6 changes: 3 additions & 3 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>13.6.0</version>
<version>13.8.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -261,12 +261,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
10 changes: 5 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.2.15.Final</version>
<version>4.2.16.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -65,7 +65,7 @@
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -271,7 +271,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>13.6.0</version>
<version>13.8.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -309,12 +309,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>13.6.0</version>
<version>13.8.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -107,12 +107,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
8 changes: 4 additions & 4 deletions server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.2.15.Final</version>
<version>4.2.16.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -290,7 +290,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>13.6.0</version>
<version>13.8.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -328,12 +328,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ private boolean matchesByNottedStrings(
// mutual notted control plane match
return this.matchesByStrings(context, matcher, matched);
}
else
{
// data plane & control plan match
return (matcher.isNot() || matched.isNot()) ^ this.matchesByStrings(context, matcher, matched);
}

// data plane & control plan match
return (matcher.isNot() || matched.isNot()) ^ this.matchesByStrings(context, matcher, matched);
}

@SuppressWarnings({"PMD.CognitiveComplexity"})
Expand All @@ -93,56 +91,54 @@ private boolean matchesByStrings(
{
return true;
}
else

if(matched != null)
{
if(matched != null)
final String matchedValue = matched.getValue();
if(matchedValue != null)
{
final String matchedValue = matched.getValue();
if(matchedValue != null)
// match as exact string
if(matchedValue.equals(matcherValue) || matchedValue.equalsIgnoreCase(matcherValue))
{
// match as exact string
if(matchedValue.equals(matcherValue) || matchedValue.equalsIgnoreCase(matcherValue))
return true;
}

// match as regex - matcher -> matched (data plane or control plane)
try
{
if(matcher.matches(matchedValue))
{
return true;
}

// match as regex - matcher -> matched (data plane or control plane)
try
}
catch(final PatternSyntaxException pse)
{
if(LOG.isDebugEnabled())
{
if(matcher.matches(matchedValue))
{
return true;
}
LOG.debug("Error while matching regex [{}] for string [{}]", matcher, matched, pse);
}
catch(final PatternSyntaxException pse)
}
// match as regex - matched -> matcher (control plane only)
try
{
if(this.controlPlaneMatcher && matched.matches(matcherValue))
{
if(LOG.isDebugEnabled())
{
LOG.debug("Error while matching regex [{}] for string [{}]", matcher, matched, pse);
}
return true;
}
// match as regex - matched -> matcher (control plane only)
try
else if(LOG.isDebugEnabled() && matched.matches(matcherValue))
{
if(this.controlPlaneMatcher && matched.matches(matcherValue))
{
return true;
}
else if(LOG.isDebugEnabled() && matched.matches(matcherValue))
{
LOG.debug(
"Matcher {} would match {} if matcher was used for control plane",
matcher,
matched);
}
LOG.debug(
"Matcher {} would match {} if matcher was used for control plane",
matcher,
matched);
}
catch(final PatternSyntaxException pse)
}
catch(final PatternSyntaxException pse)
{
if(this.controlPlaneMatcher
&& LOG.isDebugEnabled())
{
if(this.controlPlaneMatcher
&& LOG.isDebugEnabled())
{
LOG.debug("Error while matching regex [{}] for string [{}]", matcher, matched, pse);
}
LOG.debug("Error while matching regex [{}] for string [{}]", matcher, matched, pse);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public HttpActionHandler(
"checkstyle:MethodLength",
"PMD.CognitiveComplexity",
"PMD.CyclomaticComplexity",
"PMD.NPathComplexity"
})
"PMD.NPathComplexity",
"PMD.AvoidDeeplyNestedIfStmts"})
public void processAction(
final HttpRequest request,
final ResponseWriter responseWriter,
Expand Down Expand Up @@ -138,7 +138,6 @@ public void processAction(

if(expectation != null && expectation.getAction() != null)
{

final Action action = expectation.getAction();
switch(action.getType())
{
Expand Down Expand Up @@ -292,7 +291,6 @@ public void processAction(
else if(CORSHeaders.isPreflightRequest(this.configuration, request) && (this.configuration.enableCORSForAPI()
|| this.configuration.enableCORSForAllResponses()))
{

responseWriter.writeResponse(request, OK);
if(LOG.isInfoEnabled())
{
Expand All @@ -301,13 +299,11 @@ else if(CORSHeaders.isPreflightRequest(this.configuration, request) && (this.con
}
else if(proxyingRequest || potentiallyHttpProxy)
{

if(request.getHeaders() != null && request.getHeaders()
.containsEntry(
this.httpStateHandler.getUniqueLoopPreventionHeaderName(),
this.httpStateHandler.getUniqueLoopPreventionHeaderValue()))
{

if(LOG.isTraceEnabled())
{
LOG.trace(
Expand Down Expand Up @@ -347,7 +343,6 @@ else if(proxyingRequest || potentiallyHttpProxy)
}
else
{

final InetSocketAddress remoteAddress = getRemoteAddress(ctx);
final HttpRequest clonedRequest = this.hopByHopHeaderFilter.onRequest(request)
.withHeader(
Expand Down Expand Up @@ -451,7 +446,6 @@ else if(!connectionClosedException(ex))
}
else
{

this.returnNotFound(responseWriter, request, null);
}
}
Expand Down
12 changes: 6 additions & 6 deletions testcontainers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>6.1.0</version>
<version>6.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -96,7 +96,7 @@
<dependency>
<groupId>software.xdev</groupId>
<artifactId>testcontainers-advanced-imagebuilder</artifactId>
<version>2.5.0</version>
<version>4.1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -282,7 +282,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>13.6.0</version>
<version>13.8.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down Expand Up @@ -320,12 +320,12 @@
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-core</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-java</artifactId>
<version>7.25.0</version>
<version>7.26.0</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,21 @@ public class MockServerContainer extends GenericContainer<MockServerContainer>
public static final String DEFAULT_IMAGE = "xdevsoftware/mockserver";
public static final String DEFAULT_TAG = MockServerUtils.DEFAULT_VERSION;
public static final int PORT = 1080;
public static final String LOG_MSG_WAIT_STRATEGY_REGEX = ".*started on port: " + PORT + ".*";

public MockServerContainer(final RemoteDockerImage image)
{
super(image);

this.waitingFor(Wait.forLogMessage(".*started on port: " + PORT + ".*", 1));
this.waitingFor(Wait.forLogMessage(LOG_MSG_WAIT_STRATEGY_REGEX, 1));
this.addExposedPort(PORT);
}

public MockServerContainer(final DockerImageName dockerImageName)
{
super(dockerImageName);

this.waitingFor(Wait.forLogMessage(".*started on port: " + PORT + ".*", 1));
this.waitingFor(Wait.forLogMessage(LOG_MSG_WAIT_STRATEGY_REGEX, 1));
this.addExposedPort(PORT);
}

Expand Down
Loading