<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Oh dear, JUnit where art thou ?<br>
      <br>
      Tristan<br>
      <br>
      On 09/05/2012 02:46 PM, Vladimir Blagojevic wrote:<br>
    </div>
    <blockquote cite="mid:5047499F.5070003@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Dan, look at the comments for
        getClasses in testng, it was introduced for YAML, getXMLClasses
        is the original method. I could not get cdi testsuite working
        with any other version of testng because of weld problems. It
        seems weld likes 5.14.6 and nothing else. For example, I used
        testng version 5.14.11 and no listener and the testsuite failed
        due to some weld setup, so i concluded this path was the
        simplest <a moz-do-not-send="true"
          class="moz-txt-link-freetext"
          href="https://github.com/infinispan/infinispan/pull/1287">https://github.com/infinispan/infinispan/pull/1287</a><br>
        <br>
        Pete made some comments in cdi pom.xml that 5.14.6 is to be used
        explicitly.<br>
        <br>
        Regards,<br>
        Vladimir <br>
        <br>
        On 12-09-05 2:36 PM, Dan Berindei wrote:<br>
      </div>
      <blockquote
cite="mid:CA+nfvwTxn18_GGYaZZX-Tsf-o9BfwhcyZdyVp+q+YD2p=Be0jQ@mail.gmail.com"
        type="cite">Replying to myself, after looking in the history of
        cdi/extension/pom.xml, it seems it was upgraded to 5.14.6 back
        when the core was still on 5.11. Actually Kevin upgraded
        everything to 5.14.6 and then switched everything but cdi back
        to 5.11 for some unknown reason (<a moz-do-not-send="true"
          href="https://issues.jboss.org/browse/ISPN-1250">https://issues.jboss.org/browse/ISPN-1250</a>
        doesn't provide any explanation).<br>
        <br>
        I think the best approach here would be to remove the special
        case for cdi and use the parent testng version.<br>
        <br>
        <br>
        <div class="gmail_quote">On Wed, Sep 5, 2012 at 3:27 PM, Dan
          Berindei <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:dan.berindei@gmail.com" target="_blank">dan.berindei@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Vladimir,
            is there any reason why the CDI test suite doesn't use the
            same TestNG version as the core test suite?<br>
            <br>
            BTW, the latest TestNG version is 6.7, we might want to
            consider an upgrade for all the projects.
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                <br>
                <div class="gmail_quote">On Wed, Sep 5, 2012 at 2:29 PM,
                  Vladimir Blagojevic <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:vblagoje@redhat.com" target="_blank">vblagoje@redhat.com</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Confirmed. We can fix this issue by using
                    XmlTest#getXmlClasses instead<br>
                    of XmlTest#getClasses in UnitTestTestNGListener.
                    I'll issue a pull for<br>
                    this simple fix.<br>
                    <div>
                      <div>On 12-09-05 12:24 PM, Vladimir Blagojevic
                        wrote:<br>
                        &gt; Ok looks like someone updated
                        UnitTestTestNGListener.java from core<br>
                        &gt; project to use 5.14.10 testng version where
                        ITestContext testng class<br>
                        &gt; has method getClasses but in 5.14.6 that
                        method does not exist and it<br>
                        &gt; seems like we need to use 5.14.6 in cdi
                        project. Investigating....<br>
                        &gt;<br>
                        &gt;<br>
                        &gt; On 12-09-05 11:50 AM, Vladimir Blagojevic
                        wrote:<br>
                        &gt;&gt; Guys,<br>
                        &gt;&gt;<br>
                        &gt;&gt; As I prepared pull request for
                        ISPN-2181 and I rebased to current<br>
                        &gt;&gt; master, my cdi test suite started to
                        fail with:<br>
                        &gt;&gt;<br>
                        &gt;&gt;
                        ------------------------------------------------------<br>
                        &gt;&gt; &nbsp; &nbsp; T E S T S<br>
                        &gt;&gt;
                        -------------------------------------------------------<br>
                        &gt;&gt; Running TestSuite<br>
                        &gt;&gt; Configuring TestNG with:<br>
                        &gt;&gt;
                        org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@324a4e31<br>
                        &gt;&gt; log4j:WARN No appenders could be found
                        for logger (org.jboss.logging).<br>
                        &gt;&gt; log4j:WARN Please initialize the log4j
                        system properly.<br>
                        &gt;&gt; log4j:WARN See <a
                          moz-do-not-send="true"
                          href="http://logging.apache.org/log4j/1.2/faq.html#noconfig"
                          target="_blank">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a>
                        for<br>
                        &gt;&gt; more info.<br>
                        &gt;&gt; [INFO]<br>
                        &gt;&gt;
                        ------------------------------------------------------------------------<br>
                        &gt;&gt; [INFO] BUILD FAILURE<br>
                        &gt;&gt; [INFO]<br>
                        &gt;&gt;
                        ------------------------------------------------------------------------<br>
                        &gt;&gt; [INFO] Total time: 33.484s<br>
                        &gt;&gt; [INFO] Finished at: Wed Sep 05 11:47:54
                        CEST 2012<br>
                        &gt;&gt; [INFO] Final Memory: 18M/265M<br>
                        &gt;&gt; [INFO]<br>
                        &gt;&gt;
                        ------------------------------------------------------------------------<br>
                        &gt;&gt; [ERROR] Failed to execute goal<br>
                        &gt;&gt;
                        org.apache.maven.plugins:maven-surefire-plugin:2.12.2:test<br>
                        &gt;&gt; (default-test) on project
                        infinispan-cdi: Execution default-test of goal<br>
                        &gt;&gt;
                        org.apache.maven.plugins:maven-surefire-plugin:2.12.2:test
                        failed:<br>
                        &gt;&gt;
                        java.lang.reflect.InvocationTargetException;
                        nested exception is<br>
                        &gt;&gt;
                        java.lang.reflect.InvocationTargetException:
                        null:<br>
                        &gt;&gt;
                        org.testng.xml.XmlTest.getClasses()Ljava/util/List;
                        -&gt; [Help 1]<br>
                        &gt;&gt;<br>
                        &gt;&gt;<br>
                        &gt;&gt; I thought it must have been something
                        with my branch but then I tried<br>
                        &gt;&gt; master and it still fails. Any ideas
                        how to fix this one?<br>
                        &gt;&gt;<br>
                        &gt;&gt; Regards,<br>
                        &gt;&gt; Vladimir<br>
                        &gt;&gt;
                        _______________________________________________<br>
                        &gt;&gt; infinispan-dev mailing list<br>
                        &gt;&gt; <a moz-do-not-send="true"
                          href="mailto:infinispan-dev@lists.jboss.org"
                          target="_blank">infinispan-dev@lists.jboss.org</a><br>
                        &gt;&gt; <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/infinispan-dev"
                          target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
                        &gt;
                        _______________________________________________<br>
                        &gt; infinispan-dev mailing list<br>
                        &gt; <a moz-do-not-send="true"
                          href="mailto:infinispan-dev@lists.jboss.org"
                          target="_blank">infinispan-dev@lists.jboss.org</a><br>
                        &gt; <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/infinispan-dev"
                          target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
                        <br>
                        _______________________________________________<br>
                        infinispan-dev mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:infinispan-dev@lists.jboss.org"
                          target="_blank">infinispan-dev@lists.jboss.org</a><br>
                        <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/infinispan-dev"
                          target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
                      </div>
                    </div>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
infinispan-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
infinispan-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>