Author: ygrego Date: 2015-02-19 14:13:39 +0000 (Thu, 19 Feb 2015) New Revision: 829 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/829 Log: Make the condition test of method "testInstanceCreation" simpler. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-02-19 14:05:34 UTC (rev 828) +++ oipf/js/test/VideoBroadcastTest.js 2015-02-19 14:13:39 UTC (rev 829) @@ -19,14 +19,12 @@ console.log("[TEST-RUNNING][Info] Id: vbTestInstanceCreation, Label: Object creation, State: "+state); this.videoBroadcastObject = oipfObjectFactory.createVideoBroadcastObject(); - if ((this.assertNotNull(this.searchManagerTest) === true) && (this.assertNotUndefined(this.searchManagerTest))) { - state = "Successfull"; + if ((this.assertNotNull(this.videoBroadcastObject)) && (this.assertNotUndefined(this.videoBroadcastObject))) { console.log("[TEST-RUNNING][Info] Id: vbTestInstanceCreation, Label: Object creation, State: "+state); - resolve(state); + resolve("Successfull"); } else { - state = "Failure"; console.log("[TEST-RUNNING][Info] Id: vbTestInstanceCreation, Label: Object creation, State: "+state); - reject(new Error(state)); + reject("Failure"); } },