use of org.jboss.tools.hibernate.runtime.common.AbstractDatabaseCollectorFacade in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractDatabaseCollectorFacade in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractDatabaseCollectorFacade in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractDatabaseCollectorFacade in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
use of org.jboss.tools.hibernate.runtime.common.AbstractDatabaseCollectorFacade in project jbosstools-hibernate by jbosstools.
the class DatabaseCollectorFacadeTest method setUp.
@Before
public void setUp() throws Exception {
databaseCollector = new DefaultDatabaseCollector(new JDBCMetaDataDialect()) {
@Override
public Iterator<Entry<String, List<Table>>> getQualifierEntries() {
methodName = "getQualifierEntries";
HashMap<String, List<Table>> map = new HashMap<String, List<Table>>();
ArrayList<Table> list = new ArrayList<Table>();
list.add(new Table("foo"));
list.add(new Table("bar"));
map.put("one", list);
list = new ArrayList<Table>();
list.add(new Table("fubar"));
map.put("two", list);
return map.entrySet().iterator();
}
};
databaseCollectorFacade = new AbstractDatabaseCollectorFacade(FACADE_FACTORY, databaseCollector) {
};
}
Aggregations