>>> Hi,
>>>
[quoted text clipped - 29 lines]
> It seems you don't understand the purpose of JUnit. JUnit is s testing
> platform. Meaning: it tests _your_application_.
Junit is still a framework and not a platform.
In other words, JUnit
> helps you determine whether your application can "test xsl" (whatever
> that may be) correctly or not. But in order for your application to
> "test xsl" JUnit should not be needed.
I agree it should not be needed.
> Bottom line: the answer to your problem (how to remove the dependency to
> the junit) is simple: stop using it.
Well our framework to test xsl is depending on junit framework. So It
cannot just stop using it before I have an alternative.
For instance in junit we there is a class called
junit.framework.TestCase I probably need to replace it with
<mypackage>.TestCase or?
cheers,
//mikael
Tor Iver Wilhelmsen - 15 Sep 2006 17:30 GMT
> Well our framework to test xsl is depending on junit framework.
Why did you choose to have such a dependency? Because it had "testing"
in its name it was assumed it was suitable for the task?
As others have said: JUnit is a UNIT testing framework. This means it
is used to test that a method A in class B behaves correctly and
consistently as sotfware evolves.
> So It cannot just stop using it before I have an alternative.
No, you needed to write the XSL testing software without trying to
wrestle an ill-suited framework into it.
> For instance in junit we there is a class called
> junit.framework.TestCase I probably need to replace it with
> <mypackage>.TestCase or?
You are better off writing a custom framework from scratch since
you're not targeting Java method invocations. You couls always try
some of the other frameworks like JTiger or TestNG reviewed here:
http://www.theserverside.com/tt/articles/article.tss?l=TestFrameworkComparison
Or use UTF-X which is exactly what you apparently have written: a
JUnit extension to test XSL stylesheets.
https://utf-x.dev.java.net/
Tor Iver Wilhelmsen - 15 Sep 2006 18:17 GMT
> Or use UTF-X which is exactly what you apparently have written: a
> JUnit extension to test XSL stylesheets.
>
> https://utf-x.dev.java.net/
Another option:
http://juxy.tigris.org/