@@ -1207,6 +1207,13 @@ public void testMapper() throws IOException, XPathExpressionException {
12071207 }
12081208 @ Test
12091209 public void testColumnInfo () throws IOException {
1210+ String expected =
1211+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" lastName\" , \" type\" :\" string\" , \" nullable\" :false}\n " +
1212+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" firstName\" , \" type\" :\" string\" , \" nullable\" :false}\n " +
1213+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" dob\" , \" type\" :\" date\" , \" nullable\" :false}\n " +
1214+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" rowid\" , \" type\" :\" rowid\" , \" nullable\" :false}\n " +
1215+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" __docid\" , \" type\" :\" fraghint\" , \" nullable\" :false}\n " +
1216+ "{\" schema\" :\" opticUnitTest\" , \" view\" :\" musician\" , \" column\" :\" __content\" , \" type\" :\" value\" , \" nullable\" :false}" ;
12101217 RowManager rowMgr = Common .client .newRowManager ();
12111218
12121219 PlanBuilder p = rowMgr .newPlanBuilder ();
@@ -1223,8 +1230,10 @@ public void testColumnInfo() throws IOException {
12231230
12241231 String result = rowMgr .columnInfo (builtPlan , new StringHandle ()).get ();
12251232 assertNotNull (result );
1233+ assertEquals (result , expected );
12261234 result = rowMgr .columnInfoAs (builtPlan , String .class );
12271235 assertNotNull (result );
1236+ assertEquals (result , expected );
12281237 }
12291238 @ Test
12301239 public void testGenerateView () throws IOException {
0 commit comments