public static void main(String[] args) {
BookDaoImpl dao = new BookDaoImpl();
Book book = new Book();
book.setBook_name("面纱");
book.setAuthor("毛姆");
book.setPrice(new BigDecimal(69.9));
book.setLanguage("中文");
Calendar calendar = Calendar.getInstance();
calendar.set(1977,4,6);
book.setPubdate(calendar.getTime());
book.setIntroduction("一个神秘的故事");
book.setIsbn("xxxx821xxxx");
book.setPressmark("4-3-07");
book.setPublish("清华出版社");
dao.saveBook(book);
}
@Test
void testsaveBook() {
BookDaoImpl dao = new BookDaoImpl();
Book book = new Book();
book.setBook_name("面纱");
book.setAuthor("毛姆");
book.setPrice(new BigDecimal(69.9));
book.setLanguage("中文");
Calendar calendar = Calendar.getInstance();
calendar.set(1977,4,6);
book.setPubdate(calendar.getTime());
book.setIntroduction("一个神秘的故事");
book.setIsbn("xxxx821xxxx");
book.setPressmark("4-3-07");
book.setPublish("清华出版社");
dao.saveBook(book);
}
好痛苦,两天了555