前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
import java.io.IOException; import java.sql.SQLException; import org.junit.Before; import org.junit.Test; import com.szy.web.dao.NewsDAO; /** * */ public class NewsDAOTest { NewsDAO newsDAO; @Before public void init() throws IOException, ClassNotFoundException { newsDAO = new NewsDAO(); } @Test public void testGetNews() throws SQLException { } @Test public void testGetFontNews() throws SQLException { } @Test public void testGetDetails() throws SQLException { } }