[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[ajdt-dev] Running JUnit tests
|
Hi,
I'm new to the AJDT code - and to Eclipse plugin development in general
- and I've been trying to get a feel for how much of it works.
I've started by looking at the unit tests that have been written. First
of all I'm having problems getting them to run, they don't appear to
run straight from within the workbench. My system configuration is:
OS: MacOS X 10.2.8
Java: 1.4.1
Eclipse: 3.0M3
AJDT: Latest CVS
I've got the AJDT plugin source as a project in my workspace and also
loaded into the same workspace. When I run the AllAJPluginTests class I
get a large number of null pointer exceptions. Looking at the logs
these are caused for a number of reasons like the following:
1. The AspectJPlugin.getWorkspace() method is returning null
2. The AspectJPlugin.getDefault() method is returning null
How do I enable the AspectJ plugin and the workspace such that the unit
tests can pick them up. I've got the AspectJ plugin loaded into my
current workspace and it uses the same JVM as that used to run JUnit
but the unit tests appear not to recognise it. I suspect this is a
classloader problem or something similar.
What setup do you guys use in order to run the unit tests?
Also has anybody thought about using mock objects - www.mockobjects.com
- to allow the unit tests to be run without this tight integration with
the workbench?
Also on looking at the unit test code there appears to be a number of
hard coded path names in AJDTUtilsTest. Is this intentional, as I'm
running on MacOS these tests won't pass if they rely on Windows only
features?
Why is the AJDTUtilsTest class named as it is? I don't understand why
it has Utils in it's name? Is it meant only to test utility classes?
Thanks in advance for any help,
Nick.
Slow down, you move too fast
You got to make the morning last
Just kicking down the cobblestones
Looking for fun and feeling groovy
Simon and Garfunkel
Slow down, you move too fast
You got to make the morning last
Just kicking down the cobblestones
Looking for fun and feeling groovy
Simon and Garfunkel
Slow down, you move too fast
You got to make the morning last
Just kicking down the cobblestones
Looking for fun and feeling groovy
Simon and Garfunkel