本文整理匯總了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