Skip to content

Commit 644f996

Browse files
committed
Skip failing mule46 tests
1 parent 852200d commit 644f996

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

dd-java-agent/instrumentation/mule-4/build.gradle

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ dependencies {
146146
testImplementation project(':dd-java-agent:instrumentation:caffeine')
147147
testImplementation project(':dd-java-agent:instrumentation:quartz-2')
148148

149-
150149
testImplementation group: 'org.mule.runtime', name: 'mule-module-launcher', version: muleVersion
151150
testImplementation group: 'org.mule.runtime', name: 'mule-core', version: muleVersion
152151
//testImplementation group: 'org.mule.runtime', name: 'mule-module-extensions-spring-support', version: muleVersion
@@ -175,9 +174,8 @@ dependencies {
175174
latestDepForkedTestImplementation group: 'org.mule.runtime', name: 'mule-module-service', version: '4.8.+'
176175
latestDepForkedTestImplementation group: 'org.mule.runtime', name: 'mule-module-javaee', version: '4.8.+'
177176

178-
179-
//TODO: 4.9.0 is not yet out but it looks like using 4.+ instead of above 4.8.+ brings in 4.9.0-SNAPSHOT artifacts.
180177
/*
178+
TODO: 4.9.0 is not yet out but it looks like using 4.+ instead of above 4.8.+ brings in 4.9.0-SNAPSHOT artifacts.
181179
When testing with them, the mule container does not bootstrap because of:
182180
None of [protected void java.lang.Object.finalize() throws java.lang.Throwable, public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException, public final void java.lang.Object.wait() throws java.lang.InterruptedException, public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException, public boolean java.lang.Object.equals(java.lang.Object), public java.lang.String java.lang.Object.toString(), public native int java.lang.Object.hashCode(), public final native java.lang.Class java.lang.Object.getClass(), protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException, public final native void java.lang.Object.notify(), public final native void java.lang.Object.notifyAll(), public abstract java.lang.Object java.lang.reflect.InvocationHandler.invoke(java.lang.Object,java.lang.reflect.Method,java.lang.Object[]) throws java.lang.Throwable] allows for delegation from public boolean org.springframework.beans.factory.SmartFactoryBean.isEagerInit()
183181
*/
@@ -194,6 +192,17 @@ dependencies {
194192
latestMuleServices group: 'org.mule.services', name: 'mule-service-weave', version: '2.8.1', classifier: 'mule-service'
195193
}
196194

195+
/*
196+
TODO: Delete this once we have a fix for the Mule 4.6 tests
197+
Similar to above, the mule container does not bootstrap because of:
198+
None of [protected void java.lang.Object.finalize() throws java.lang.Throwable, public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException, public final void java.lang.Object.wait() throws java.lang.InterruptedException, public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException, public boolean java.lang.Object.equals(java.lang.Object), public java.lang.String java.lang.Object.toString(), public native int java.lang.Object.hashCode(), public final native java.lang.Class java.lang.Object.getClass(), protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException, public final native void java.lang.Object.notify(), public final native void java.lang.Object.notifyAll(), public abstract java.lang.Object java.lang.reflect.InvocationHandler.invoke(java.lang.Object,java.lang.reflect.Method,java.lang.Object[]) throws java.lang.Throwable] allows for delegation from public boolean org.springframework.beans.factory.SmartFactoryBean.isEagerInit()
199+
*/
200+
tasks.withType(Test) {
201+
if (it.name.contains('mule46ForkedTest')) {
202+
it.enabled = false
203+
}
204+
}
205+
197206
def copyMuleArtifacts(String configName, String muleBaseDir, Sync sync) {
198207
configurations[configName].resolvedConfiguration.resolvedArtifacts.findAll {
199208
it.classifier == "mule-service"
@@ -230,7 +239,6 @@ tasks.register('mvnPackage', Exec) {
230239
inputs.file("$appDir/mule-artifact.json")
231240
}
232241

233-
234242
// generate a properties file so the test knows where to run mule, and what jar to deploy
235243
tasks.register('generateAppResources') {
236244
createAppResourceTask(it, "test")

0 commit comments

Comments
 (0)