Agile Java ѧϰ±Ê¼Ç£¨¶þ£© Æð²½
ÓÉÓÚÓÐÒ»¶¨µÄJavaºÍJUnitµÄ»ù´¡£¬ËùÒԸоõµÚÒ»¿Î±È½Ï¼òµ¥£¬µ«ÊÕ»ñ»¹ÊÇÓе쬱ÈÈçËµÖØ¹¹²¿·Ö½éÉܵÄÄÚÈÝ¡£
JUnitÒªµã£º
²âÊÔ·½·¨µÄÃüÃû¹æÔò£º
l ·½·¨±ØÐëÉùÃ÷Ϊpublic
l ·½·¨µÄ·µ»ØÖµ±ØÐëΪvoid
l ·½·¨µÄÃû×Ö±ØÐëÒÔСдµÄtestΪǰ׺
l ·½·¨²»ÄܽÓÊÜÈκβÎÊý
ÖØ¹¹Òªµã£º
1. ±£Ö¤ÔÚϵͳÖÐûÓÐÖØ¸´µÄ´úÂë
2. ±£Ö¤´úÂëÊǸɾ»µÄ£¬²¢ÇÒ¸»ÓбíÏÖÁ¦£¬¿ÉÒÔÇåÎúµØÌåÏÖ³ÌÐòÔ±µÄÒâͼ
ÖØ¹¹²¿·ÖÖ÷Òª½²ÁËÁ½µã£º1. Çå³ý²»±ØÒªµÄ±äÁ¿¡£ 2. ²»ÄÜÓÐÖØ¸´´úÂë¡£
±ÈÈç˵³öÏÖ¶à´ÎµÄÒ»¸ö×Ö·û´®¿ÉÒÔÓÃÒ»¸öfinalµÄ¾Ö²¿±äÁ¿À´Ìæ´ú¡£
ÁíÍ⣬ÏÈд²âÊÔ¡£
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
×÷Ϊ¶ÔÏóµÄ´´½¨Ä£Ê½,µ¥Àýģʽȷ±£Ä³¸öÀàÖ»ÓÐÒ»¸öʵÀý£¬¶øÇÒ×ÔÐÐʵÀý»¯²¢ÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£Õâ¸öÀà³ÆÎªµ¥ÀýÀà¡£Óɶ¨Òå¿ÉÒÔ×ܽá³öµ¥ÀýģʽµÄÒªµãÓÐÈý¸ö£ºÒ»Êǵ¥ÀýÀàÖ»ÄÜÓÐÒ»¸öʵÀý£»¶þÊÇËü±ØÐë×ÔÐд´½¨Õâ¸öʵÀý£»ÈýÊÇËü±ØÐë×ÔÐÐÏòÕû¸öϵͳÌṩÕâ¸öʵÀý¡£
ÔÚ¼ÆËã»úϵͳÖУ¬Ï̳߳ء¢»º´æ¡¢ÈÕÖ ......
µÚÒ»´Î³¢ÊÔдѧϰ±Ê¼Ç£¬ÒòΪ¾õµÃÒÔǰѧ¹ýµÄ¶«Î÷³¤Ê±¼ä²»ÓþͶ¼ÍüÁË¡£Ò²²»ÖªµÀÕâÑù×öÖµ²»ÖµµÃ£¬ÒòΪ±Ï¾¹Ð´Ñ§Ï°±Ê¼Ç»á»¨·ÑÒ»¶¨µÄʱ¼ä£¬¶ÔÓÚÒ»¸öÈí¼þ¹¤³ÌרҵµÄ´óÈýѧÉúÀ´Ëµ£¬¿Î³Ì·±ÖØÊÇÖÚËùÖÜÖªµÄ¡£¶øÇÒÎÒµÄÎıÊÓÖ²»ºÃ£¬Ê±³£Ð´×ÅдמͲ»ÖªµÀ¸ÃÕâôдÁË£¬ÊôÓÚÄÇÖÖÐÄÖª¶ÇÃ÷¾ÍÊÇ˵²»³öÀ´µÄÀàÐÍ¡£²»¹ý£ ......
package demo1;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import ......