コード例 #1
0
 @Test
 public void getDatasourceTemplateNames() throws Exception {
   Set<String> vals =
       new HashSet<String>(
           Arrays.asList(
               new String[] {
                 "teiid-local",
                 "google",
                 "teiid",
                 "ldap",
                 "accumulo",
                 "infinispan",
                 "file",
                 "cassandra",
                 "salesforce",
                 "mongodb",
                 "solr",
                 "webservice",
                 "simpledb",
                 "h2"
               }));
   deployVdb();
   Set<String> templates = admin.getDataSourceTemplateNames();
   assertEquals(vals, templates);
 }