本文整理汇总了Java中com.googlecode.guice.PackageVisibilityTestModule.PublicUserOfPackagePrivate类的典型用法代码示例。如果您正苦于以下问题:Java PublicUserOfPackagePrivate类的具体用法?Java PublicUserOfPackagePrivate怎么用?Java PublicUserOfPackagePrivate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PublicUserOfPackagePrivate类属于com.googlecode.guice.PackageVisibilityTestModule包,在下文中一共展示了PublicUserOfPackagePrivate类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEnhancerNaming
import com.googlecode.guice.PackageVisibilityTestModule.PublicUserOfPackagePrivate; //导入依赖的package包/类
public void testEnhancerNaming() {
Injector injector = Guice.createInjector(interceptorModule, new PackageVisibilityTestModule());
PublicUserOfPackagePrivate pupp = injector.getInstance(PublicUserOfPackagePrivate.class);
assertTrue(
pupp.getClass()
.getName()
.startsWith(PublicUserOfPackagePrivate.class.getName() + "$$EnhancerByGuice$$"));
}
示例2: testPackageVisibility
import com.googlecode.guice.PackageVisibilityTestModule.PublicUserOfPackagePrivate; //导入依赖的package包/类
public void testPackageVisibility() {
Injector injector = Guice.createInjector(new PackageVisibilityTestModule());
injector.getInstance(PublicUserOfPackagePrivate.class); // This must pass.
}
示例3: testInterceptedPackageVisibility
import com.googlecode.guice.PackageVisibilityTestModule.PublicUserOfPackagePrivate; //导入依赖的package包/类
public void testInterceptedPackageVisibility() {
Injector injector = Guice.createInjector(interceptorModule, new PackageVisibilityTestModule());
injector.getInstance(PublicUserOfPackagePrivate.class); // This must pass.
}
示例4: testEnhancerNaming
import com.googlecode.guice.PackageVisibilityTestModule.PublicUserOfPackagePrivate; //导入依赖的package包/类
public void testEnhancerNaming() {
Injector injector = Guice.createInjector(interceptorModule, new PackageVisibilityTestModule());
PublicUserOfPackagePrivate pupp = injector.getInstance(PublicUserOfPackagePrivate.class);
assertTrue(pupp.getClass().getName().startsWith(
PublicUserOfPackagePrivate.class.getName() + "$$EnhancerByGuice$$"));
}