本文整理汇总了Java中org.jboss.shrinkwrap.api.spec.JavaArchive.addClass方法的典型用法代码示例。如果您正苦于以下问题:Java JavaArchive.addClass方法的具体用法?Java JavaArchive.addClass怎么用?Java JavaArchive.addClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.shrinkwrap.api.spec.JavaArchive
的用法示例。
在下文中一共展示了JavaArchive.addClass方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "readuncommitted-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/readuncommitted-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:ReadUncommittedTestCase.java
示例2: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "repeatableread-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/repeatableread-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:RepeatableReadTestCase.java
示例3: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "models-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addPackage(NoConcurrentWriteAccount.class.getPackage());
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/persistence-test.xml")),
"persistence.xml");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:12,代码来源:ModelsTestCase.java
示例4: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "serializable-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/serializable-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:SerializableTestCase.java
示例5: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "readcommitted-test.jar");
jar.addPackage(MyCallableTask.class.getPackage());
jar.addClass(Account.class);
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/isolations/readcommitted-test.xml")),
"persistence.xml");
jar.addAsResource(new FileAsset(new File("src/test/resources/store.import.sql")), "store.import.sql");
jar.addAsManifestResource(new FileAsset(new File("src/test/resources/META-INF/MANIFEST.MF")), "MANIFEST.MF");
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:13,代码来源:ReadCommittedTestCase.java
示例6: createJavaDeployment
import org.jboss.shrinkwrap.api.spec.JavaArchive; //导入方法依赖的package包/类
@Deployment
public static JavaArchive createJavaDeployment() {
final JavaArchive jar = create(JavaArchive.class, "concurrent-test.jar");
jar.addClass(MyCallableTask.class);
jar.addClass(MyTaskWithTransaction.class);
jar.addClass(Product.class);
jar.addClass(MyTransactionScopedBean.class);
jar.addClass(ConcurrentStatus.class);
jar.addAsManifestResource(INSTANCE, "beans.xml");
return jar;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:12,代码来源:ConcurrentTestCase.java