Commit c4f2b39befad6bd577967313c0d98f1a51df634e

Authored by Conrad Vermeulen
1 parent 3e48f102

WSA-76

"Update unit tests for document detail in web service"
Updated. Reinstating some tests
 

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7862 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwebservice/nunit/document_detail.cs
@@ -108,7 +108,7 @@ namespace MonoTests.KnowledgeTree @@ -108,7 +108,7 @@ namespace MonoTests.KnowledgeTree
108 Assert.AreEqual(null, response.transitions); 108 Assert.AreEqual(null, response.transitions);
109 } 109 }
110 110
111 - //[Test] 111 + [Test]
112 public void GetDetailByTitleTest() 112 public void GetDetailByTitleTest()
113 { 113 {
114 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt unit test1", "T",""); 114 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt unit test1", "T","");
@@ -118,7 +118,7 @@ namespace MonoTests.KnowledgeTree @@ -118,7 +118,7 @@ namespace MonoTests.KnowledgeTree
118 } 118 }
119 119
120 120
121 - //[Test] 121 + [Test]
122 public void GetDetailByTitle2Test() 122 public void GetDetailByTitle2Test()
123 { 123 {
124 kt_document_detail response = this._kt.get_document_detail_by_title(this._session, 1, "Root Folder/kt unit test1", ""); 124 kt_document_detail response = this._kt.get_document_detail_by_title(this._session, 1, "Root Folder/kt unit test1", "");
@@ -127,7 +127,7 @@ namespace MonoTests.KnowledgeTree @@ -127,7 +127,7 @@ namespace MonoTests.KnowledgeTree
127 Assert.AreEqual(this._docId, response.document_id); 127 Assert.AreEqual(this._docId, response.document_id);
128 } 128 }
129 129
130 - //[Test] 130 + [Test]
131 public void GetDetailByFileTest() 131 public void GetDetailByFileTest()
132 { 132 {
133 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt_unit_test1.txt", "F",""); 133 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt_unit_test1.txt", "F","");
@@ -135,7 +135,7 @@ namespace MonoTests.KnowledgeTree @@ -135,7 +135,7 @@ namespace MonoTests.KnowledgeTree
135 Assert.AreEqual(0, response.status_code); 135 Assert.AreEqual(0, response.status_code);
136 Assert.AreEqual(this._docId, response.document_id); 136 Assert.AreEqual(this._docId, response.document_id);
137 } 137 }
138 - //[Test] 138 + [Test]
139 public void GetDetailByFile2Test() 139 public void GetDetailByFile2Test()
140 { 140 {
141 kt_document_detail response = this._kt.get_document_detail_by_filename(this._session, 1, "Root Folder/kt_unit_test1.txt", ""); 141 kt_document_detail response = this._kt.get_document_detail_by_filename(this._session, 1, "Root Folder/kt_unit_test1.txt", "");
@@ -144,7 +144,7 @@ namespace MonoTests.KnowledgeTree @@ -144,7 +144,7 @@ namespace MonoTests.KnowledgeTree
144 Assert.AreEqual(this._docId, response.document_id); 144 Assert.AreEqual(this._docId, response.document_id);
145 } 145 }
146 146
147 - //[Test] 147 + [Test]
148 public void GetDetailByUnknownNameTest() 148 public void GetDetailByUnknownNameTest()
149 { 149 {
150 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt_unit_test1.ssssdasdasd", "F",""); 150 kt_document_detail response = this._kt.get_document_detail_by_name(this._session, 1, "Root Folder/kt_unit_test1.ssssdasdasd", "F","");