²âÊÔjava ¿ªÔ´µÄ²âÊÔ¹¤¾ß
2009-12-01 12:06:43
JUnit
JUnitÊÇÓÉ Erich Gamma ºÍ Kent Beck ±àдµÄÒ»¸ö»Ø¹é²âÊÔ¿ò¼Ü£¨regression testing framework£©¡£Junit²âÊÔÊdzÌÐòÔ±²âÊÔ£¬¼´Ëùν°×ºÐ²âÊÔ£¬ÒòΪ³ÌÐòÔ±ÖªµÀ±»²âÊÔµÄÈí¼þÈçºÎ£¨How£©Íê³É¹¦ÄܺÍÍê³ÉʲôÑù£¨What£©µÄ¹¦ÄÜ¡£JunitÊÇÒ»Ì׿ò¼Ü£¬¼Ì³ÐTestCaseÀ࣬¾Í¿ÉÒÔÓÃJunit½øÐÐ×Ô¶¯²âÊÔÁË¡£
Cactus
CactusÊÇÒ»¸ö»ùÓÚJUnit¿ò¼ÜµÄ¼òµ¥²âÊÔ¿ò¼Ü£¬ÓÃÀ´µ¥Ôª²âÊÔ·þÎñ¶ËJava´úÂë¡£Cactus¿ò¼ÜµÄÖ÷ҪĿ±êÊÇÄܹ»µ¥Ôª²âÊÔ·þÎñ¶ËµÄʹÓÃServlet¶ÔÏóµÄJava·½·¨ÈçHttpServletRequest,HttpServletResponse,HttpSessionµÈ
Abbot
AbbotÊÇÒ»¸öÓÃÀ´²âÊÔJava GUIsµÄ¿ò¼Ü¡£Óüòµ¥µÄ»ùÓÚXMLµÄ½Å±¾»òÕßJava´úÂ룬Äã¾Í¿ÉÒÔ¿ªÊ¼Ò»¸öGUI¡£
JUnitPerf
Junitperfʵ¼ÊÊÇjunitµÄÒ»¸ödecorator£¬Í¨¹ý±àдÓÃÓÚjunitperfµÄµ¥Ôª²âÊÔ£¬ÎÒÃÇÒ²¿Éʹ²âÊÔ¹ý³Ì×Ô¶¯»¯¡£
DbUnit
DbUnitÊÇΪÊý¾Ý¿âÇý¶¯µÄÏîÄ¿ÌṩµÄÒ»¸ö¶ÔJUnit µÄÀ©Õ¹£¬³ýÁËÌṩһЩ³£Óù¦ÄÜ£¬Ëü¿ÉÒÔ½«ÄãµÄÊý¾Ý¿âÖÃÓÚÒ»¸ö²âÊÔÂÖ»ØÖ®¼äµÄ״̬¡£
Mockrunner
MockrunnerÓÃÔÚJ2EE»·¾³ÖнøÐÐÓ¦ÓóÌÐòµÄµ¥Ôª²âÊÔ¡£Ëü²»½öÖ§³ÖStruts actions, servlets£¬¹ýÂËÆ÷ºÍ±êÇ©À໹°üÀ¨Ò»¸öJDBCºÍÒ»¸öJMS²âÊÔ¿ò¼Ü£¬¿ÉÒÔÓÃÓÚ²âÊÔ»ùÓÚEJBµÄÓ¦ÓóÌÐò¡£
DBMonster
DBMonsterÊÇÒ»¸öÓÃÉú³ÉËæ»úÊý¾ÝÀ´²âÊÔSQLÊý¾Ý¿âµÄѹÁ¦²âÊÔ¹¤¾ß¡£
MockEJB
MockEJBÊÇÒ»¸ö²»ÐèÒªEJBÈÝÆ÷¾ÍÄÜÔËÐÐEJB²¢½øÐвâÊÔµÄÇáÁ¿¼¶¿ò¼Ü¡£
StrutsTestCase
StrutsTestCase ÊÇJunit TestCaseÀàµÄÀ©Õ¹£¬Ìṩ»ùÓÚStruts¿ò¼ÜµÄ´úÂë²âÊÔ¡£StrutsTestCaseͬʱÌṩMock ¶ÔÏó·½·¨ºÍCactus·½·¨ÓÃÀ´Êµ¼ÊÔËÐÐStruts ActionServlet£¬Äã¿ÉÒÔͨ¹ýÔËÐÐservletÒýÇæÀ´²âÊÔ¡£ÒòΪStrutsTestCaseʹÓÃActionServlet¿ØÖÆÆ÷À´²âÊÔÄãµÄ´úÂ룬Òò´ËÄã²»½ö¿ÉÒÔ²âÊÔAction¶ÔÏóµÄʵÏÖ£¬¶øÇÒ¿ÉÒÔ²âÊÔmappings£¬from beansÒÔ¼°forwardsÉùÃ÷¡£StrutsTestCase²»Æô¶¯servletÈÝÆ÷À´²âÊÔstrutsÓ¦ÓóÌÐò£¨ÈÝÆ÷Íâ²âÊÔ£©Ò²ÊôÓÚMock¶ÔÏó²âÊÔ£¬µ«ÊÇÓëEasyMock²»Í¬µÄÊÇ£¬EasyMockÊÇÌṩÁË´´½¨Mock¶ÔÏóµÄAPI£¬¶øStrutsTestÔòÊÇרߺÔð²âÊÔStrutsÓ¦ÓóÌÐòµÄMock¶ÔÏó²âÊÔ¿ò¼Ü¡£
JFCUnit
JFCUnitʹµÃÄãÄܹ»ÎªJavaÆ«ÒÆÓ¦ÓóÌÐò±àд²âÊÔÀý×Ó¡£ËüΪ´ÓÓôúÂë´ò¿ªµÄ´°¿ÚÉÏ»ñµÃ¾ä±úÌṩÁËÖ§³Ö£»ÎªÔÚÒ»¸ö²¿¼þ²ã´Î¶¨Î»²¿¼þÌṩ֧³Ö£»ÎªÔÚ²¿¼þÖз¢Æðʼþ£¨ÀýÈç°´Ò»¸ö°´Å¥£©ÒÔ¼
Ïà¹ØÎĵµ£º
´úÂë±àд¹æ·¶Ä¿µÄ£ºÄܹ»ÔÚ±àÂë¹ý³ÌÖÐʵÏֹ淶»¯£¬ÎªÒÔºóµÄ³ÌÐò¿ª·¢ÖÐÑø³ÉÁ¼ºÃµÄÐÐΪϰ¹ß¡£
´úÂë±àд¹æ·¶Ê¹Ó÷¶Î§£ºJ2EEÏîÄ¿¿ª·¢¡£
°üÃüÃû¹æ·¶£º
Ä¿µÄ£º°üµÄÃüÃû¹æ·¶Ó¦µ±ÌåÏÖ³öÏîÄ¿×ÊÔ´Á¼ºÃµÄ»®·Ö
servletÀàËùÔÚ°üÃüÃû¹æ·¶£º¹«Ë¾Ãû³Æ.¿ª·¢×éÃû³Æ.ÏîÄ¿Ãû³Æ.web.servlet
ÀýÈ磺net.linkcn.web.servlet
×Ô¶¨Òå± ......
ÔÚÉÐѧÌÃѧÍêjavaÈÃÎÒÇáËɸ㶨¹¤×÷
¡¾Ñ§Ô±¹ÊÊ¡¿À´×ÔÉÐѧÌÃÕæÈËÕæÊ &n ......
class Node
{
private Object obj;
private Node next;
//ÓÃÊý¾ÝÓò¹¹ÔìÒ»¸ö½Úµã¶ÔÏó
public Node(Object obj)
{
this.obj=obj;
}
//·µ»ØÏÂÒ»½ÚµãµÄ¶ÔÏó
public Node getNext()
{
return this.next;
}
//ÉèÖñ¾½ÚµãµÄÁ´Óò
public void setNext(Node next)
{
this.next=next;
}
//·µ»Ø½ÚµãµÄÊý ......
JavaÏ̵߳÷¶ÈÊÇJava¶àÏ̵߳ĺËÐÄ£¬Ö»ÓÐÁ¼ºÃµÄµ÷¶È£¬²ÅÄܳä·Ö·¢»ÓϵͳµÄÐÔÄÜ£¬Ìá¸ß³ÌÐòµÄÖ´ÐÐЧÂÊ¡£
ÕâÀïÒªÃ÷È·µÄÒ»µã£¬²»¹Ü³ÌÐòÔ±Ôõô±àдµ÷¶È£¬Ö»ÄÜ×î´óÏ޶ȵÄÓ°ÏìÏß³ÌÖ´ÐеĴÎÐò£¬¶ø²»ÄÜ×öµ½¾«×¼¿ØÖÆ¡£
Ïß³ÌÐÝÃßµÄÄ¿µÄÊÇʹÏß³ÌÈóöCPUµÄ×î¼òµ¥µÄ×ö·¨Ö®Ò»£¬Ïß³ÌÐÝÃßʱºò£¬»á½«CPU×ÊÔ´½»¸øÆäËûỊ̈߳¬ÒÔ±ã ......
Java AppletÓëJava ApplicationµÄÇø±ð
ÔÚJavaÓïÑÔÖУ¬Äܹ»¶ÀÁ¢ÔËÐеijÌÐò³ÆΪJavaÓ¦ÓóÌÐò£¨Application£©¡£JavaÓïÑÔ»¹ÓÐÁíÍâÒ»ÖÖ³ÌÐò——Applet³ÌÐò¡£Applet³ÌÐò£¨Ò²³ÆJavaС³ÌÐò£©ÊÇÔËÐÐÓÚ¸÷ÖÖÍøÒ³ÎļþÖУ¬ÓÃÓÚÔöÇ¿ÍøÒ³µÄÈË»ú½»»¥¡¢¶¯»ÏÔʾ¡¢ÉùÒô²¥·ÅµÈ¹¦ÄܵijÌÐò¡£
Java Appletº ......