979899100101102103104105106107
/** * @return */ private static List<Post> createPosts() { Author a = new Author(); a.name = "作者"; a.birthDate = new Date(); a.gender = 'm'; final Post p = new Post();
118119120121122123124125126127128
return posts; } @Test public void simleRun() throws UnsupportedEncodingException { Author a = new Author(); a.name = "作者"; a.birthDate = new Date(); a.gender = 'm'; final Post p = new Post();
134135136137138139140141142143144
* */ public static void renderByPosition() { String s = "hello,renderByPosition!"; int i = 100; Author a = new Author(); a.name = "author1"; Author2 a2 = new Author2(); a2.name = "author2";
156157158159160161162163164165166
Post post = new Post(); post.title = "test post"; post.postedAt = new Date(); post.content = "this is perfect piece of content~!"; Author a = new Author(); a.name = "me"; a.birthDate = new Date(); a.gender = 'm'; post.setAuthor(a);
212213214215216217218219220221222
/** * @return */ private static List<Post> createPosts() { List<Post> posts = new ArrayList<Post>(); Author a = new Author(); a.name = "冉兵"; a.birthDate = new Date(); a.gender = 'M'; Post p = new Post(); p.author = a;
141142143144145146147148149150151
163164165166167168169170171172173
207208209210211212213214215216217
389390391392393394395396397398399
public static void js() { renderJapid(); } public static void japider() { models.japidsample.Author a = new Author(); a.name = "me, myself and I, 我就我自己"; a.birthDate = new Date(); a.gender = 'M'; a.publisher = "People's Daily"; renderJapid(a);
126127128129130131132133134135136