锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码成人网站久久精品大,亚洲一本之道高清乱码,老汉色老汉首页a亚洲http://m.tkk7.com/paulwong/category/50525.htmlzh-cnSun, 16 Jan 2022 12:01:39 GMTSun, 16 Jan 2022 12:01:39 GMT60鎴戠溂涓殑寮鍙戝拰嫻嬭瘯http://m.tkk7.com/paulwong/archive/2014/12/01/420891.htmlpaulwongpaulwongMon, 01 Dec 2014 12:55:00 GMThttp://m.tkk7.com/paulwong/archive/2014/12/01/420891.htmlhttp://m.tkk7.com/paulwong/comments/420891.htmlhttp://m.tkk7.com/paulwong/archive/2014/12/01/420891.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/420891.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/420891.html鎽樿錛氬湪IT琛屼笟錛屽紑鍙戝拰嫻嬭瘯涔嬮棿鐨勫叧緋諱竴鐩存槸涓涓ぇ瀹舵觸媧ヤ箰閬撶殑璇濋銆傞偅鍦ㄥ懆鍏嗙唺鐪間腑錛屽紑鍙戝拰嫻嬭瘯鏄粈涔堟牱鐨勶紵浠栬繘琛屼簡緇嗚嚧鐨勮鏄庯紝騫跺氨涓よ呯殑鍏崇郴緇欏嚭浜嗕竴浜涘緩璁?nbsp;
鍦↖T琛屼笟錛屽紑鍙戝拰嫻嬭瘯涔嬮棿鐨勫叧緋諱竴鐩存槸涓涓ぇ瀹舵觸媧ヤ箰閬撶殑璇濋銆傚湪鏁翠釜杞歡浜у搧鐨勭敓鍛藉懆鏈熶腑錛屽紑鍙戝拰嫻嬭瘯浜哄憳鎵鍋氱殑宸ヤ綔鍒嗗埆瀵瑰簲涓嶅悓鐨勯樁孌碉紝濡傚浘1鎵紺恒?nbsp;


鍥? 寮鍙戝拰嫻嬭瘯浜哄憳鐨勫垎宸?/div>
宸ヤ綔鍐呭 

浠庡浘1鍙互鐪嬪嚭錛屽紑鍙戝拰嫻嬭瘯鏄竴涓笂涓嬫父鐨勫叧緋匯?nbsp;

鍏蜂綋鑰岃█錛屽紑鍙戜漢鍛樹富瑕佸仛榪欏嚑浠朵簨鎯咃細 

絎竴錛屽杞歡闇姹傝鏄庝功榪涜璇︾粏璇勫錛屽紕娓呮瑕佸紑鍙戜竴涓粈涔堟牱鐨勮蔣浠躲?nbsp;

絎簩錛岀紪鍐欒蔣浠惰緇嗚璁°佸崟鍏冩祴璇曞拰闆嗘垚嫻嬭瘯瑙勭▼鏂囨。銆傝蔣浠惰緇嗚璁℃枃妗f槸鏈閲嶈鐨勬枃妗o紝鍦ㄩ噷闈紝瑕佸啓娓呮鑷繁紼嬪簭鐨勬祦紼嬨佸嚱鏁拌璁°佸紓甯鎬繚鎶よ冭檻絳夈傚湪鍔ㄦ墜鍐欑▼搴忎箣鍓嶏紝涓瀹氳灝嗚蔣浠惰緇嗚璁℃枃妗e啓濂斤紝絳夎瘎瀹¢氳繃浜嗗啀鍐欎唬鐮併?nbsp;

絎笁錛岀紪鍐欎唬鐮侊紝鐢ㄧ▼搴忓疄鐜拌蔣浠剁殑鍔熻兘銆傚緢澶氫漢璁や負鐨勮蔣浠跺紑鍙戝氨鏄啓浠g爜錛屽叾瀹炶繖鏄竴縐嶅緢鐙殬鐨勭悊瑙o紝鍐欎唬鐮佸湪鏁翠釜寮鍙戞祦紼嬩腑錛屽彧鍗犱簡寰堝皬鐨勯儴鍒嗐?nbsp;

絎洓錛岀▼搴忓啓濂戒箣鍚庯紝寮鍙戜漢鍛樿瀵瑰畠榪涜鍗曞厓嫻嬭瘯鍜岄泦鎴愭祴璇曚篃鍙紙鑷祴錛夛紝紜繚紼嬪簭鐨勬紜с傝繖閲屽氨鍑虹幇浜?#8220;嫻嬭瘯”浜屽瓧錛屼絾涓庤蔣浠舵祴璇曟墍鍋氱殑“嫻嬭瘯”鏄笉鍚岀殑錛屼粬浠仛鐨勬槸“緋葷粺嫻嬭瘯”銆傜瓑鑷祴閫氳繃涔嬪悗錛屽茍涓旂浉鍏蟲枃妗d篃鍐欏ソ涔嬪悗錛屽氨鍙互鎻愪氦紼嬪簭鐗堟湰錛屼緵嫻嬭瘯浜哄憳榪涜嫻嬭瘯浜嗐?nbsp;

鐩稿寮鍙戯紝嫻嬭瘯浜哄憳涓昏鍋氳繖鍑犱歡浜嬫儏錛?nbsp;

絎竴錛屽弬涓庤蔣浠墮渶姹傝鏄庝功鐨勮瘎瀹★紝瀵硅蔣浠惰瀹炵幇鐨勫姛鑳芥湁涓涓ぇ鑷寸殑浜嗚В銆?nbsp;

絎簩錛屾惌寤烘祴璇曠幆澧冦傝繖涓槸寰堥噸瑕佺殑錛屼篃鏄瘮杈冮毦鐨勪簨鎯呫備粈涔堟槸“嫻嬭瘯鐜”鍛紵灝辨槸璇達紝涓嶇浠涔堣蔣浠訛紝閮芥湁涓繍琛岀殑鏉′歡錛屽鎿嶄綔緋葷粺綾誨瀷銆佸弬鏁拌緗強閰嶅杞‖浠惰鏂界瓑錛岃繖浜涚粺縐頒負“鐜”銆備負浜嗕繚璇佺▼搴忓姛鑳界殑姝g‘鎬э紝瑕佸湪杞歡鍙戝竷涔嬪墠錛屽敖閲忔ā鎷熻蔣浠跺疄闄呯殑榪愯鐜錛岃繖灝辨槸鎼緩嫻嬭瘯鐜鏃惰鍋氱殑浜嬫儏銆傚緢澶氳蔣浠跺湪姝e紡鍟嗙敤涔嬪悗鍑洪棶棰橈紝灝辨槸嫻嬭瘯鐨勬椂鍊欐病鏈夎繕鍘熺幇鍦虹幆澧冩墍鑷淬?nbsp;

絎笁錛屽杞歡榪涜緋葷粺嫻嬭瘯騫惰緭鍑烘祴璇曟姤鍛娿傛墍璋撶郴緇熸祴璇曪紝灝辨槸鎸囧皢閰嶅鐨勬墍鏈夎蔣浠墮兘榪愯璧鋒潵錛岀湅涓涓嬫墍鏈夌殑鍔熻兘鏄惁姝e父銆傚綋鍑虹幇闂鐨勬椂鍊欙紝瑕佸強鏃跺拰寮鍙戜漢鍛樿仈緋伙紝浠ヤ慨姝h蔣浠剁己闄楓?nbsp;

絎洓錛屾寚瀵肩幇鍦轟漢鍛樺畨瑁呰蔣浠剁▼搴忥紝騫跺湪蹇呰鐨勬椂鍊欎翰鑷嚭宸埌鐜板満鍘誨畨瑁呰蔣浠躲傚洜姝わ紝嫻嬭瘯浜哄憳涔熷彲鑳戒細緇忓父鍑哄樊鐨勩?nbsp;

“涓夎凍榧庣珛” 

寮鍙戜漢鍛樼殑涓昏浠誨姟鏄敤紼嬪簭瀹屾垚杞歡闇姹傦紝鑰屾祴璇曚漢鍛樼殑涓昏浠誨姟鍒欐槸淇濊瘉紼嬪簭鍔熻兘鐨勬紜э紝浠栦滑鍋氫簨鐨勪緷鎹兘鏄渶姹傚紑鍙戝伐紼嬪笀緙栧啓鐨勯渶姹傝鏄庝功銆?nbsp;

鍦ㄥ疄闄呯殑杞歡寮鍙戦」鐩腑錛岄渶姹傚紑鍙戝伐紼嬪笀銆佽蔣浠跺紑鍙戝伐紼嬪笀鍜岃蔣浠舵祴璇曞伐紼嬪笀涔嬮棿鐨勪氦嫻佹槸寰堥綣佺殑錛屽鍥?鎵紺恒?nbsp;


鍥? 涓夌被瑙掕壊鐨?#8220;涓夎凍榧庣珛”

灝卞儚“涓夊浗鏃舵湡”鐨勯瓘铚鍚?#8220;涓夎凍榧庣珛”涓鏍鳳紝闇姹傚紑鍙戝伐紼嬪笀銆佽蔣浠跺紑鍙戝伐紼嬪笀鍜岃蔣浠舵祴璇曞伐紼嬪笀鎵绔欑殑绔嬪満涓嶅悓錛屽杞歡鐨勮璇嗕篃涓嶅悓銆傚ぇ瀹墮渶瑕佺浉浜掕璁恒佸崗鍟嗭紝鎸戦夊嚭涓濂楁渶浣崇殑杞歡瀹炵幇鏂規銆?nbsp;

涓浜涘緩璁?/strong> 

鍦ㄥ畬鎴愯蔣浠剁爺鍙戠殑榪囩▼涓紝寮鍙戝拰嫻嬭瘯涔嬮棿鐨勫叧緋婚潪甯哥殑“寰”錛屾椂鑰屽悎浣滃浜蹭漢錛屾椂鑰屼簤璁哄鏁屼漢銆傛垜璁や負錛屼負浜嗗仛鍑洪珮璐ㄩ噺鐨勮蔣浠朵駭鍝佹潵錛屽紑鍙戝拰嫻嬭瘯闇瑕佸仛鍒幫細 

絎竴錛屽叡鍚屽弬涓庤蔣浠墮渶姹傛枃妗g殑璇勫錛屽紼嬪簭瑕佸疄鐜扮殑鍔熻兘鏈変竴涓竻鏅扮殑璁よ瘑銆傚鏋滃闇姹傛湁鐤戦棶錛屼竴瀹氳褰撻潰鎻愬嚭鏉ャ?nbsp;

絎簩錛屽湪瀵歸渶姹傝揪鎴愬叡璇嗕箣鍚庯紝杞歡寮鍙戜漢鍛樹弗鏍兼寜鐓ц蔣浠墮渶姹傛枃妗d笂鐨勬弿榪版潵緙栧啓紼嬪簭錛屽鏋滃湪紼嬪簭瀹炵幇涓婃湁鍥伴毦錛岃鎻愬嚭鏉ュ拰澶у璁ㄨ銆傝蔣浠舵祴璇曚漢鍛樹弗鏍兼寜鐓ч渶姹傜殑鎻忚堪鏉ラ獙璇佺▼搴忕殑鍔熻兘錛屽鏋滃彂鐜扮▼搴忓疄鐜頒笌闇姹備笉絎︼紝瑕佸強鏃朵笌杞歡寮鍙戜漢鍛樿仈緋伙紝澶у鍏卞悓灝嗙▼搴忛棶棰樿В鍐蟲帀銆?nbsp;

絎笁錛屽鏋滃紑鍙戞椂闂寸揣寮犮佷漢鎵嬩笉瓚籌紝閭d箞鍦ㄥ紑鍙戜漢鍛樼紪鍐欑▼搴忕殑鏃跺欙紝嫻嬭瘯浜哄憳鍙互甯繖鎶婃祴璇曠幆澧冩惌寤哄ソ銆傜瓑紼嬪簭緙栧啓濂戒箣鍚庯紝寮鍙戜漢鍛樹究鍙互绔嬪嵆榪涜鍗曞厓嫻嬭瘯鍜岄泦鎴愭祴璇曘?nbsp;

絎洓錛屼笉綆℃槸闇姹傛湁闂錛岃繕鏄▼搴忔湁緙洪櫡錛屽ぇ瀹墮兘鍙互鎸囧嚭鏉ャ備絾娉ㄦ剰瑕佸氨浜嬭浜嬶紝涓嶅彲灝嗚蔣浠墮棶棰樹笂鍗囦負瀵圭壒瀹氫釜浜虹殑浜鴻韓鏀誨嚮銆?nbsp;

絎簲錛岃櫧鐒舵槸鍚勫徃鍏惰亴錛屼篃璁歌繕韜涓嶅悓鐨勯儴闂紝浣嗗ぇ瀹剁殑鍏卞悓鐩爣鏄竴鑷寸殑錛氬仛鍑鴻瀹㈡埛婊℃剰鐨勩侀珮璐ㄩ噺鐨勮蔣浠朵駭鍝併傚紑鍙戝拰嫻嬭瘯浜哄憳瑕佷負浜嗚繖涓洰鏍囷紝涓璧峰姫鍔涖?nbsp;

緇撴潫璇?/strong> 

涓涓蔣浠朵駭鍝佺殑鎴愬姛闇瑕佷粠鍚勪釜鐜妭涓婂幓鎶婃彙錛屽洜姝ょ敤浜虹殑宸︽墜鍜屽彸鎵嬬殑鍏崇郴鏉ユ瘮鍠誨紑鍙戝拰嫻嬭瘯涔嬮棿鐨勫叧緋繪洿涓烘伆褰撱傚ソ鐨勮蔣浠朵駭鍝侀渶瑕佸紑鍙戝拰嫻嬩袱鎵嬫姄錛屼袱鎵嬮兘瑕佺‖銆?nbsp;


paulwong 2014-12-01 20:55 鍙戣〃璇勮
]]>
鍗曞厓嫻嬭瘯銆侀泦鎴愭祴璇曞拰緋葷粺嫻嬭瘯鐨勪笉鍚屼箣澶刐杞琞http://m.tkk7.com/paulwong/archive/2014/11/21/420382.htmlpaulwongpaulwongFri, 21 Nov 2014 01:09:00 GMThttp://m.tkk7.com/paulwong/archive/2014/11/21/420382.htmlhttp://m.tkk7.com/paulwong/comments/420382.htmlhttp://m.tkk7.com/paulwong/archive/2014/11/21/420382.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/420382.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/420382.html
棣栧厛錛屼粬浠殑嫻嬭瘯鏂規硶涓嶅悓錛?br />
鍗曞厓嫻嬭瘯灞炰簬鐧界洅嫻嬭瘯錛?br />
闆嗘垚嫻嬭瘯灞炰簬鐏扮洅嫻嬭瘯鐨勮寖鐣達紱


緋葷粺嫻嬭瘯灞炰簬榛戠洅嫻嬭瘯銆?br />




鍏舵錛屼粬浠殑鑰冨療鑼冨洿涓嶅悓錛屼篃灝辨槸浠栦滑嫻嬭瘯鐨勯噸鐐逛笉鍚岋細

鍗曞厓嫻嬭瘯涓昏嫻嬭瘯鍗曞厓鍐呴儴鐨勬暟鎹粨鏋勩侀昏緫鎺у埗銆佸紓甯稿鐞嗙瓑絳夛紱

闆嗘垚嫻嬭瘯涓昏嫻嬭瘯妯″潡涔嬮棿鐨勬帴鍙e拰鎺ュ彛鏁版嵁浼犻掔殑鍏崇郴錛屼互鍙婃ā鍧楃粍鍚堝悗鐨勬暣浣撳姛鑳斤紱

緋葷粺嫻嬭瘯涓昏嫻嬭瘯鏁翠釜緋葷粺鐩稿浜庨渶姹傜殑絎﹀悎搴︺?




鍐嶆錛屼粬浠殑鍩哄噯涓嶅悓錛?br />
鍗曞厓嫻嬭瘯璇勪及鐨勪富瑕佹槸閫昏緫瑕嗙洊鐜囷紱

闆嗘垚嫻嬭瘯璇勪及鐨勪富瑕佹槸鎺ュ彛瑕嗙洊鐜囷紱

緋葷粺嫻嬭瘯璇勪及鐨勬槸嫻嬭瘯鐢ㄤ緥瀵歸渶姹傝鏍肩殑瑕嗙洊鐜囥?img src ="http://m.tkk7.com/paulwong/aggbug/420382.html" width = "1" height = "1" />

paulwong 2014-11-21 09:09 鍙戣〃璇勮
]]>
涓涓嬌鐢∕OCK鐨勬祴璇昍EST鐨勫熀浜嶴PRING鐨勫崟鍏冩祴璇?/title><link>http://m.tkk7.com/paulwong/archive/2014/10/25/419025.html</link><dc:creator>paulwong</dc:creator><author>paulwong</author><pubDate>Sat, 25 Oct 2014 01:42:00 GMT</pubDate><guid>http://m.tkk7.com/paulwong/archive/2014/10/25/419025.html</guid><wfw:comment>http://m.tkk7.com/paulwong/comments/419025.html</wfw:comment><comments>http://m.tkk7.com/paulwong/archive/2014/10/25/419025.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/paulwong/comments/commentRss/419025.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/paulwong/services/trackbacks/419025.html</trackback:ping><description><![CDATA[<a target="_blank">https://github.com/spring-projects/spring-sync-samples/tree/master/spring-rest-todos<br /></a><br /><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">package</span> todos;<br /><br /><span style="color: #0000FF; ">import</span> <span style="color: #0000FF; ">static</span> org.hamcrest.Matchers.*;<br /><span style="color: #0000FF; ">import</span> <span style="color: #0000FF; ">static</span> org.mockito.Mockito.*;<br /><span style="color: #0000FF; ">import</span> <span style="color: #0000FF; ">static</span> org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;<br /><span style="color: #0000FF; ">import</span> <span style="color: #0000FF; ">static</span> org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;<br /><br /><span style="color: #0000FF; ">import</span> java.util.Arrays;<br /><br /><span style="color: #0000FF; ">import</span> org.junit.Before;<br /><span style="color: #0000FF; ">import</span> org.junit.Ignore;<br /><span style="color: #0000FF; ">import</span> org.junit.Test;<br /><span style="color: #0000FF; ">import</span> org.junit.runner.RunWith;<br /><span style="color: #0000FF; ">import</span> org.mockito.InjectMocks;<br /><span style="color: #0000FF; ">import</span> org.mockito.Mock;<br /><span style="color: #0000FF; ">import</span> org.mockito.Mockito;<br /><span style="color: #0000FF; ">import</span> org.mockito.MockitoAnnotations;<br /><span style="color: #0000FF; ">import</span> org.springframework.beans.factory.annotation.Autowired;<br /><span style="color: #0000FF; ">import</span> org.springframework.http.MediaType;<br /><span style="color: #0000FF; ">import</span> org.springframework.test.context.ContextConfiguration;<br /><span style="color: #0000FF; ">import</span> org.springframework.test.context.junit4.SpringJUnit4ClassRunner;<br /><span style="color: #0000FF; ">import</span> org.springframework.test.context.web.WebAppConfiguration;<br /><span style="color: #0000FF; ">import</span> org.springframework.test.web.servlet.MockMvc;<br /><span style="color: #0000FF; ">import</span> org.springframework.test.web.servlet.setup.MockMvcBuilders;<br /><span style="color: #0000FF; ">import</span> org.springframework.web.context.WebApplicationContext;<br /><br /><span style="color: #0000FF; ">import</span> com.fasterxml.jackson.databind.ObjectMapper;<br /><br /><span style="color: #008000; ">/**</span><span style="color: #008000; "><br /> * </span><span style="color: #808080; ">@author</span><span style="color: #008000; "> Roy Clarkson<br /> </span><span style="color: #008000; ">*/</span><br />@RunWith(SpringJUnit4ClassRunner.<span style="color: #0000FF; ">class</span>)<br />@WebAppConfiguration<br />@ContextConfiguration(classes = Application.<span style="color: #0000FF; ">class</span>)<br />@Ignore<br /><span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">class</span> MainControllerTest {<br /><br />    @Autowired<br />    <span style="color: #0000FF; ">private</span> WebApplicationContext context;<br /><br />    @Mock<br />    <span style="color: #0000FF; ">private</span> TodoRepository repository;<br /><br />    @InjectMocks<br />    TodoController mainController;<br /><br />    <span style="color: #0000FF; ">private</span> MockMvc mvc;<br /><br />    @Before<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> setUp() {<br />        MockitoAnnotations.initMocks(<span style="color: #0000FF; ">this</span>);<br />        mvc = MockMvcBuilders.standaloneSetup(mainController).build();<br />    }<br /><br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testList() <span style="color: #0000FF; ">throws</span> Exception {<br />        <span style="color: #0000FF; ">final</span> Todo a = <span style="color: #0000FF; ">new</span> Todo(1L, "a", <span style="color: #0000FF; ">false</span>);<br />        <span style="color: #0000FF; ">final</span> Todo b = <span style="color: #0000FF; ">new</span> Todo(2L, "b", <span style="color: #0000FF; ">false</span>);<br />        <span style="color: #0000FF; ">final</span> Todo c = <span style="color: #0000FF; ">new</span> Todo(3L, "c", <span style="color: #0000FF; ">false</span>);<br />        when(repository.findAll()).thenReturn(Arrays.asList(a, b, c));<br /><br />        mvc.perform(get("/todos")<br />                    .accept(MediaType.APPLICATION_JSON))<br />                .andExpect(status().isOk())<br />                .andExpect(jsonPath("$", hasSize(3)))<br />                .andExpect(jsonPath("$[0].id", is(1)))<br />                .andExpect(jsonPath("$[0].description", is("a")))<br />                .andExpect(jsonPath("$[0].complete", is(<span style="color: #0000FF; ">false</span>)))<br />                .andExpect(jsonPath("$[1].id", is(2)))<br />                .andExpect(jsonPath("$[1].description", is("b")))<br />                .andExpect(jsonPath("$[1].complete", is(<span style="color: #0000FF; ">false</span>)))<br />                .andExpect(jsonPath("$[2].id", is(3)))<br />                .andExpect(jsonPath("$[2].description", is("c")))<br />                .andExpect(jsonPath("$[2].complete", is(<span style="color: #0000FF; ">false</span>)));<br /><br />         verify(repository, times(1)).findAll();<br />         verifyNoMoreInteractions(repository);<br />    }<br /><br />    @Ignore<br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testPatch() <span style="color: #0000FF; ">throws</span> Exception {<br /><br />    }<br /><br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testCreate() <span style="color: #0000FF; ">throws</span> Exception {<br />        <span style="color: #0000FF; ">final</span> Todo todo = <span style="color: #0000FF; ">new</span> Todo(1L, "a", <span style="color: #0000FF; ">false</span>);<br />        ObjectMapper objectMapper = <span style="color: #0000FF; ">new</span> ObjectMapper();<br />        <span style="color: #0000FF; ">final</span> <span style="color: #0000FF; ">byte</span>[] bytes = objectMapper.writeValueAsBytes(todo);<br /><br />        when(repository.save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>))).thenReturn(todo);<br /><br />        mvc.perform(post("/todos")<br />                    .accept(MediaType.APPLICATION_JSON)<br />                    .contentType(MediaType.APPLICATION_JSON)<br />                    .content(bytes))<br />                .andExpect(status().isOk())<br />                .andExpect(jsonPath("$.id", is(1)))<br />                .andExpect(jsonPath("$.description", is("a")))<br />                .andExpect(jsonPath("$.complete", is(<span style="color: #0000FF; ">false</span>)));<br /><br />        verify(repository, times(1)).save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>));<br />        verifyNoMoreInteractions(repository);<br />    }<br /><br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testUpdateSameIds() <span style="color: #0000FF; ">throws</span> Exception {<br />        <span style="color: #0000FF; ">final</span> Todo updatedTodo = <span style="color: #0000FF; ">new</span> Todo(1L, "z", <span style="color: #0000FF; ">true</span>);<br />        ObjectMapper objectMapper = <span style="color: #0000FF; ">new</span> ObjectMapper();<br />        <span style="color: #0000FF; ">byte</span>[] bytes = objectMapper.writeValueAsBytes(updatedTodo);<br /><br />        when(repository.save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>))).thenReturn(updatedTodo);<br /><br />        mvc.perform(put("/todos/{id}", 1L)<br />                    .contentType(MediaType.APPLICATION_JSON)<br />                    .content(bytes))<br />                .andExpect(status().isNoContent());<br /><br />        verify(repository, times(0)).delete(1L);<br />        verify(repository, times(1)).save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>));<br />        verifyNoMoreInteractions(repository);<br />    }<br /><br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testUpdateDifferentIds() <span style="color: #0000FF; ">throws</span> Exception {<br />        <span style="color: #0000FF; ">final</span> Todo updatedTodo = <span style="color: #0000FF; ">new</span> Todo(99L, "z", <span style="color: #0000FF; ">true</span>);<br />        ObjectMapper objectMapper = <span style="color: #0000FF; ">new</span> ObjectMapper();<br />        <span style="color: #0000FF; ">byte</span>[] bytes = objectMapper.writeValueAsBytes(updatedTodo);<br /><br />        when(repository.save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>))).thenReturn(updatedTodo);<br /><br />        mvc.perform(put("/todos/{id}", 1L)<br />                    .contentType(MediaType.APPLICATION_JSON)<br />                    .content(bytes))<br />                .andExpect(status().isNoContent());<br /><br />        verify(repository, times(1)).delete(1L);<br />        verify(repository, times(1)).save(Mockito.any(Todo.<span style="color: #0000FF; ">class</span>));<br />        verifyNoMoreInteractions(repository);<br />    }<br /><br />    @Test<br />    <span style="color: #0000FF; ">public</span> <span style="color: #0000FF; ">void</span> testDelete() <span style="color: #0000FF; ">throws</span> Exception {<br /><span style="color: #008000; ">//</span><span style="color: #008000; ">        this is how to test a void method with Mockito<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; ">        doThrow(new IllegalArgumentException()).when(repository).delete(null);</span><span style="color: #008000; "><br /></span><br />        mvc.perform(delete("/todos/{id}", 1L))<br />                .andExpect(status().isNoContent());<br />    }<br /><br />}</div><img src ="http://m.tkk7.com/paulwong/aggbug/419025.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/paulwong/" target="_blank">paulwong</a> 2014-10-25 09:42 <a href="http://m.tkk7.com/paulwong/archive/2014/10/25/419025.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>50閬撳浼佽蔣浠舵祴璇曢潰璇曢http://m.tkk7.com/paulwong/archive/2014/09/23/418182.htmlpaulwongpaulwongTue, 23 Sep 2014 02:37:00 GMThttp://m.tkk7.com/paulwong/archive/2014/09/23/418182.htmlhttp://m.tkk7.com/paulwong/comments/418182.htmlhttp://m.tkk7.com/paulwong/archive/2014/09/23/418182.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/418182.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/418182.html
  • What types of documents would you need for QA錛?QC錛?and Testing?
  • What did you include in a test plan?
  • Describe any bug you remember.
  • What is the purpose of the testing?
  • What do you like (not like) in this job?
  • What is quality assurance?
  • What is the difference between QA and testing?
  • How do you scope錛?organize錛?and execute a test project?
  • What is the role of QA in a development project?
  • What is the role of QA in a company that produces software?
  • Define quality for me as you understand it
  • Describe to me the difference between validation and verification.
  • Describe to me what you see as a process. Not a particular process錛?just the basics of having a process.
  • Describe to me when you would consider employing a failure mode and effect analysis.
  • Describe to me the Software Development Life Cycle as you would define it.
  • What are the properties of a good requirement?
  • How do you differentiate the roles of Quality Assurance Manager and Project Manager?
  • Tell me about any quality efforts you have overseen or implemented. Describe some of the challenges you faced and how you overcame them.
  • How do you deal with environments that are hostile to quality change efforts?
  • In general錛?how do you see automation fitting into the overall process of testing?
    How do you promote the concept of phase containment and defect prevention?
  • If you come onboard錛?give me a general idea of what your first overall tasks will be as far as starting a quality effort.
  • What kinds of testing have you done?
  • Have you ever created a test plan?
  • Have you ever written test cases or did you just execute those written by others?
  • What did your base your test cases?
  • How do you determine what to test?
  • How do you decide when you have ‘tested enough?’
  • How do you test if you have minimal or no documentation about the product?
  • Describe me to the basic elements you put in a defect report?
  • How do you perform regression testing?
  • At what stage of the life cycle does testing begin in your opinion?
  • How do you analyze your test results? What metrics do you try to provide?
  • Realising you won’t be able to test everything – how do you decide what to test first?
  • Where do you get your expected results?
  • If automating – what is your process for determining what to automate and in what order?
  • In the past錛?I have been asked to verbally start mapping out a test plan for a common situation錛?such as an ATM. The 36 interviewer might say錛?“Just thinking out loud錛?if you were tasked to test an ATM錛?what items might you test plan 37 include?” These type questions are not meant to be answered conclusively錛?but it is a good way for the interviewer to see 38 how you approach the task.
  • If you’re given a program that will average student grades錛?what kinds of inputs would you use?
  • Tell me about the best bug you ever found.
  • What made you pick testing over another career?
  • What is the exact difference between Integration & System testing錛?give me examples with your project.
  • How did you go about testing a project?
  • When should testing start in a project? Why?
  • How do you go about testing a web application?
  • Difference between Black & White box testing
  • What is Configuration management? Tools used?
  • What do you plan to become after say 2-5yrs (Ex: QA Manager錛?Why?)
  • Would you like to work in a team or alone錛?why?
  • Give me 5 strong & weak points of yours.


  • paulwong 2014-09-23 10:37 鍙戣〃璇勮
    ]]>
    鏁村悎嫻嬭瘯http://m.tkk7.com/paulwong/archive/2014/04/20/412701.htmlpaulwongpaulwongSun, 20 Apr 2014 02:33:00 GMThttp://m.tkk7.com/paulwong/archive/2014/04/20/412701.htmlhttp://m.tkk7.com/paulwong/comments/412701.htmlhttp://m.tkk7.com/paulwong/archive/2014/04/20/412701.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/412701.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/412701.htmlhttp://arquillian.org/guides/getting_started_zh_cn/

    paulwong 2014-04-20 10:33 鍙戣〃璇勮
    ]]>
    嫻嬭瘯榪囩▼http://m.tkk7.com/paulwong/archive/2012/06/01/379703.htmlpaulwongpaulwongThu, 31 May 2012 16:07:00 GMThttp://m.tkk7.com/paulwong/archive/2012/06/01/379703.htmlhttp://m.tkk7.com/paulwong/comments/379703.htmlhttp://m.tkk7.com/paulwong/archive/2012/06/01/379703.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/379703.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/379703.html
  • 鍗曞厓嫻嬭瘯
    鏈変笁涓駭鍒?br />閫昏緫鍗曞厓嫻嬭瘯錛氬氨鏄柟娉曠駭鍒殑嫻嬭瘯錛屾柟娉曚腑渚濊禆鐨勫叾浠栧眰瀵硅薄鐢∕OCK妯℃嫙錛岄氬父鍙拡瀵規帶鍒跺眰
    鏁村悎鍗曞厓嫻嬭瘯錛氳仈鍚堝嚑涓眰鏉ユ祴璇曪紝灝辨槸閽堝鏈嶅姟灞傦紝鍏朵緷璧栫殑鎸佷箙涓嶈兘妯℃嫙錛屾暟鎹簱瑕佹墦寮錛屼絾鍙互鐢ㄥ唴瀛樻暟鎹簱
    鐣岄潰鍗曞厓嫻嬭瘯錛氫負浜嗕繚璇佺晫闈笉鍑洪敊錛岃繕鍖呮嫭欏甸潰鏁版嵁楠岃瘉涓嶉氳繃鏃剁殑嫻嬭瘯
  • 鎸佺畫鏋勫緩鍜屼唬鐮佽川閲忔祴璇?br />嫻嬭瘯鏄惁鏋勫緩鎴愬姛錛屼唬鐮佽川閲忓拰瑕嗙洊鐜囨槸鍚﹁揪鍒版爣鍑?/li>
  • 緋葷粺鏁村悎嫻嬭瘯
  • 鍔熻兘嫻嬭瘯
    閫氳繃UI楠岃瘉鏄惁絎﹀悎緋葷粺鐢ㄤ緥鍜屼笟鍔¤鍒欙紝涓昏鐪嬭緭鍏ュ拰杈撳嚭
  • 緋葷粺璐ㄩ噺嫻嬭瘯
    涓昏鎸囨ц兘嫻嬭瘯鏄惁絎﹀悎闈炲姛鑳介渶姹傦紝騫跺彂鐢ㄦ埛鍜岃礋杞芥槸鍚︾鍚堬紝鍙婂畨鍏ㄦу拰楂樺彲鐢ㄦ?/li>
  • 鐢ㄦ埛鎺ュ彈嫻嬭瘯
    妯℃嫙鐪熷疄鐜錛屾牴鎹敤鎴鋒墜鍐屽拰鎿嶄綔嫻佺▼鎿嶄綔錛屾祴璇曟槸鍚︾鍚堜笟鍔¢渶姹?/li>

    paulwong 2012-06-01 00:07 鍙戣〃璇勮
    ]]>JMeter浣跨敤浠嬬粛http://m.tkk7.com/paulwong/archive/2012/05/20/378601.htmlpaulwongpaulwongSun, 20 May 2012 03:05:00 GMThttp://m.tkk7.com/paulwong/archive/2012/05/20/378601.htmlhttp://m.tkk7.com/paulwong/comments/378601.htmlhttp://m.tkk7.com/paulwong/archive/2012/05/20/378601.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/378601.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/378601.htmlhttp://www.hitb.com.cn/web/guest/bbs/-/message_boards/message/13785#_19_message_13785

    鍦ㄥ綍鍒惰繃紼嬩腑錛屽鏋滄兂鍘繪帀璁ㄥ帉鐨凧S鎴朇SS錛屽彲浠ュ湪HTTP浠g悊鏈嶅姟鍣ㄧ殑涓嶅寘鍚牱寮忎腑娣誨姞錛?br />
    .*\.css
    .*\.js
    .*\.gif
    .*\.jpg

    鍦∕AVEN涓繍琛孞METER錛?br />https://bitbucket.org/hascode/jmeter-multiuser-profiling/src

    paulwong 2012-05-20 11:05 鍙戣〃璇勮
    ]]>
    Watij and Mavenhttp://m.tkk7.com/paulwong/archive/2012/01/03/367792.htmlpaulwongpaulwongTue, 03 Jan 2012 14:08:00 GMThttp://m.tkk7.com/paulwong/archive/2012/01/03/367792.htmlhttp://m.tkk7.com/paulwong/comments/367792.htmlhttp://m.tkk7.com/paulwong/archive/2012/01/03/367792.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/367792.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/367792.html

    First, download the waitj bundle and unzip it.

    Then, use maven to manually install each dependency in the lib folder
    like so:
    mvn install:install-file -Dfile=webspec.jar -DartifactId=webspec -
    DgroupId=watij -Dversion=1.3.1 -Dpackaging=jar

    You can also do deploy:deploy-file if you want to put them into a
    central maven repo.

    Of course, you don't need to do this for log4j, junit, slf4j. I did
    it for all the others for speed, registering them under "watij" and
    version 1.3.1

    Got this working in Eclipse, a simple login test case, yipee!

    Here is the POM snippet for my project:

      <dependencies> 
        
    <dependency> 
          
    <groupId>junit</groupId> 
          
    <artifactId>junit</artifactId> 
          
    <version>4.8.2</version> 
          
    <scope>test</scope> 
        
    </dependency> 


        
    <!-- WATIJ --> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>webspec</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>engine-gecko</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>engine-ie</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>engine-webkit</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>jniwrap-native</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>jxbrowser</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>MozillaGlue</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>MozillaInterfaces</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>mshtml</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>runtime</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>tuxpack</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>winpack</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>xulrunner-linux</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>xulrunner-linux64</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>xulrunner-mac</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>watij</groupId> 
          
    <artifactId>xulrunner-windows</artifactId> 
          
    <version>1.3.1</version> 
        
    </dependency> 


        
    <dependency> 
          
    <groupId>log4j</groupId> 
          
    <artifactId>log4j</artifactId> 
          
    <version>1.2.15</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>org.slf4j</groupId> 
          
    <artifactId>slf4j-api</artifactId> 
          
    <version>1.5.8</version> 
        
    </dependency> 
        
    <dependency> 
          
    <groupId>org.slf4j</groupId> 
          
    <artifactId>slf4j-log4j12</artifactId> 
          
    <version>1.5.8</version> 
        
    </dependency> 





    paulwong 2012-01-03 22:08 鍙戣〃璇勮
    ]]>
    Watij鍏ラ棬 http://m.tkk7.com/paulwong/archive/2012/01/03/367791.htmlpaulwongpaulwongTue, 03 Jan 2012 14:01:00 GMThttp://m.tkk7.com/paulwong/archive/2012/01/03/367791.htmlhttp://m.tkk7.com/paulwong/comments/367791.htmlhttp://m.tkk7.com/paulwong/archive/2012/01/03/367791.html#Feedback0http://m.tkk7.com/paulwong/comments/commentRss/367791.htmlhttp://m.tkk7.com/paulwong/services/trackbacks/367791.html闃呰鍏ㄦ枃

    paulwong 2012-01-03 22:01 鍙戣〃璇勮
    ]]>
    主站蜘蛛池模板: 亚洲国产成人久久77| 亚洲情综合五月天| 亚洲国产精品免费观看| 91大神免费观看| 亚洲综合一区二区三区四区五区| 免费在线黄色电影| 亚洲av中文无码乱人伦在线r▽| 国产一级一毛免费黄片| 国产亚洲成归v人片在线观看| 精选影视免费在线 | 久久久亚洲精品蜜桃臀| a级大片免费观看| 亚洲AV日韩精品久久久久久| 日日麻批免费40分钟无码| 亚洲精品视频久久| 美女网站免费福利视频| 午夜亚洲国产理论片二级港台二级| 免费在线观看亚洲| 毛片基地看看成人免费| 1区1区3区4区产品亚洲| 成年女人免费视频播放77777| 亚洲最大福利视频| 天堂亚洲免费视频| 国产免费一区二区视频| 亚洲人和日本人jizz| 国产精品公开免费视频| A级毛片成人网站免费看| 亚洲综合激情六月婷婷在线观看| 成人免费一级毛片在线播放视频| 黑人粗长大战亚洲女2021国产精品成人免费视频| 国产又大又粗又硬又长免费| 一级A毛片免费观看久久精品| 亚洲激情在线视频| 精品国产免费观看| 国产在线播放线91免费| 亚洲国产品综合人成综合网站| 免费在线黄色网址| 五月婷婷在线免费观看| 免费看一级高潮毛片| 噜噜噜亚洲色成人网站∨| 国产一区二区三区在线免费 |