[ 
https://issues.apache.org/jira/browse/ARTEMIS-5808?focusedWorklogId=995610&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-995610
 ]

ASF GitHub Bot logged work on ARTEMIS-5808:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Dec/25 18:11
            Start Date: 10/Dec/25 18:11
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on code in PR #6120:
URL: https://github.com/apache/artemis/pull/6120#discussion_r2607717062


##########
tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/base/VersionedBase.java:
##########
@@ -31,6 +31,21 @@ public abstract class VersionedBase extends ClasspathBase {
    protected final ClassLoader senderClassloader;
    protected final ClassLoader receiverClassloader;
 
+   // for tests that don't use a server classLoader
+   public VersionedBase(String sender, String receiver) throws Exception {
+      this.sender = sender;
+      this.receiver = receiver;
+      this.senderClassloader = getClasspath(sender);
+      this.receiverClassloader = getClasspath(receiver);
+      clearGroovy(senderClassloader);
+      clearGroovy(receiverClassloader);
+
+      // on the case of server not being used, we will set it as the same as 
sender
+      // as some scripts will need it set to verify versioning
+      this.server = sender;
+      this.serverClassloader = senderClassloader;

Review Comment:
   there are some checks if it should start HORNETQ or ARTEMIS...
   
   
   I'm removing that check and sending a parameter...





Issue Time Tracking
-------------------

    Worklog Id:     (was: 995610)
    Time Spent: 0.5h  (was: 20m)

> CompatiblityTests: Make cases where serverClassLoader==null clearer
> -------------------------------------------------------------------
>
>                 Key: ARTEMIS-5808
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5808
>             Project: Artemis
>          Issue Type: Test
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.45.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Some tests are not using the server's classLoader.. just a classLoader to 
> produce data, and another to receive data.
> It would be clearer if we added a new constructor so it's clear the intention 
> in the tests.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to