Package org.apache.cayenne.configuration.mock

Examples of org.apache.cayenne.configuration.mock.MockDataSourceFactory


                        return new MockDbAdapter();
                    }
                });

                binder.bind(DataSourceFactory.class).toInstance(
                        new MockDataSourceFactory());
                binder.bind(AdhocObjectFactory.class).to(DefaultAdhocObjectFactory.class);
            }
        };

        Injector injector = DIBootstrap.createInjector(testModule);
View Full Code Here


                        return mockAdapter;
                    }
                });

                binder.bind(DataSourceFactory.class).toInstance(
                        new MockDataSourceFactory());
                binder.bind(AdhocObjectFactory.class).to(DefaultAdhocObjectFactory.class);
                binder.bind(JdbcEventLogger.class).to(CommonsJdbcEventLogger.class);
                binder.bind(QueryCache.class).toInstance(mock(QueryCache.class));
            }
        };
View Full Code Here

                binder.bind(RuntimeProperties.class).to(DefaultRuntimeProperties.class);
                binder.bind(BatchQueryBuilderFactory.class).to(
                        DefaultBatchQueryBuilderFactory.class);

                binder.bind(DataSourceFactory.class).toInstance(
                        new MockDataSourceFactory());
                binder.bind(AdhocObjectFactory.class).to(DefaultAdhocObjectFactory.class);
                binder.bind(JdbcEventLogger.class).to(CommonsJdbcEventLogger.class);
                binder.bind(QueryCache.class).toInstance(mock(QueryCache.class));
            }
        };
View Full Code Here

                binder.bind(RuntimeProperties.class).to(DefaultRuntimeProperties.class);
                binder.bind(BatchQueryBuilderFactory.class).to(
                        DefaultBatchQueryBuilderFactory.class);

                binder.bind(DataSourceFactory.class).toInstance(
                        new MockDataSourceFactory());
                binder.bind(AdhocObjectFactory.class).to(DefaultAdhocObjectFactory.class);
                binder.bind(JdbcEventLogger.class).to(CommonsJdbcEventLogger.class);
                binder.bind(QueryCache.class).toInstance(mock(QueryCache.class));
            }
        };
View Full Code Here

TOP

Related Classes of org.apache.cayenne.configuration.mock.MockDataSourceFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.