148149150151152153154155156157158
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);
191192193194195196197198199200201
/** * @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;
9596979899100101102103104105
/** * @return */ private static List<Post> createPosts() { Author a = new Author(); a.name = "作者"; a.birthDate = new Date(); a.gender = 'm'; final Post p = new Post();
116117118119120121122123124125126
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();