Awaitility ClassNotFoundExeption

"rsobies" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
this is my test unit


Code:

import java.util.concurrent.TimeUnit;
import junit.framework.Test;
import org.awaitility.Awaitility;
import org.netbeans.junit.NbModuleSuite;
import org.netbeans.junit.NbTestCase;

public class ApplicationTest extends NbTestCase {

    public static Test suite() {
        
        Awaitility.setDefaultTimeout(0, TimeUnit.DAYS);
        
        return NbModuleSuite.createConfiguration(ApplicationTest.class).
                gui(false).
                //failOnMessage(Level.WARNING). // works at least in RELEASE71
                //failOnException(Level.INFO).
                enableClasspathModules(false). 
                clusters(".*").
                suite(); // RELEASE71+, else use NbModuleSuite.create(NbModuleSuite.createConfiguration(...))
        
        
    }

    public ApplicationTest(String n) {
        super(n);
    }

    public void testApplication() {
        Awaitility.setDefaultTimeout(0, TimeUnit.DAYS);
       
    }

}



and output from running test. notice that public static Test suite() didn't fail despite Awaitility is used.


Code:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.332 sec <<< FAILURE! - in com.radmor.wsd.ApplicationTest
testApplication(com.radmor.wsd.ApplicationTest)  Time elapsed: 0.01 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/awaitility/Awaitility
	at com.radmor.wsd.ApplicationTest.testApplication(ApplicationTest.java:50)
Caused by: java.lang.ClassNotFoundException: org.awaitility.Awaitility starting from SystemClassLoader[78 modules] with possible defining loaders null and declared parents [org.netbeans.MainImpl$BootClassLoader@2ef5e5e3, ModuleCL@71e1ee30[org.netbeans.api.annotations.common], ModuleCL@31739508[org.openide.awt], ModuleCL@2a7e3226[org.netbeans.api.progress], ModuleCL@7bfdbd20[org.netbeans.api.progress.nb], ModuleCL@41b0f4b[org.openide.dialogs], ModuleCL@19503cca[org.openide.nodes], ModuleCL@65ae547d[org.openide.windows], ModuleCL@666c96e7[org.netbeans.modules.editor.mimelookup], ModuleCL@53edf7db[org.openide.text], ...59 more]
	at com.radmor.wsd.ApplicationTest.testApplication(ApplicationTest.java:50)
Caused by: java.lang.ClassNotFoundException: org.awaitility.Awaitility
	at com.radmor.wsd.ApplicationTest.testApplication(ApplicationTest.java:50)




below are test dependencies




Attachments: 
http://forums.netbeans.org//files/depend_748.png
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.