Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

junit · JUnit, the Java unit testing framework written by Kent Beck and Erich Gamma.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 31224
  • Category: Java
  • Founded: Nov 6, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 12777 - 12806 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#12777 From: "Ilja Preuss" <preuss@...>
Date: Tue Feb 1, 2005 8:37 am
Subject: RE: Htmlunit
ipreussde
Send Email Send Email
 
florin198028 wrote:
> I use eclipse and devellope a web application, and i want to test it.
> i hope you can help me. How to get started with my test?

Most importantly, decouple the business logic - and possibly even most of
the presentation logic - from the Servlet API. That way you can write most
of the tests without having to use any special tricks.

Hope this helps, Ilja

#12778 From: "marvintoll" <MarvinToll@...>
Date: Tue Feb 1, 2005 10:43 am
Subject: Re: Testing : Accessor Methods : Mutable Object
marvintoll
Send Email Send Email
 
Having posted this inquiry on a couple of forums, and having
received no indication the code already exists, I coded a reference
implementation for the concept at:

      http://gtcgroup.com/util/

_Marvin

>
>
>
> Out looking around ...
>
> I'm curious if anyone has "run into" a unit test utility method for
> verifying accessor methods on mutable objects.  A unit test might
look
> something like:
>
>     /**
>      * Verify accessor method(s) of mutable business object.
>      */
>     public void testMutableBusinessObject() {
>
>         ExampleBO exampleBO = new ExampleBO();
>
>         assertTrue(TestUtil.verifyAccessorMethodsForMutable
(exampleBO));
>     }
>
> ... and TestUtil.verifyAccessorMethodsForMutable() would use
reflection to
> "discover" all matching getters/setters and verify that setters
return the
> "same" object (or primitive value) as passed to the corresponding
setter.
> The class would instantiate objects (or assign primitive values)
for
> testing.
>
> It would also be nice to have an immutable version that verified
objects
> were "equal" but not the "same".
>
> _Marvin

#12779 From: "Jonathan Oddy" <j.oddy@...>
Date: Tue Feb 1, 2005 3:51 pm
Subject: RE: RE: Testing : Accessor Methods : Mutable Object
jonathanoddy
Send Email Send Email
 
I've a small class for doing something similar for my current (struts)
web project.  Got bitten enough times by JRun != Tomcat in how each
determines which accessors/mutators to use that it became a very useful
addition.



Jonathan



________________________________

From: J. B. Rainsberger [mailto:jbrains@...]
Sent: 01 February 2005 02:30
To: junit@yahoogroups.com
Subject: Re: [junit] RE: Testing : Accessor Methods : Mutable Object



Marvin D. Toll wrote:
>
>
>
> Out looking around ...
>
> I'm curious if anyone has "run into" a unit test utility method for
> verifying accessor methods on mutable objects.  A unit test might look
> something like:
>
>     /**
>      * Verify accessor method(s) of mutable business object.
>      */
>     public void testMutableBusinessObject() {
>
>         ExampleBO exampleBO = new ExampleBO();
>
>
assertTrue(TestUtil.verifyAccessorMethodsForMutable(exampleBO));
>     }
>
> ... and TestUtil.verifyAccessorMethodsForMutable() would use
reflection to
> "discover" all matching getters/setters and verify that setters return
the
> "same" object (or primitive value) as passed to the corresponding
setter.
> The class would instantiate objects (or assign primitive values) for
> testing.
>
> It would also be nice to have an immutable version that verified
objects
> were "equal" but not the "same".

I'v never seen such a thing. It'd be a good addition to JUnit-addons.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing



________________________________

Yahoo! Groups Links

*         To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/


*         To unsubscribe from this group, send an email to:
junit-unsubscribe@yahoogroups.com
<mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>


*         Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .



[Non-text portions of this message have been removed]

#12780 From: "wong_powah" <wong_powah@...>
Date: Mon Jan 31, 2005 10:49 pm
Subject: testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest) ClassNotFoundExc
wong_powah
Send Email Send Email
 
I installed junit3.8.1 on windows 2000.
I set "CLASSPATH" to
".;C:\Program Files\Java\jdk1.5.0_01\lib;C:\Program Files\junit3.8.1
\junit.jar;C:\Program Files\junit3.8.1".

D:\zip\util>java WhichJUnit

junit.framework.Assert class found in
'file:/C:/Program%
20Files/junit3.8.1/junit.jar!/junit/framework/Assert.class'

/junit/runner/excluded.properties found in
'file:/C:/Program%
20Files/junit3.8.1/junit.jar!/junit/runner/excluded.properties'

junit.tests.AllTests class found in
'/C:/Program%20Files/junit3.8.1/junit/tests/AllTests.class'

junit.samples.AllTests class found in
'/C:/Program%20Files/junit3.8.1/junit/samples/AllTests.class'

Classpath:
.
C:\Program Files\Java\jdk1.5.0_01\lib
C:\Program Files\junit3.8.1\junit.jar
C:\Program Files\junit3.8.1

D:\zip\util>cd C:\Program Files\junit3.8.1

D:\zip\util>java junit.textui.TestRunner junit.samples.AllTests
.........................................
.........................................
....................E.................
Time: 0.871
There was 1 error:
1) testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest)
java.lang.ClassNotFoundException: junit.tests.runner.LoadedFromJar
         at junit.runner.TestCaseClassLoader.lookupClassData
(TestCaseClassLoader.java:124)
         at junit.runner.TestCaseClassLoader.loadClass
(TestCaseClassLoader.java:101)
         at
junit.tests.runner.TestCaseClassLoaderTest.testJarClassLoading
(TestCaseClassLoa
derTest.java:33)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.ja
va:25)

FAILURES!!!
Tests run: 119,  Failures: 0,  Errors: 1

#12781 From: "Anitha kanthraj" <anipra@...>
Date: Mon Jan 31, 2005 9:10 pm
Subject: Re: executing sql queries in junit test case
anipra
Send Email Send Email
 
Thanks for the prompt response Shane,

This is the code - to check an EJB method
public void testfindAll(){
   		 try{
   			 Collection valueobjectCollection =
userRemote.findAllUsers();
   			 assertNotNull(valueobjectCollection);
   			 assertEquals(224, valueobjectCollection.size
());
   			 }
   		 catch (Exception e){
   			 System.out.println("Error ----in finding
user "  + e);
   			 }
   		 }

the value 224 is the rowcount of the table which has to be changed
every time a row gets inserted into the table.

Yes I agree a DB query will increase the time taken to execute the
tests but on the contrary by automating that step anyone can run my
tests with minimum or no code change.

--- In junit@yahoogroups.com, Shane Mingins <shanemingins@y...>
wrote:
>
> --- Anitha kanthraj <anipra@y...> wrote:
>
> >
> >
> > My test case requires the expected result to be the
> > rowcount of a
> > specific table so it can be compared with the actual
> > result in the
> > assert statement.As of now I have hard coded this
> > value in the
> > assert statement itself .
>
> Why can u not use this hardcoded value?  What is the
> actual result that u are testing?
>
> Perhaps more detail about what it is u are testing may
> illicit a better solution?  Tests that interact with a
> database can be slow.  Slow tests do not get run as
> often.
>
> > My doubt is whether I can
> > open a Db
> > connection and execute a query  in the junit
> > testcase itself so the
> > output that i get at runtime can be used inside the
> > assert statement.
>
> Yes you can do this the same way you would do it in
> any normal Java code.  But whether u want to is
> another matter.
>
> Cheers
> Shane
>
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - What will yours do?
> http://my.yahoo.com

#12782 From: "david_patrone" <david.patrone@...>
Date: Tue Feb 1, 2005 1:32 pm
Subject: Errors moving to 1.5
david_patrone
Send Email Send Email
 
Hello,

Does JUnit support 1.5? If not, is there a plan or a schedule to add
this support? We recently moved from 1.4 to 1.5 and started receiving
many instances of the following errors:

java.lang.VerifyError: (class: edu/jhuapl/MyClass, method: <init>
signature: ()V) Illegal constant pool index

testActivateAllReminders_1(edu.jhuapl.TestReminderMonitor): LVTT
entry for 'set' in class file edu/jhuapl/ReminderMonitor does not
match any LVT entry

I saw a post on Sun's site that some 1.4 and 1.5 files have a problem
living together.
http://forum.java.sun.com/thread.jspa?threadID=515187&tstart=120

Is it possible to get a version of JUnit built with 1.5 to see if
these errors go away?

Thanks,
David

#12783 From: "Balasubramaniam, Ram Ganesh \(Cognizant\)" <BRamGanesh@...>
Date: Tue Feb 1, 2005 5:10 am
Subject: class not found problem.
vbrg_1981
Send Email Send Email
 
hai,
	 I am doing my Web Application in Eclipse and Test Run by JUnit.

	 When I write a TestXXX for a class XXX , and run it , it gives me a error
"Class not Found" . But when i remove the Struts.config.jar file from the java
build path and run the JUnit , it works well with no errors.,

	 I repeated the same for several times but all in vain.,

	 Could anyone clear my probelm so that i can run the Eclipse  Project on the
whole ..



Thanks and Regards
B.Ram Ganesh.



This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

   Visit us at http://www.cognizant.com

[Non-text portions of this message have been removed]

#12784 From: "Tao Xie" <taoxie@...>
Date: Mon Jan 31, 2005 9:03 pm
Subject: Re: Comparing JTest and JUnit
uwtaoxie
Send Email Send Email
 
Jtest automatically generates tests (and can export the generated tests to a
JUnit class), whereas JUnit is a framework for you to put in tests and run them.
I don't think these two tools are comparable.

Tao
   ----- Original Message -----
   From: Ajith Kodithuwakku
   To: junit@yahoogroups.com
   Sent: 30 January, 2005 19:45
   Subject: [junit] Comparing JTest and JUnit




   Hi,

   I'm using the JTest tool nowadays to generate test cases to my project.

   Meanwhile a evaluation of JTest tool is also doing. Any of you have compared

   JTest and JUnit? Do you have any prepared documents regarding this pls forward
to me?



   Thanks and Regards

   Ajith





   ---------------------------------
   Do you Yahoo!?
   Yahoo! Search presents - Jib Jab's 'Second Term'

   [Non-text portions of this message have been removed]






------------------------------------------------------------------------------
   Yahoo! Groups Links

     a.. To visit your group on the web, go to:
     http://groups.yahoo.com/group/junit/

     b.. To unsubscribe from this group, send an email to:
     junit-unsubscribe@yahoogroups.com

     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]

#12785 From: "J. B. Rainsberger" <jbrains@...>
Date: Tue Feb 1, 2005 8:14 pm
Subject: Re: Comparing JTest and JUnit
nails762
Send Email Send Email
 
Tao Xie wrote:
>
> Jtest automatically generates tests (and can export the generated tests
> to a JUnit class), whereas JUnit is a framework for you to put in tests
> and run them. I don't think these two tools are comparable.

Most of the people I know who have used JTest like its static analysis
features (for enforcing coding standards), but I can't think of anyone
telling me that they love JTest's test-generating feature.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12786 From: "Ian Priest" <ian_priest@...>
Date: Tue Feb 1, 2005 5:18 pm
Subject: Interceptor usage in MockEJB
ianpriest2000
Send Email Send Email
 
>Hi,
>
>I'm trying to use an interceptor in MockEJB, but it doesn't seem to be
>intercepting.
>
>I have a bean class that has method...
>
> public String echoStringUpper(String input)
> {
>  SimpleHelper helper = new SimpleHelper();
>  String upper = helper.toUpper(input);
>  return upper;
> }
>
>and in SimpleHelper the toUpper method is...
>
> public String toUpper(String in) {
>  return in.toUpperCase();
> }
>
>I have set up a unit test with an interceptor as follows. (The setup method
>publishes the bean to mock jndi in the usual manner).
>
> public void testEchoStringUpper() throws Exception {
>
>  AspectSystem aspectSystem = AspectSystemFactory.getAspectSystem();
>
>  ClassPointcut simpleHelperPointcut = new ClassPointcut(
> 		 SimpleHelper.class,
> 		 false);
>
>  InvocationRecorder recorder = new InvocationRecorder();
>  aspectSystem.add(simpleHelperPointcut, recorder);
>
>  Object homeObj = context.lookup(SimpleHome.JNDI_NAME);
>  SimpleHome home = (SimpleHome) PortableRemoteObject.narrow(
> 		 homeObj,
> 		 SimpleHome.class
>  );
>  Simple bean = home.create();
>
>  String retval = bean.echoStringUpper("Hello World");
>
>  List methods = recorder.getMethodInvocationList();
>  System.out.println("contexts...");
>  for (Iterator iter = methods.iterator(); iter.hasNext();)
>  {
> 	 InvocationContext element = (InvocationContext) iter.next();
> 	 System.out.println(element);
>  }

>  InvocationContext toUpperInvocationCxt = recorder.findByTargetMethod(
> 		 "toUpper"
>  );
>  assertNotNull("toUpper wasn't invoked", toUpperInvocationCxt);
>
>  String input = (String) (toUpperInvocationCxt.getParamVals()[0]);
>  assertEquals("Wrong value passed to toUpper()", "Hello World", input);
>
>  assertEquals("Returned string was incorrect", "Hello World", retval);
>
> }
>
>The println bit shows that the recorder doesn't record any invocations, and
>the findByTargetMethod always returns null.
>
>I've tried various combinations of ClassPointcut, ClassPatternPointcut and
>MethodPatternPointcut, but nothing seems to pick up the call to
>SimpleHelper.toUpper().
>
>Can anyone help, or explain why it can't be done?
>
>Cheers,
>Ian.

#12787 From: Asutosh Panda <asutosh_study@...>
Date: Wed Feb 2, 2005 10:18 am
Subject: Running MultiThreading testcase in JUnit. Urgent!!
asutosh_study
Send Email Send Email
 
Hi All,
  I m new to JUnit.
  I'm facing an issue while handling multi threading testing in JUnit.
I'm  creating two threads to opening two same browser  in local m/c. many times
my code running properly ,the big but is that some  times it throws
unexpected  exception.How to have better control over threads?
Suggestions or pointers are welcome.

Please throw some light on this...

Here is the code  that is in the  runTest().....

public void runTest() throws Throwable {
                 getTestContext().setBaseUrl(Display.getValue("BaseUrl"));

                 if(Thread.currentThread().getName().equals("Thread-0"))
                   Thread.currentThread().setPriority(10);
                  else
                  Thread.currentThread().setPriority(1);

              beginAt("/controller/pages/login.jsp");
              assertTitleEquals("Determina SecureCore Management Console");
              assertFormPresent("LoginForm");
              setFormElementWithLabel ("User
Name",Display.getValue("UserName_admin"));
              setFormElementWithLabel
("Password",Display.getValue("Password_admin"));
              submit();
              gotoFrame("main");
              assertTextPresent("Welcome admin");
              HttpUnitOptions.setExceptionsThrownOnScriptError (false);
               beginAt("/controller/sysconfig.do");

           if(Thread.currentThread().getName().equals("Thread-0")){
             System.out.println("The Thread is "+Thread.activeCount());
                     assertFormPresent("sysConfigForm");
            setWorkingForm("sysConfigForm");
            assertTextPresent("System Detail");
            setFormElement("sys.userSessionTimeout","1150");
            submit("sysconfigUpdate");
            HttpUnitOptions.setExceptionsThrownOnScriptError (false);
            }

            if(Thread.currentThread().getName().equals("Thread-1")){
                  assertFormPresent("sysConfigForm");
            setWorkingForm("sysConfigForm");
            assertTextPresent("System Detail");
            submit("sysconfigUpdate");
            HttpUnitOptions.setExceptionsThrownOnScriptError (false);
            assertTextPresent("This data has been edited by someone else. If you
want to override, just resubmit your changes");
            System.out.println("WOW!Its Working");
           }

        }




  Thanks and Regards,
    Asutosh  Panda



---------------------------------
Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'

[Non-text portions of this message have been removed]

#12788 From: "alex_gantvarg" <alex.gantvarg@...>
Date: Tue Feb 1, 2005 6:29 pm
Subject: JUnit and WinRunner
alex_gantvarg
Send Email Send Email
 
Hi,
I'm wondering if JUnit tests can be integrated with WinRunner tests,
so I can build and run them together, and produce common output.
Thanks,
-Alex

#12789 From: "thomhehl70" <thom@...>
Date: Tue Feb 1, 2005 8:33 pm
Subject: cunit?
thomhehl70
Send Email Send Email
 
I love junit for my java testing! I am now working on a c++ app and
would like to know if there is a comparable tool for c++ testing?

Thanks.

#12790 From: Guru prasath <aprasadh@...>
Date: Wed Feb 2, 2005 7:41 am
Subject: Re: Htmlunit
guruprasadhp...
Send Email Send Email
 
When i searched "htmlunit" in Google, the 4th link i got is this link
"Testing Web applications with HtmlUnit and WebSphere Studio
<http://www-106.ibm.com/developerworks/websphere/library/techarticles/0409_wang/\
0409_wang.html>".
I believe the settings for eclipse and WSAD were fairly similar.

Guru prasath

--
<a href="http://www.spreadfirefox.com/?q=affiliates&id=0&t=85">
	 <img border="0" alt="Get Firefox!" title="Get Firefox!"
src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/80x15/fire\
fox_80x15.png"/>
</a>

#12791 From: "Bradley, Todd" <todd.bradley@...>
Date: Wed Feb 2, 2005 5:46 pm
Subject: RE: JUnit and WinRunner
todd404
Send Email Send Email
 
What are you using to generate output from your JUnit tests?  Do you
mean test results or log-type messages?


Todd.


________________________________

	 From: alex_gantvarg [mailto:alex.gantvarg@...]
	 Sent: Tuesday, February 01, 2005 11:30 AM
	 To: junit@yahoogroups.com
	 Subject: [junit] JUnit and WinRunner




	 Hi,
	 I'm wondering if JUnit tests can be integrated with WinRunner
tests,
	 so I can build and run them together, and produce common output.
	 Thanks,
	 -Alex








________________________________

	 Yahoo! Groups Links


	 * To visit your group on the web, go to:
		 http://groups.yahoo.com/group/junit/

	 * To unsubscribe from this group, send an email to:
		 junit-unsubscribe@yahoogroups.com
<mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>

	 * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]

#12792 From: "J. B. Rainsberger" <jbrains@...>
Date: Wed Feb 2, 2005 6:25 pm
Subject: Re: Re: executing sql queries in junit test case
nails762
Send Email Send Email
 
Anitha kanthraj wrote:
>
>
> Thanks for the prompt response Shane,
>
> This is the code - to check an EJB method
> public void testfindAll(){
>                try{
>                      Collection valueobjectCollection =
> userRemote.findAllUsers();
>                      assertNotNull(valueobjectCollection);
>                      assertEquals(224, valueobjectCollection.size
> ());
>                      }
>                catch (Exception e){
>                      System.out.println("Error ----in finding
> user "  + e);
>                      }
>                }
>
> the value 224 is the rowcount of the table which has to be changed
> every time a row gets inserted into the table.

Since this i
>
> Yes I agree a DB query will increase the time taken to execute the
> tests but on the contrary by automating that step anyone can run my
> tests with minimum or no code change.
>
> --- In junit@yahoogroups.com, Shane Mingins <shanemingins@y...>
> wrote:
>  >
>  > --- Anitha kanthraj <anipra@y...> wrote:
>  >
>  > >
>  > >
>  > > My test case requires the expected result to be the
>  > > rowcount of a
>  > > specific table so it can be compared with the actual
>  > > result in the
>  > > assert statement.As of now I have hard coded this
>  > > value in the
>  > > assert statement itself .
>  >
>  > Why can u not use this hardcoded value?  What is the
>  > actual result that u are testing?
>  >
>  > Perhaps more detail about what it is u are testing may
>  > illicit a better solution?  Tests that interact with a
>  > database can be slow.  Slow tests do not get run as
>  > often.
>  >
>  > > My doubt is whether I can
>  > > open a Db
>  > > connection and execute a query  in the junit
>  > > testcase itself so the
>  > > output that i get at runtime can be used inside the
>  > > assert statement.
>  >
>  > Yes you can do this the same way you would do it in
>  > any normal Java code.  But whether u want to is
>  > another matter.
>  >
>  > Cheers
>  > Shane
>  >
>  >
>  >
>  > __________________________________
>  > Do you Yahoo!?
>  > The all-new My Yahoo! - What will yours do?
>  > http://my.yahoo.com
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/junit/
>
>     * To unsubscribe from this group, send an email to:
>       junit-unsubscribe@yahoogroups.com
>       <mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>


--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12793 From: "J. B. Rainsberger" <jbrains@...>
Date: Wed Feb 2, 2005 6:28 pm
Subject: Testing EJBs with a live database
nails762
Send Email Send Email
 
Anitha kanthraj wrote:
>
>
> Thanks for the prompt response Shane,
>
> This is the code - to check an EJB method
> public void testfindAll(){
>                try{
>                      Collection valueobjectCollection =
> userRemote.findAllUsers();
>                      assertNotNull(valueobjectCollection);
>                      assertEquals(224, valueobjectCollection.size
> ());
>                      }
>                catch (Exception e){
>                      System.out.println("Error ----in finding
> user "  + e);
>                      }
>                }
>
> the value 224 is the rowcount of the table which has to be changed
> every time a row gets inserted into the table.

If this is a problem, then the /test/ should prepare the data in the
database, rather than relying on whatever is already there.

If all your tests use the same data set, that adds to the cost of
incremental development, because as new features are added, the data set
changes, and the cost of maintaining the tests goes up. This is one
source of common misconceptions that tests are overhead.

To solve the problem, testFindAll() should set up the data it needs in
the database, so that it controls the expected outcome. This is an
important trait of any good test, and not just tests that use a database.

> Yes I agree a DB query will increase the time taken to execute the
> tests but on the contrary by automating that step anyone can run my
> tests with minimum or no code change.

I disagree. The more tests rely on external resources, the more
/difficult/ they are to run by different people on different machines at
different times. That's been my experience.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12794 From: "J. B. Rainsberger" <jbrains@...>
Date: Wed Feb 2, 2005 6:30 pm
Subject: Re: class not found problem.
nails762
Send Email Send Email
 
Balasubramaniam, Ram Ganesh (Cognizant) wrote:
>
>
> hai,
>       I am doing my Web Application in Eclipse and Test Run by JUnit.
>
>       When I write a TestXXX for a class XXX , and run it , it gives me
> a error "Class not Found" . But when i remove the Struts.config.jar file
> from the java build path and run the JUnit , it works well with no errors.,
>
>       I repeated the same for several times but all in vain.,
>
>       Could anyone clear my probelm so that i can run the Eclipse
> Project on the whole ..

Without knowing which class is not found, we can only guess what the
problem might be.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12795 From: "J. B. Rainsberger" <jbrains@...>
Date: Wed Feb 2, 2005 6:30 pm
Subject: Re: Errors moving to 1.5
nails762
Send Email Send Email
 
david_patrone wrote:
>
>
> Hello,
>
> Does JUnit support 1.5? If not, is there a plan or a schedule to add
> this support? We recently moved from 1.4 to 1.5 and started receiving
> many instances of the following errors:
>
> java.lang.VerifyError: (class: edu/jhuapl/MyClass, method: <init>
> signature: ()V) Illegal constant pool index
>
> testActivateAllReminders_1(edu.jhuapl.TestReminderMonitor): LVTT
> entry for 'set' in class file edu/jhuapl/ReminderMonitor does not
> match any LVT entry
>
> I saw a post on Sun's site that some 1.4 and 1.5 files have a problem
> living together.
> http://forum.java.sun.com/thread.jspa?threadID=515187&tstart=120
> <http://forum.java.sun.com/thread.jspa?threadID=515187&tstart=120>
>
> Is it possible to get a version of JUnit built with 1.5 to see if
> these errors go away?

Build it from the source. It's one of the easiest builds in all of Open
Source.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12796 From: "J. B. Rainsberger" <jbrains@...>
Date: Wed Feb 2, 2005 6:33 pm
Subject: Re: cunit?
nails762
Send Email Send Email
 
thomhehl70 wrote:
>
>
> I love junit for my java testing! I am now working on a c++ app and
> would like to know if there is a comparable tool for c++ testing?

If you search the web, you'll find a number of such tools. You might
want to further search the web for an article that compares them all.
Google will help you find it.

Good luck.
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing

#12797 From: "Balasubramaniam, Ram Ganesh \(Cognizant\)" <BRamGanesh@...>
Date: Thu Feb 3, 2005 5:40 am
Subject: RE: class not found problem.
vbrg_1981
Send Email Send Email
 
Balasubramaniam, Ram Ganesh (Cognizant) wrote:
>
>
> hai,
>       I am doing my Web Application in Eclipse and Test Run by JUnit.
>
>       When I write a TestXXX for a class XXX , and run it , it gives me
> a error "Class not Found" . But when i remove the Struts.config.jar file
> from the java build path and run the JUnit , it works well with no errors.,
>
>       I repeated the same for several times but all in vain.,
>
>       Could anyone clear my probelm so that i can run the Eclipse
> Project on the whole ..

Without knowing which class is not found, we can only guess what the
problem might be.


hai,
     The error is in the " Class corresponding to the TestXXX.java is not found 
"

     ie., the class file created for each java file is missing in my test case
testXXX.java

     I think you may get my point now.



Thanks and Regards,
B.Ram Ganesh





This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

   Visit us at http://www.cognizant.com

[Non-text portions of this message have been removed]

#12798 From: Alex Popescu <alexandru.popescu@...>
Date: Thu Feb 3, 2005 7:27 am
Subject: Re: Testing EJBs with a live database
alexpopescu7...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote J. B. Rainsberger::on 2/2/2005 8:28 PM]
| Anitha kanthraj wrote:
|>
|>
|> Thanks for the prompt response Shane,
|>
|> This is the code - to check an EJB method
|> public void testfindAll(){
|>                try{
|>                      Collection valueobjectCollection =
|> userRemote.findAllUsers();
|>                      assertNotNull(valueobjectCollection);
|>                      assertEquals(224, valueobjectCollection.size
|> ());
|>                      }
|>                catch (Exception e){
|>                      System.out.println("Error ----in finding
|> user "  + e);
|>                      }
|>                }
|>
|> the value 224 is the rowcount of the table which has to be changed
|> every time a row gets inserted into the table.
|
| If this is a problem, then the /test/ should prepare the data in the
| database, rather than relying on whatever is already there.
|
| If all your tests use the same data set, that adds to the cost of
| incremental development, because as new features are added, the data set
| changes, and the cost of maintaining the tests goes up. This is one
| source of common misconceptions that tests are overhead.
|
| To solve the problem, testFindAll() should set up the data it needs in
| the database, so that it controls the expected outcome. This is an
| important trait of any good test, and not just tests that use a database.
|
|> Yes I agree a DB query will increase the time taken to execute the
|> tests but on the contrary by automating that step anyone can run my
|> tests with minimum or no code change.
|
| I disagree. The more tests rely on external resources, the more
| /difficult/ they are to run by different people on different machines at
| different times. That's been my experience.

I suggest that for testing real db queries you should do one of the following:
1/ either prepare the database data before running any of your tests (this will
guarantee that no
matter which db is used the results will be the same)
2/ or use dbUnit to prepare your db data for you.

I am absolutely sure that the value 224 will a lot of headaches from now on:
after a time the test
will start failing for different developers, they will have to fix it according
to their db version
and finally they will dismiss the test.

- --
:alex
[the_mindstorm]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCAdJPTTDTje0R2dgRAmZMAJ4y+3A1nb1ZPzuOqU59Gn3ou76TMQCdFdW2
arKT/T7omJpPA7xa/NAodxY=
=8jUB
-----END PGP SIGNATURE-----

#12799 From: "jriley555" <jriley555@...>
Date: Thu Feb 3, 2005 2:29 pm
Subject: Re: testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest) ClassNotFoun
jriley555
Send Email Send Email
 
move your junit installation directly under the root at c: & -of
course- adjust the %CLASSPATH% accordingly. this worked for me. the
problem is probably some stink associated w/ the embedded space in the
path.

--- In junit@yahoogroups.com, "wong_powah" <wong_powah@y...> wrote:
>
>
> I installed junit3.8.1 on windows 2000.
> I set "CLASSPATH" to
> ".;C:\Program Files\Java\jdk1.5.0_01\lib;C:\Program Files\junit3.8.1
> \junit.jar;C:\Program Files\junit3.8.1".
>
> D:\zip\util>java WhichJUnit
>
> junit.framework.Assert class found in
> 'file:/C:/Program%
> 20Files/junit3.8.1/junit.jar!/junit/framework/Assert.class'
>
> /junit/runner/excluded.properties found in
> 'file:/C:/Program%
> 20Files/junit3.8.1/junit.jar!/junit/runner/excluded.properties'
>
> junit.tests.AllTests class found in
> '/C:/Program%20Files/junit3.8.1/junit/tests/AllTests.class'
>
> junit.samples.AllTests class found in
> '/C:/Program%20Files/junit3.8.1/junit/samples/AllTests.class'
>
> Classpath:
> .
> C:\Program Files\Java\jdk1.5.0_01\lib
> C:\Program Files\junit3.8.1\junit.jar
> C:\Program Files\junit3.8.1
>
> D:\zip\util>cd C:\Program Files\junit3.8.1
>
> D:\zip\util>java junit.textui.TestRunner junit.samples.AllTests
> .........................................
> .........................................
> ....................E.................
> Time: 0.871
> There was 1 error:
> 1) testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest)
> java.lang.ClassNotFoundException: junit.tests.runner.LoadedFromJar
>         at junit.runner.TestCaseClassLoader.lookupClassData
> (TestCaseClassLoader.java:124)
>         at junit.runner.TestCaseClassLoader.loadClass
> (TestCaseClassLoader.java:101)
>         at
> junit.tests.runner.TestCaseClassLoaderTest.testJarClassLoading
> (TestCaseClassLoa
> derTest.java:33)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.ja
> va:25)
>
> FAILURES!!!
> Tests run: 119,  Failures: 0,  Errors: 1

#12800 From: "alex_gantvarg" <alex.gantvarg@...>
Date: Wed Feb 2, 2005 6:44 pm
Subject: Re: JUnit and WinRunner
alex_gantvarg
Send Email Send Email
 
Todd,
We use custom code to generate an xml file. I think we can combine
that file and report.txt file generated by WinRunner to produce a
common result. What we are trying to do here is to run in batch mode
WinRunner scripts from command line to test UI, call JUnit tests from
those scripts to test server side, and generate a common report. Any
suggestions how to make this approach work?
Thanks,
-Alex

--- In junit@yahoogroups.com, "Bradley, Todd" <todd.bradley@p...>
wrote:
> What are you using to generate output from your JUnit tests?  Do you
> mean test results or log-type messages?
>
>
> Todd.
>
>
> ________________________________
>
>  From: alex_gantvarg [mailto:alex.gantvarg@a...]
>  Sent: Tuesday, February 01, 2005 11:30 AM
>  To: junit@yahoogroups.com
>  Subject: [junit] JUnit and WinRunner
>
>
>
>
>  Hi,
>  I'm wondering if JUnit tests can be integrated with WinRunner
> tests,
>  so I can build and run them together, and produce common
output.
>  Thanks,
>  -Alex
>
>
>
>
>
>
>
>
> ________________________________
>
>  Yahoo! Groups Links
>
>
>  * To visit your group on the web, go to:
> 	 http://groups.yahoo.com/group/junit/
>
>  * To unsubscribe from this group, send an email to:
> 	 junit-unsubscribe@yahoogroups.com
> <mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
>  * Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> of Service <http://docs.yahoo.com/info/terms/> .
>
>
>
>
> [Non-text portions of this message have been removed]

#12801 From: "jriley555" <jriley555@...>
Date: Thu Feb 3, 2005 6:09 am
Subject: Re: testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest) ClassNotFoun
jriley555
Send Email Send Email
 
i had same problem as you.  pulled the junit directory out of "Program
Files", moved it right under C:\, reset the $CLASSPATH accordingly,
and everything ran ok.  suspect it is a problem parsing the embedded
space in the "Program Files" portion of the path.  You might also try
quoting the path, if you have any reason to keep junit where it is.

The take home lesson for me is that i will NEVER, EVER install any
other tool under the default microsoft-smelling "Program Files"
directory again.  Had a similar problem awhile back installing another
tool, which was resolved the same way.

cheers,
j. riley

--- In junit@yahoogroups.com, "wong_powah" <wong_powah@y...> wrote:
>
>
> I installed junit3.8.1 on windows 2000.
> I set "CLASSPATH" to
> ".;C:\Program Files\Java\jdk1.5.0_01\lib;C:\Program Files\junit3.8.1
> \junit.jar;C:\Program Files\junit3.8.1".
>
> D:\zip\util>java WhichJUnit
>
> junit.framework.Assert class found in
> 'file:/C:/Program%
> 20Files/junit3.8.1/junit.jar!/junit/framework/Assert.class'
>
> /junit/runner/excluded.properties found in
> 'file:/C:/Program%
> 20Files/junit3.8.1/junit.jar!/junit/runner/excluded.properties'
>
> junit.tests.AllTests class found in
> '/C:/Program%20Files/junit3.8.1/junit/tests/AllTests.class'
>
> junit.samples.AllTests class found in
> '/C:/Program%20Files/junit3.8.1/junit/samples/AllTests.class'
>
> Classpath:
> .
> C:\Program Files\Java\jdk1.5.0_01\lib
> C:\Program Files\junit3.8.1\junit.jar
> C:\Program Files\junit3.8.1
>
> D:\zip\util>cd C:\Program Files\junit3.8.1
>
> D:\zip\util>java junit.textui.TestRunner junit.samples.AllTests
> .........................................
> .........................................
> ....................E.................
> Time: 0.871
> There was 1 error:
> 1) testJarClassLoading(junit.tests.runner.TestCaseClassLoaderTest)
> java.lang.ClassNotFoundException: junit.tests.runner.LoadedFromJar
>         at junit.runner.TestCaseClassLoader.lookupClassData
> (TestCaseClassLoader.java:124)
>         at junit.runner.TestCaseClassLoader.loadClass
> (TestCaseClassLoader.java:101)
>         at
> junit.tests.runner.TestCaseClassLoaderTest.testJarClassLoading
> (TestCaseClassLoa
> derTest.java:33)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.ja
> va:25)
>
> FAILURES!!!
> Tests run: 119,  Failures: 0,  Errors: 1

#12802 From: suresh akkapeddi <sureshakkapeddi@...>
Date: Thu Feb 3, 2005 7:20 am
Subject: RE: class not found problem.
sureshakkapeddi
Send Email Send Email
 
Hi,

This is Suresh here. The problem which u are facing is quite common and more
often we do encounter this kind of problems. I do have encountered the same
problem when i used to write the JUNIT for some WebApplications in Eclipse.

Basically ClassNot Found Exceptions we do  get because of the following reasons:
Do try the following solutions and let me know if this could solve ur problem.

1. Did u import the package for the corresponding directory structure for the
java file which u are going to write the JUNIT code. I mean to say that in the
TestCase.java file did u import the corresponding package? If not lets try doing
that.

2. Also Did u set the CLASSPATH in the Environment Variables? If not please set
it and try.

Let me know if these could solve ur problem.

Regards
Suresh



"Balasubramaniam, Ram Ganesh (Cognizant)" <BRamGanesh@...> wrote:

Balasubramaniam, Ram Ganesh (Cognizant) wrote:
>
>
> hai,
>       I am doing my Web Application in Eclipse and Test Run by JUnit.
>
>       When I write a TestXXX for a class XXX , and run it , it gives me
> a error "Class not Found" . But when i remove the Struts.config.jar file
> from the java build path and run the JUnit , it works well with no errors.,
>
>       I repeated the same for several times but all in vain.,
>
>       Could anyone clear my probelm so that i can run the Eclipse
> Project on the whole ..

Without knowing which class is not found, we can only guess what the
problem might be.


hai,
     The error is in the " Class corresponding to the TestXXX.java is not found 
"

     ie., the class file created for each java file is missing in my test case
testXXX.java

     I think you may get my point now.



Thanks and Regards,
B.Ram Ganesh





This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

   Visit us at http://www.cognizant.com

[Non-text portions of this message have been removed]



---------------------------------
Yahoo! Groups Links

    To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/

    To unsubscribe from this group, send an email to:
junit-unsubscribe@yahoogroups.com

    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! India Matrimony: Find your life partneronline.

[Non-text portions of this message have been removed]

#12803 From: Shane Mingins <shanemingins@...>
Date: Thu Feb 3, 2005 7:10 pm
Subject: Re: Testing EJBs with a live database
shanemingins
Send Email Send Email
 
--- "J. B. Rainsberger" <jbrains@...> wrote:

>
> To solve the problem, testFindAll() should set up
> the data it needs in
> the database, so that it controls the expected
> outcome. This is an
> important trait of any good test, and not just tests
> that use a database.

I preface this question with "I know very little about
EJB's"

Is it possible to implement the findAll logic in a
POJO which is then easier to test?  Or is the code
likely to be just a call to an EJB API?

cheers
Shane




__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

#12804 From: Shane Mingins <shanemingins@...>
Date: Thu Feb 3, 2005 7:15 pm
Subject: Re: Testing EJBs with a live database
shanemingins
Send Email Send Email
 
--- Alex Popescu <alexandru.popescu@...> wrote:
>
> I suggest that for testing real db queries you
> should do one of the following:
> 1/ either prepare the database data before running
> any of your tests (this will guarantee that no
> matter which db is used the results will be the
> same)
> 2/ or use dbUnit to prepare your db data for you.
>

DbUnit has the nice advantage that you can easily
assert that the database is in the expected state
after the operation if it is an insert or update.

Also I have seen suggested using a lightweight db for
testing.  I have download CloudScape but have yet to
try it out.

Cheers
Shane




__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

#12805 From: "Bradley, Todd" <todd.bradley@...>
Date: Thu Feb 3, 2005 10:27 pm
Subject: RE: Re: JUnit and WinRunner
todd404
Send Email Send Email
 
Ah, that's a very interesting problem.  We are confronted with exactly
the same issue, and I'm currently working on a project where we're
designing a JUnit-based test framework to make this sort of thing
simple.  Our approach is backward of what you're doing.  Our "master
test case" is a JUnit test that makes calls out to other test tools
(WinRunner, for instance), and then marshalls all the test results into
the JUnit system.  So we're writing simple Java interfaces to the other
test tools we want to use.  Since most of them have some sort of
programmable interface or another (even if it's just interacting with a
Unix command line) this is a fairly straightfoward approach.


Todd.



________________________________

From: alex_gantvarg [mailto:alex.gantvarg@...]
Sent: Wednesday, February 02, 2005 11:44 AM
To: junit@yahoogroups.com
Subject: [junit] Re: JUnit and WinRunner





	 Todd,
	 We use custom code to generate an xml file. I think we can
combine
	 that file and report.txt file generated by WinRunner to produce
a
	 common result. What we are trying to do here is to run in batch
mode
	 WinRunner scripts from command line to test UI, call JUnit tests
from
	 those scripts to test server side, and generate a common report.
Any
	 suggestions how to make this approach work?
	 Thanks,
	 -Alex

	 --- In junit@yahoogroups.com, "Bradley, Todd"
<todd.bradley@p...>
	 wrote:
	 > What are you using to generate output from your JUnit tests?
Do you
	 > mean test results or log-type messages?
	 >
	 >
	 > Todd.
	 >
	 >
	 > ________________________________
	 >
	 >       From: alex_gantvarg [mailto:alex.gantvarg@a...]
	 >       Sent: Tuesday, February 01, 2005 11:30 AM
	 >       To: junit@yahoogroups.com
	 >       Subject: [junit] JUnit and WinRunner
	 >
	 >
	 >
	 >
	 >       Hi,
	 >       I'm wondering if JUnit tests can be integrated with
WinRunner
	 > tests,
	 >       so I can build and run them together, and produce common

	 output.
	 >       Thanks,
	 >       -Alex
	 >
	 >
	 >
	 >
	 >
	 >
	 >
	 >
	 > ________________________________
	 >
	 >       Yahoo! Groups Links
	 >
	 >
	 >       *      To visit your group on the web, go to:
	 >             http://groups.yahoo.com/group/junit/
	 >
	 >       *      To unsubscribe from this group, send an email to:
	 >             junit-unsubscribe@yahoogroups.com
	 > <mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>

	 >
	 >       *      Your use of Yahoo! Groups is subject to the
Yahoo!
	 Terms
	 > of Service <http://docs.yahoo.com/info/terms/> .
	 >
	 >
	 >
	 >
	 > [Non-text portions of this message have been removed]








________________________________

	 Yahoo! Groups Links


	 * To visit your group on the web, go to:
		 http://groups.yahoo.com/group/junit/

	 * To unsubscribe from this group, send an email to:
		 junit-unsubscribe@yahoogroups.com
<mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>

	 * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]

#12806 From: "Metlis, Matthew B." <matthew.metlis@...>
Date: Fri Feb 4, 2005 12:05 am
Subject: RE: Errors moving to 1.5
mmetlis
Send Email Send Email
 
Hi, thank you for your suggestion.  I work with David on the project
where we moved to Java 1.5.  I downloaded JUnit and built it from the
source with 1.5.  First, compiling JUnit with Java 1.5 does not solve
the problems David reports below.

Second, I found that one of the tests included with JUnit reports an
error when I run the "dist" target (after it successfully creates the
junit.jar file).  This seems to occur only when I am working from a path
that contains a space (I was working under "Documents and Settings" ...
"My Documents" ...).  It passes when I copy the JUnit files to the C:
drive and work from a path without any spaces.

The test that causes the error is testJarClassLoading in
junit.tests.runner.TestCaseClassLoaderTest.  By adding print statements
I was able to see that in junit.runner.TestCaseClassLoader.loadJarData()
the if (!archive.exists()) on line 164 evaluates to true, so null is
returned.  When the test passes (working from a path without spaces),
the body of that if statement is never reached.

I cannot tell how closely this relates to the problems we are having,
but I do notice that this error is with the class loader, as are many of
the problems we are having since our move to 1.5 (an example being the
LVTT error below).  I did try moving our project to a path without any
spaces, but that does not fix any of the errors we are receiving.

Here is the full report of an error we are getting with the class loader
from our JUnit tests:
testActivateReminders_1(edu.jhuapl.TestReminderMonitor): LVTT entry for
'set' in class file edu/jhuapl/ReminderMonitor does not match any LVT
entry
java.lang.ClassFormatError: LVTT entry for 'set' in class file
edu/jhuapl/ReminderMonitor does not match any LVT entry
at java.lang.ClassLoader.defineClass1(Native method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at
junit.runner.TestCaseClassLoader.loadClass(TestCaseClassLoader.java:104)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at edu.jhuapl.ReminderMonitor.setUp(TestReminderMonitor.java:34)

Thanks,
Matthew Metlis

	 -----Original Message-----
	 From: J. B. Rainsberger [mailto:jbrains@...]
	 Sent: Wednesday, February 02, 2005 1:31 PM
	 To: junit@yahoogroups.com
	 Subject: Re: [junit] Errors moving to 1.5


	 david_patrone wrote:
	 >
	 >
	 > Hello,
	 >
	 > Does JUnit support 1.5? If not, is there a plan or a schedule
to add
	 > this support? We recently moved from 1.4 to 1.5 and started
receiving
	 > many instances of the following errors:
	 >
	 > java.lang.VerifyError: (class: edu/jhuapl/MyClass, method:
<init>
	 > signature: ()V) Illegal constant pool index
	 >
	 > testActivateAllReminders_1(edu.jhuapl.TestReminderMonitor):
LVTT
	 > entry for 'set' in class file edu/jhuapl/ReminderMonitor does
not
	 > match any LVT entry
	 >
	 > I saw a post on Sun's site that some 1.4 and 1.5 files have a
problem
	 > living together.
	 >
http://forum.java.sun.com/thread.jspa?threadID=515187&tstart=120
	 >
<http://forum.java.sun.com/thread.jspa?threadID=515187&tstart=120>
	 >
	 > Is it possible to get a version of JUnit built with 1.5 to see
if
	 > these errors go away?

	 Build it from the source. It's one of the easiest builds in all
of Open
	 Source.
	 --
	 J. B. (Joe) Rainsberger
	 Diaspar Software Services
	 http://www.diasparsoftware.com
	 Author, JUnit Recipes: Practical Methods for Programmer Testing


________________________________

	 Yahoo! Groups Links


	 * To visit your group on the web, go to:
		 http://groups.yahoo.com/group/junit/

	 * To unsubscribe from this group, send an email to:
		 junit-unsubscribe@yahoogroups.com
<mailto:junit-unsubscribe@yahoogroups.com?subject=Unsubscribe>

	 * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]

Messages 12777 - 12806 of 24384   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help