Re: Unit test question...

Aleksandar Vidakovic <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <1111925296.13890.11.camel@popper>
Salut all,

ok, I got a bit further... I'm getting the idea behind the whole
keel:uberjar and keel:test stuff. My problem now is that if I want to
run my tests they are completely ignored and the classes are missing in
target/test-classes (which seems to be the place where they should be?).

I tried to compare my tests with those which are included (e. g. the
SuperString test from keel-common). The only diff I see is that my tests
are derived from AbstractKeelServiceTest and the others are only simple
junit tests (derived from TestCase).

What am I doing wrong?

Thanks in advance,

Aleks

On Fri, 2005-03-25 at 17:14 +0100, Aleksandar Vidakovic wrote:
> Salut all,
> 
> I have a problem writing a unit test for a service. In Eclipse
> everything seems to be OK (dependencies etc.), but when I run the test
> on the command line ("keel:tests") it fails with the following
> exception:
> 
> [code]
> 
> java.lang.Error: Unresolved compilation problems: The method
> setNested(Throwable) from the type NestedException is not visible The
> method getStackTraceAsString(Throwable) from the type NestedException is
> not visible at
> org.keel.core.container.ServerSideNestedException.setNested(ServerSideNestedException.java:107) at org.keel.core.exception.NestedException.<init>(NestedException.java:86) at org.keel.core.container.ServerSideNestedException.<init>(ServerSideNestedException.java:103) at org.keel.core.container.ContainerException.<init>(ContainerException.java:16) at org.keel.core.container.ContainerFactoryLoader.getContainerFactory(ContainerFactoryLoader.java:40) at org.keel.core.container.ContainerFactoryLoader.getContainerFactory(ContainerFactoryLoader.java:57) at org.keel.util.test.AbstractKeelTest.setUp(AbstractKeelTest.java:67)
> 
> [/code]
> 
> And to be honest: I have problems to find
> org.keel.util.test.AbstractKeelTest in the current codebase... does this
> mean that there is now another way to write the unit tests?
> 
> Thanks,
> 
> Aleks
> 
> 
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
> 
-- 
Aleksandar Vidakovic <[email protected]>

http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.