本文整理汇总了Java中org.jboss.shrinkwrap.api.formatter.Formatters类的典型用法代码示例。如果您正苦于以下问题:Java Formatters类的具体用法?Java Formatters怎么用?Java Formatters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Formatters类属于org.jboss.shrinkwrap.api.formatter包,在下文中一共展示了Formatters类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment(testable = true)
public static WebArchive createDeployment() {
WebArchive webarchive = ShrinkWrap.create(WebArchive.class, "test.war")
.addClass(BaseEntity.class)
.addClass(AlbumService.class)
.addClass(Album.class)
.addClass(Song.class)
.addClass(Interpret.class)
.addClass(CrudService.class)
.addClass(FileUtils.class)
.addClass(AuthenticatedWithRoleUser.class)
.addClass(AlbumFixture.class)
.addClass(SearchService.class)
.addClass(SearchResultEntity.class)
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource("mymusictest-ds.xml")
;
System.out.println(webarchive.toString(Formatters.VERBOSE));
return webarchive;
}
开发者ID:thi-enterprisejava,项目名称:music-albums-obermueller,代码行数:22,代码来源:SearchServiceIntegrationTest.java
示例2: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment(testable = true)
public static WebArchive createDeployment() {
WebArchive webarchive = ShrinkWrap.create(WebArchive.class, "test.war")
.addClass(BaseEntity.class)
.addClass(AlbumService.class)
.addClass(Album.class)
.addClass(Song.class)
.addClass(Interpret.class)
.addClass(CrudService.class)
.addClass(FileUtils.class)
.addClass(AuthenticatedWithRoleAdmin.class)
.addClass(AuthenticatedWithRoleUser.class)
.addClass(AlbumFixture.class)
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource("mymusictest-ds.xml")
;
System.out.println(webarchive.toString(Formatters.VERBOSE));
return webarchive;
}
开发者ID:thi-enterprisejava,项目名称:music-albums-obermueller,代码行数:21,代码来源:AlbumServiceIntegrationTest.java
示例3: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment(testable = true)
public static WebArchive createDeployment() {
WebArchive webarchive = ShrinkWrap.create(WebArchive.class, "test.war")
.addClass(BaseEntity.class)
.addClass(UserService.class)
.addClass(User.class)
.addClass(UserRole.class)
.addClass(CrudService.class)
.addClass(UserFixture.class)
.addClass(AuthenticatedWithRoleAdmin.class)
.addClass(AuthenticatedWithRoleUser.class)
//.addAsWebInfResource(new File("src/main/webapp/WEB-INF/web.xml"), "web.xml")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource("mymusictest-ds.xml")
;
System.out.println(webarchive.toString(Formatters.VERBOSE));
return webarchive;
}
开发者ID:thi-enterprisejava,项目名称:music-albums-obermueller,代码行数:20,代码来源:UserServiceIntegrationTest.java
示例4: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "artistdao.war")
.addClass(ArtistDAO.class)
.addClass(ArtisttypeDAO.class)
.addClass(Dao.class)
.addPackage(Artist.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:18,代码来源:ArtistDAOTest.java
示例5: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "bookdao.war")
.addClass(BookDAO.class)
.addClass(JsonBook.class)
.addClass(Dao.class)
.addPackage(Book.class.getPackage())
.addClass(BookStats.class)
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:19,代码来源:BookDAOTest.java
示例6: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "genredao.war")
.addClass(GenreDAO.class)
.addClass(Dao.class)
.addPackage(Genre.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:GenreDAOTest.java
示例7: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "supportdao.war")
.addClass(SupportDAO.class)
.addClass(Dao.class)
.addPackage(Support.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:SupportDAOTest.java
示例8: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "langdao.war")
.addClass(LangDAO.class)
.addClass(Dao.class)
.addPackage(Lang.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:LangDAOTest.java
示例9: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "storygenredao.war")
.addClass(StorygenreDAO.class)
.addClass(Dao.class)
.addPackage(Storygenre.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:StorygenreDAOTest.java
示例10: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "moviedao.war")
.addClass(MovieDAO.class)
.addClass(JsonMovie.class)
.addClass(Dao.class)
.addPackage(Movie.class.getPackage())
.addClass(MovieStats.class)
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:19,代码来源:MovieDAOTest.java
示例11: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "editordao.war")
.addClass(EditorDAO.class)
.addClass(Dao.class)
.addPackage(Editor.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:EditorDAOTest.java
示例12: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "trackdao.war")
.addClass(TrackDAO.class)
.addClass(AlbumDAO.class)
.addClass(JsonAlbum.class)
.addClass(Dao.class)
.addPackage(Track.class.getPackage())
.addClass(AlbumStats.class)
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:20,代码来源:TrackDAOTest.java
示例13: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "tvshowdao.war")
.addClass(TvshowDAO.class)
.addClass(JsonShow.class)
.addClass(Dao.class)
.addPackage(Tvshow.class.getPackage())
.addClass(SerieStats.class)
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:19,代码来源:TvshowDAOTest.java
示例14: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "databasedao.war")
.addClass(DatabaseDAO.class)
.addClass(Dao.class)
.addPackage(Database.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:DatabaseDAOTest.java
示例15: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "collectiondao.war")
.addClass(CollectionDAO.class)
.addClass(Dao.class)
.addPackage(Collection.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:CollectionDAOTest.java
示例16: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "albumdao.war")
.addClass(AlbumDAO.class)
.addPackage(JsonAlbum.class.getPackage())
.addClass(Dao.class)
.addPackage(Album.class.getPackage())
.addClass(AlbumStats.class)
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:19,代码来源:AlbumDAOTest.java
示例17: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive createDeployment() {
final WebArchive war = ShrinkWrap.create(WebArchive.class, "userdao.war")
.addClass(UserDAO.class)
.addClass(Dao.class)
.addPackage(User.class.getPackage())
.addAsResource("drop.sql", "drop.sql")
.addAsResource("create.sql", "create.sql")
.addAsResource("load.sql", "load.sql")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
LOGGER.info(war.toString(Formatters.VERBOSE));
return war;
}
开发者ID:msansm1,项目名称:medek-server,代码行数:17,代码来源:UserDAOTest.java
示例18: createDeployment
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static JavaArchive createDeployment() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "msi_test.jar");
jar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
jar.addClass(MessageType.class);
jar.addClass(MessageCategory.class);
jar.addClass(GeneralCategory.class);
jar.addClass(NoticeVerb.class);
jar.addClass(SpecificCategory.class);
jar.addClass(IEntity.class);
jar.addClass(BaseEntity.class);
jar.addClass(MessageService.class);
jar.addPackages(true, "dk.dma.enav.shore.msi.domain");
System.out.println(jar.toString(Formatters.VERBOSE));
return jar;
}
开发者ID:dma-enav,项目名称:EnavShore,代码行数:17,代码来源:MessageTestRemote.java
示例19: setup
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
@Deployment
public static WebArchive setup() {
WebArchive deployment = BaseArquillianSetup.createStandardDeployment(GuestDataImportBatchBeanIT.class.getPackage());
String dataCsv = AssetUtil
.getClassLoaderResourceName(GuestDataImportBatchBeanIT.class.getPackage(),
"integration-guest-data.csv");
deployment
.addAsResource("META-INF/batch-jobs/guest-import.xml")
.addAsResource(dataCsv, "META-INF/guest-data.csv");
LOGGER.info(deployment.toString(Formatters.VERBOSE));
return deployment;
}
开发者ID:koenighotze,项目名称:Hotel-Reservation-Tool,代码行数:16,代码来源:GuestDataImportBatchBeanIT.java
示例20: getResultingArchive
import org.jboss.shrinkwrap.api.formatter.Formatters; //导入依赖的package包/类
/**
* (non-Javadoc)
* @see
* org.jboss.shrinkwrap.resolver.spi.maven.archive.packaging.PackagingProcessor
* #getResultingArchive()
*/
@Override
public WebArchive getResultingArchive() {
log.trace("Resulting Archive:" + archive.toString(Formatters.VERBOSE));
return archive;
}
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:13,代码来源:LiferayWarPackagingProcessor.java
注:本文中的org.jboss.shrinkwrap.api.formatter.Formatters类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论