当前位置: 首页>>代码示例>>Java>>正文


Java Formatters类代码示例

本文整理汇总了Java中org.jboss.shrinkwrap.api.formatter.Formatters的典型用法代码示例。如果您正苦于以下问题:Java Formatters类的具体用法?Java Formatters怎么用?Java Formatters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Formatters类属于org.jboss.shrinkwrap.api.formatter包,在下文中一共展示了Formatters类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的org.jboss.shrinkwrap.api.formatter.Formatters类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。