Author: ygrego Date: 2015-02-16 17:25:50 +0000 (Mon, 16 Feb 2015) New Revision: 812 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/812 Log: Addition of assertion method for test method "testInstanceCreation". Modified: oipf/js/test/SearchManagerTest.js Modified: oipf/js/test/SearchManagerTest.js =================================================================== --- oipf/js/test/SearchManagerTest.js 2015-02-16 17:18:46 UTC (rev 811) +++ oipf/js/test/SearchManagerTest.js 2015-02-16 17:25:50 UTC (rev 812) @@ -34,12 +34,9 @@ console.log("[TEST-RUNNING][Info] "+"Id: "+METH_NAME_TEST_SM_INSTANCE_CREATION+", Label: "+LABEL_TEST_SM_TEST_INSTANCE_CREATION+", State: "+state); this.searchManagerTest = oipfObjectFactory.createSearchManagerObject(); - if ((this.videoBroadcastObject !== null) && (this.videoBroadcastObject !== undefined)) { - - var result = "Success"; - } else { - result = "Failed"; - } + this.assertNotNull(this.searchManagerTest); + this.assertNotUndefined(this.searchManagerTest); + state = "Finished"; console.log("[TEST-RUNNING][Info] "+"Id: "+METH_NAME_TEST_SM_INSTANCE_CREATION+", Label: "+LABEL_TEST_SM_TEST_INSTANCE_CREATION+", State: "+state);
participants (1)
-
ygregoï¼ users.nuiton.org