#15 ✓released
Jeanne Boyarsky

infinitest - compiler error and missing dependency

Reported by Jeanne Boyarsky | October 25th, 2009 @ 02:00 PM

As blogged (http://www.selikoff.net/2009/10/24/product-review-infinitest), infinitest works as expected for one of my projects. For the other, I encounter two errors. I'm not sure if they are related, so I'm putting them both in the same entry. I am using the Eclipse plugin.

This JForum project is a fork of the jforum.net version. I can e-mail a zip/jar of the project if that would help.

1) The JForum project complains sporadically about a class not being found that is in the same project.
How to reproduce:
a) Remove toLowerCase() from line 137 of PostCommon.java. This creates unit test failures.
b) Infinitest correctly identifies two failing tests and marks them with errors in the problems view
c) Restore toLowerCase() which should get rid of the unit test failures.
d) Infinitetest ran 8 test classes including the one with the two failures. The infinitest bar is red however there are no errors in the problems view shown.
e) Project > Clean project
f) Now infinitest shows one problem in the problems view. "NoClassDefFoundError (net/jforum/cache/CacheEngine) in PostCommonTest." PostCommonTest was the class that had the failing test in this exercise.

Note: If I close and re-launch the Eclipse workspace, it starts out clean and I can reproduce this scenario.

2) Infinitest usually finds the relevant tests, but not always. For example, I changed the implementation of post.setText() to use the value "hi" instead of the passed in value. I expected a whole gaggle of tests like the following to run and fail. None of them did.

@Test
public void noCodeTags() {
post.setText("test");
PostCommon.processText(post);
String actual = post.getText();
assertEquals("transformed post", "test", actual);
}

Comments and changes to this ticket

  • benrady (at gmail)

    benrady (at gmail) October 26th, 2009 @ 10:28 PM

    • Assigned user set to “benrady (at gmail)”

    I think this might be the same as issue #7, but if you can post the project would be very helpful.

  • Jeanne Boyarsky

    Jeanne Boyarsky October 27th, 2009 @ 12:37 AM

    I'd rather the project not be on the public internet so I'm e-mailing it to you.

    I am able to reproduce the problem in two ways. (I tested again because I wanted to make sure it still happened with the slightly smaller version of the project I am e-mailing.)

    1) Remove toLowerCase() from line 137 of PostCommon.java. This creates unit test failures.
    2) Infinitest correctly identifies two failing tests and marks them with errors in the problems view
    3) Restore toLowerCase() which should get rid of the unit test failures.
    4) Infinitetest ran 8 test classes including the one with the two failures. The infinitest bar is red however there are no errors in the problems view shown.
    5) Project > Clean project
    6) Now infinitest shows one problem in the problems view. "NoClassDefFoundError (net/jforum/cache/CacheEngine) in PostCommonTest." PostCommonTest was the class that had the failing test in this exercise.

    1) Turn Post.setText into "hi" - Now it fails the appropriate tests and adds the NoClassDefFound on CacheEngine.
    2) Revert Post.setText - tests don't run again
    3) Clean project
    4) Note NoClassDefFound is back.

  • benrady (at gmail)

    benrady (at gmail) November 28th, 2009 @ 03:04 AM

    • State changed from “new” to “released”

    This is likely fixed in 5.1.68 as part of the fix for issue #7.

    Please verify. If the problem still exists, consider uploading an example workspace that reproduces the problem

  • Jeanne Boyarsky

    Jeanne Boyarsky November 29th, 2009 @ 07:44 PM

    Yes. Upgrading to 5.1.68 solved both problems.

    Thank you.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Continuous Test Runner for Java

Shared Ticket Bins

People watching this ticket

Pages