webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

webMethods Ezine Testing Testing Easy as 123 with JUnit

  • 1.  webMethods Ezine Testing Testing Easy as 123 with JUnit

    Posted Mon February 03, 2003 12:58 PM

    Questions or comments about this webMethods Ezine article?

    Click here to read the original text.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: webMethods Ezine Testing Testing Easy as 123 with JUnit

    Posted Tue April 29, 2003 12:45 PM

    Hi ,

    You article is nice . But sorry to ask one basic question.In which JAR file the following Interface is available.
    Please let me know :

    com.wm.app.b2b.client.Context

    thanks and looking forward your reply.,

    regards
    Ramesh


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: webMethods Ezine Testing Testing Easy as 123 with JUnit

    Posted Tue June 14, 2011 05:32 PM

    I’ve created a java project for testing purpose but when I try to run the tests suite I get the following exception

    java.lang.NoClassDefFoundError: javax/mail/internet/ParseException
    at com.wm.util.Base64.encode(Base64.java:77)
    at com.wm.app.b2b.client.BaseContext.setAuthentication(BaseContext.java:598)
    at com.wm.app.b2b.client.Context.connect(Context.java:492)
    at TestClient.invoke(TestClient.java:63)
    at StringTest.testToUpper(StringTest.java:30)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    Caused by: java.lang.ClassNotFoundException: javax.mail.internet.ParseException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    … 24 more




    Do you have any idea about that ? I’m using the IS version 8.2, is your class tested against the new WM versions?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods