有人可以指出一些Junit或Arquillain测试示例,以测试为数据源定义@Produces的类:要测试的Camel项目中的类示例
/*
* Inject the datasource defined in Fuse's standalone-*.xml file.
*/
@Resource(lookup = "java:jboss/datasources/fang")
private DataSource fangDataSource;
@Produces
@Named("fangDataSource")
public DataSource getDataSourceFang() {
return fangDataSource;
}