test is being setup. Below is the error.
...........
On Monday, August 27, 2012 1:08:49 PM UTC-6, Sean Landis wrote:
> I am running Jasmine using the Maven plugin. I have a model:
> /*global _ Backbone */
> var Configuration = Configuration||{}; // Create or use the Configuration
> app namespace.
> Configuration.Models = (function() {
> var WhoAmI = Backbone.Model.extend({
> defaults : {
> userName : "",
> name : "",
> environment : "",
> hostName : "",
> modifyAuthorized : false,
> logoutUri : window.location
> },
> urlRoot : "apps/whoami"
> });
> var Application = Backbone.Model.extend({
> defaults : {
> name : null,
> lastConfigMod : null,
> createdByNOC : false
> },
> isGlobal : function() {
> return this.get('name') === "global";
> },
> toString: function() {
> return 'Application{name: ' + this.get('name') + ', lastConfigMod: '
> + this.get('lastConfigMod') + ', createdByNoc: '
> + this.get('createdByNoc') + '}';
> },
> urlRoot : "apps",
> idAttribute : "name"
> });
> var ApplicationList = Backbone.Collection.extend({
> toString: function() {
> return 'ApplicationList';
> },
> model : Application,
> url : "apps"
> });
> ...
> I have a spec that does almost nothing, and I don't think it's even
> getting loaded before the following error occurs:
> [INFO] --- jasmine-maven-plugin:1.1.0:test (default) @
> Configuration-webapp ---
> [INFO] Executing Jasmine Specs
> Aug 27, 2012 12:20:57 PM
> com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController
> processSynchron
> INFO: Re-synchronized call to
> file:/Users/slandis/workspace/Configuration/Configuration-webapp/target/jas mine/apps/whoami
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 45.407s
> [INFO] Finished at: Mon Aug 27 12:20:57 MDT 2012
> [INFO] Final Memory: 23M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> com.github.searls:jasmine-maven-plugin:1.1.0:test (default) on project
> Configuration-webapp: The jasmine-maven-plugin encountered an exception:
> [ERROR] java.lang.RuntimeException:
> org.openqa.selenium.WebDriverException:
> com.gargoylesoftware.htmlunit.ScriptException: Exception invoking
> jsxGet_responseText
> [ERROR] Build info: version: '2.11.0', revision: '14435', time:
> '2011-10-28 18:01:56'
> ....a bunch deleted...
> [ERROR] at
> net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(Context Factory.java:429)
> [ERROR] at
> com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(H tmlUnitContextFactory.java:267)
> [ERROR] at
> net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRu ntime.java:3183)
> [ERROR] at
> net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(Interpr etedFunction.java:162)
> [ERROR] at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScrip tEngine.java:538)
> [ERROR] at
> com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAc tion.run(JavaScriptEngine.java:589)
> [ERROR] ... 44 more
> [ERROR] Caused by: java.lang.RuntimeException:
> java.io.FileNotFoundException:
> /Users/slandis/workspace/Configuration/Configuration-webapp/target/jasmine/ apps/whoami
> (No such file or directory)
> The above file path is getting keyed off the rootUrl of the WhoAmI model
> object. Why is this happening and how to I prevent it?
> Let me point out that WhoAmI has a rootUrl of "apps/whoami",
> ApplicationList has a url of "apps" and contains the Application model. I
> wonder if WhoAmI being under "apps" is causing a problem?