📄 addbooktest.java
字号:
package test.com.sterning.book.web;
import org.junit.After;
import org.junit.Before;
import test.com.sterning.book.BaseTest;
public class AddBookTest extends BaseTest {
/*
private bookAction action;
@Before
public void setUp() throws Exception {
super.onSetUp();
action = (bookAction) this.applicationContext.getBean("bookAction");
}
@After
public void tearDown() throws Exception {
super.onTearDown();
action = null;
}
public void testsave() throws Exception {
Book book = new Book();
book.setPassword("password");
book.setUsername("admin");
action.setUser(book);
assertEquals(action.execute(), action.SUCCESS);
}
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -