fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6923] Changes to test


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6923] Changes to test
Date: Thu, 03 Feb 2011 19:27:57 +0000

Revision: 6923
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6923
Author:   peturbjorn
Date:     2011-02-03 19:27:57 +0000 (Thu, 03 Feb 2011)
Log Message:
-----------
Changes to test

Modified Paths:
--------------
    branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php

Modified: branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php
===================================================================
--- branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php   
2011-02-03 19:27:10 UTC (rev 6922)
+++ branches/dev-bim2/property/tests/BIM/TestSObim_converter_solo.php   
2011-02-03 19:27:57 UTC (rev 6923)
@@ -103,14 +103,16 @@
        public function testGet() {
                
                $rest = new RestRequest();
-               
$rest->setUrl("http://localhost:8080/BIM_Facility_Management/rest/uploadIfc";);
+               $rest->setUrl("http://localhost:8080/bm/rest/uploadIfc";);
                $rest->setAcceptType("text/html");
                $rest->execute();
-               echo $rest->getResponseBody() ."\n";
+               $body = $rest->getResponseBody();
+               echo "Response Body:$body\n";
+               $this->assertTrue(strlen(strstr($body, "You have accept type")) 
> 0);
        }
        public function testRestRequestPost() {
                
-               $url = 
"http://localhost:8080/BIM_Facility_Management/rest/tests/testPut";;
+               $url = "http://localhost:8080/bm/rest/tests/testPut";;
                $verb = "POST";
                $data = array (
                        'file'=>'@'.$this->testingFileWithPath
@@ -190,6 +192,7 @@
        public function testgetFacilityManagementXmlWithValidIfc() {
                $sobim_converter = new sobim_converter_impl();
                $sobim_converter->setFileToSend($this->validIfcFileWithPath);
+               $sobim_converter->setBaseUrl("http://localhost:8080/bm/rest/";);
                try {
                        $returnedXml =  
$sobim_converter->getFacilityManagementXml();
                        $sxe = simplexml_load_string($returnedXml);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]