2009/12/9 John <[email protected]>:
> Hi all,
>
> Since there are a lot of changes in the code after the merge and
> update, I like to change the tellurium core package name from
> org.tellurium to org.telluriumsource. The reason is that tellurium.org
> does not really belong to us. We have registered the
> telluriumsource.org domain name. I plan to do that tonight and create
> a wiki page to list all the changes.
>
> Any objections?
Just a short experience report from after the change (as I'm running
the 0.7.0-SNAPSHOT version.
The first thing I noticed as a problem was that I got the following
error when trying to run my tests
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.tellurium.bootstrap.TelluriumSupport.class$(TelluriumSupport.groovy)
at
org.tellurium.bootstrap.TelluriumSupport.$get$$class$org$tellurium$framework$TelluriumFrameworkMetaClass(TelluriumSupport.groovy)
...
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException:
Cannot cast object '{}' with class
'groovy.util.ConfigObject' to class
'java.lang.Number'
at
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:130)
at
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.intUnbox(DefaultTypeTransformation.java:56)
at
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:300)
at
org.codehaus.groovy.reflection.CachedField.setProperty(CachedField.java:61)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2339)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3279)
at org.tellurium.framework.Environment.setProperty(Environment.groovy)
at groovy.lang.GroovyObject$setProperty.call(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at
org.tellurium.config.TelluriumConfigurator.configEnvironment(TelluriumConfigurator.groovy:230)
The first thing I did was to go back to my maven module containing my
tellurium modules where I started getting messages about
TelluriumJavaTestCase DslContext not being found, at which point I
remembered this thread and updated my maven dependencies and imports
allowing my modules to build.
However this did not fix the problem above, it seems that this is the
error message you get when there is something missing from
TelluriumConfig.groovy. After overwriting my TelluriumConfig with the
one found in trunk my tests started running again.
It would be nice if;
a) If a property is missing from the config then a sane default is used or;
b) when a property is found to be missing from the config a better
error message should be rendered, telling which property caused the
problem and telling the user where they can find a sample config file.
Regards,
Jonathan
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.