My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 19: Accessing ComponentUtils fails when framework is not directly under webroot
  Back to list
Status:  Fixed
Owner:  virtix
Closed:  Oct 2007
Cc:  marc.es...@gmail.com, virtix


 
Project Member Reported by virtix, Oct 6, 2007
What steps will reproduce the problem?
1. Install MXUNIT in a webroot sub-directory; e.g., /apps/mxunit
2. Run any sample test

What is the expected output? What do you see instead?
Sample tests should execute fine, but exception is thrown trying to find 
mxunit.util.ComponentUtils

Resolution: Find a way to invoke ComponentUtils irregardless of it's 
location OR place ComponentUtils in the framework package.
 
Oct 6, 2007
Project Member #1 virtix
This is really a design issue. Suggestion: maybe refactor the framework to decouple 
dependency upon this component and make a configuration item in the eclispe plug-in 
that point to mxunit install. Or derive the mxunit install from an existing 
parameter.
Oct 7, 2007
Project Member #2 virtix
Playing aroud this morning with sniffing out the install root from TestCase 
constructor with the assumption *all tests must extend 
some.form.of.mxunit.framework.TestCase*. So, finding where mxunit is installed at 
runtime should be simple. I'll update the repository with TestCase, that will have a 
property that can be used by the framework or plugin to instantiate objects based on 
this property. E.g., createObject("component", evaluate(this.installRoot 
& ".mxunit.framework.TestResult")) or createObject("component", evaluate
(this.installRoot & ".mxunit.util.ComponentUtils")) ... 
Cc: virtix
Oct 19, 2007
Project Member #3 virtix
Moved ComponentUtils into framework package and altered dependencies. All seems 
well, but we should validate with an eclipse build.
Oct 30, 2007
Project Member #4 virtix
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting