<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Test Failure in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/test-failure/m-p/313084#M85</link>
    <description>&lt;P&gt;Hi I have written test classes&lt;/P&gt;
&lt;P&gt;@RunWith(FeaturesRunner.class)
@Features({PlatformFeature.class,AutomationFeature.class})
@Deploy("org.nuxeo.ecm.core.schema")
@Deploy("org.nuxeo.ecm.actions")
@Deploy("org.nuxeo.ecm.automation.core")
@Deploy("org.nuxeo.ecm.automation.features")
@Deploy("org.nuxeo.ecm.automation.server")
@Deploy("org.nuxeo.ecm.automation.io")
public class TestMetadata{
//code is available
}&lt;/P&gt;
&lt;P&gt;But while running i am getting
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;at org.nuxeo.runtime.test.runner.FeaturesRunner.computeTestMethods(FeaturesRunner.java:144)
at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:190)
at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:128)
at org.junit.runners.ParentRunner.validate(ParentRunner.java:416)
at org.junit.runners.ParentRunner.&amp;lt;init&amp;gt;(ParentRunner.java:84)
at org.junit.runners.BlockJUnit4ClassRunner.&amp;lt;init&amp;gt;(BlockJUnit4ClassRunner.java:65)
at org.nuxeo.runtime.test.runner.FeaturesRunner.&amp;lt;init&amp;gt;(FeaturesRunner.java:73)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
... 21 more&lt;/P&gt;
&lt;P&gt;I am already having asm jar in external librariries . i am running project in intelliJ&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 05:03:03 GMT</pubDate>
    <dc:creator>Rahul_Mittal</dc:creator>
    <dc:date>2020-02-25T05:03:03Z</dc:date>
    <item>
      <title>Test Failure</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/test-failure/m-p/313084#M85</link>
      <description>&lt;P&gt;Hi I have written test classes&lt;/P&gt;
&lt;P&gt;@RunWith(FeaturesRunner.class)
@Features({PlatformFeature.class,AutomationFeature.class})
@Deploy("org.nuxeo.ecm.core.schema")
@Deploy("org.nuxeo.ecm.actions")
@Deploy("org.nuxeo.ecm.automation.core")
@Deploy("org.nuxeo.ecm.automation.features")
@Deploy("org.nuxeo.ecm.automation.server")
@Deploy("org.nuxeo.ecm.automation.io")
public class TestMetadata{
//code is available
}&lt;/P&gt;
&lt;P&gt;But while running i am getting
java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;at org.nuxeo.runtime.test.runner.FeaturesRunner.computeTestMethods(FeaturesRunner.java:144)
at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:190)
at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:128)
at org.junit.runners.ParentRunner.validate(ParentRunner.java:416)
at org.junit.runners.ParentRunner.&amp;lt;init&amp;gt;(ParentRunner.java:84)
at org.junit.runners.BlockJUnit4ClassRunner.&amp;lt;init&amp;gt;(BlockJUnit4ClassRunner.java:65)
at org.nuxeo.runtime.test.runner.FeaturesRunner.&amp;lt;init&amp;gt;(FeaturesRunner.java:73)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
... 21 more&lt;/P&gt;
&lt;P&gt;I am already having asm jar in external librariries . i am running project in intelliJ&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 05:03:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/test-failure/m-p/313084#M85</guid>
      <dc:creator>Rahul_Mittal</dc:creator>
      <dc:date>2020-02-25T05:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Test Failure</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/test-failure/m-p/313085#M86</link>
      <description>&lt;P&gt;The proper asm version should automatically be added via Maven. The problem COULD be you somehow referenced a different one than expected.&lt;/P&gt;
&lt;P&gt;What happens when you run your tests from the command line? Try &lt;CODE&gt;mvn clean install &lt;/CODE&gt; on the root folder of your project. If you don't have the problem there, it must be your IDE's  project configuration. Just make sure you don't have anything that would bring its own asm in your pom.xml file - directly or as a transitive dependency. If you have some custom dependencies, just remove them to figure out whether or not your test goes further.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 12:42:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/test-failure/m-p/313085#M86</guid>
      <dc:creator>michal_m</dc:creator>
      <dc:date>2020-02-27T12:42:27Z</dc:date>
    </item>
  </channel>
</rss>

