Search the web
Sign In
New User? Sign Up
jdepend
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Basic jDpend test case failing   Message List  
Reply | Forward Message #67 of 72 |
Re: [jdepend] Basic jDpend test case failing

Pierre,

no Ant integration, I just run it as a test case within eclipse. I've also
run it as a Java application with the same result.

It has to be something very simple - as the test case couldnt be simplier!


thanks,

Dean

>From: "Pierre Goupil" <goupilpierre@...>
>Reply-To: jdepend@yahoogroups.com
>To: jdepend@yahoogroups.com
>Subject: Re: [jdepend] Basic jDpend test case failing
>Date: Thu, 9 Nov 2006 22:00:23 +0100
>
>Hi there !
>
>Just to be sure : do you launch all that stuff via Eclipse's Ant
>integration
>?
>
>
>Pierre
>
>
>
>
>2006/11/9, john brian <johnbrianaus@...>:
>>
>> Hi,
>>
>>I have exercised a basic jDepends testcase using JDepends 2.9.1, eclipse
>>3.2
>>and JDK5, however the testcase fails -- and despite the simplicity of my
>>example I cant work it out. Any feedback is appreciated!!
>>
>>My 'project' to analyze is very simple:
>>
>>package a;
>>import b.B;
>>public class A {
>>B b = new B();
>>}
>>
>>package b;
>>public class B {
>>}
>>
>>My junit test is pretty simple too being:
>>
>>public class TestJDepend extends TestCase {
>>private JDepend jDepend;
>>
>>public TestJDepend() {
>>}
>>
>>protected void setUp() throws Exception {
>>jDepend = new JDepend();
>>jDepend.addDirectory("bin");
>>}
>>
>>public void testPackageDependencies() {
>>DependencyConstraint constraint = new DependencyConstraint();
>>JavaPackage a = constraint.addPackage("a");
>>assertNotNull(a);
>>JavaPackage b = constraint.addPackage("b");
>>assertNotNull(b);
>>a.dependsUpon(b);
>>jDepend.analyze();
>>assertEquals("Package dependency violation", true,
>>jDepend.dependencyMatch(constraint));
>>}
>>
>>}
>>
>>where the classes are below the 'bin' package. However running this
>>results
>>in a:
>>
>>Time: 0.047
>>There was 1 failure:
>>1)
>>testPackageDependencies(TestJDepend)junit.framework.AssertionFailedError:
>>Package dependency violation expected:<true> but was:<false>
>>at TestJDepend.testPackageDependencies(TestJDepend.java:26)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>at TestJDepend.main(TestJDepend.java:29)
>>
>>FAILURES!!!
>>Tests run: 1, Failures: 1, Errors: 0
>>
>>any ideas?
>>
>>__________________________________________________________
>>Use your PC to make calls at very low rates
>>https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx
>>
>>
>>
>
>
>
>--
>"L'une des raisons pour lesquelles la vie est complexe
>C'est qu'elle a une partie réelle et une partie imaginaire."

_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US\
&source=hmtagline





Thu Nov 9, 2006 9:58 pm

johnbrianaus@...
Send Email Send Email

Forward
Message #67 of 72 |
Expand Messages Author Sort by Date

Hi, I have exercised a basic jDepends testcase using JDepends 2.9.1, eclipse 3.2 and JDK5, however the testcase fails -- and despite the simplicity of my ...
john brian
johnbrianaus@...
Send Email
Nov 9, 2006
7:23 pm

Hi there ! Just to be sure : do you launch all that stuff via Eclipse's Ant integration ? Pierre ... -- "L'une des raisons pour lesquelles la vie est complexe ...
Pierre Goupil
goupilpierre@...
Send Email
Nov 9, 2006
9:16 pm

Pierre, no Ant integration, I just run it as a test case within eclipse. I've also run it as a Java application with the same result. It has to be something...
john brian
johnbrianaus@...
Send Email
Nov 9, 2006
10:04 pm
Advanced

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