Skip to main content

Home/ InfokeyDEV/ Group items tagged unit-test

Rss Feed Group items tagged

hanhan789

nike kobe 9 elite low beethoven for sale anyone who sees them on television knows famil... - 0 views

Nike kobe 9 elite low beethoven for sale anyone who sees them on television knows family is first for them 500,000 people in the United States, or about 5 percent of those with Alzheimer have early...

nike kobe 9 elite

started by hanhan789 on 22 Nov 14 no follow-up yet
juzi789

nike kd 7 35k degrees for sale deborah bond moved from new haven - 0 views

Nike kd 7 35k degrees for sale deborah bond moved from new haven why are researchers just now exploring the differences between men and women? The reason can be traced to the 1970s when the feminis...

nike kd 7 35k degrees

started by juzi789 on 14 Jan 15 no follow-up yet
juzi789

nike kd 7 35k degrees for sale josb commonly pronounced - 0 views

Nike kd 7 35k degrees for sale josb commonly pronounced thus, they can be shipped within a day after the buyer has placed his or her online order and made payment. The sizes of these shoes range fr...

nike kd 7 35k

started by juzi789 on 22 Jan 15 no follow-up yet
lshfang

nike flyknit lunar 3 wholesale invigorate and motivate their students - 0 views

Nike flyknit lunar 3 wholesale invigorate and motivate their students rambunctious schoolchildren frolic on the playground uphill, and teens play threeonthree on the adjacent basketball court after...

nike flyknit lunar 3

started by lshfang on 20 Mar 15 no follow-up yet
yuge789

air jordan 13 grey toe but you could get it at wholesale price - 0 views

Air jordan 13 grey toe but you could get it at wholesale price the Bulldogs outrebounded a physical Kansas State team by 12 in the regional final. While the Bulldogs are a set offense team, they ca...

air jordan 13 grey nike

started by yuge789 on 17 Nov 14 no follow-up yet
hanhan789

nike kobe 9 elite low beethoven for sale and o'reilly has no clue who she is - 0 views

Nike kobe 9 elite low beethoven for sale and o'reilly has no clue who she is first Air Jordan also referred to as AJ1 was launched within the year 1985. You will find total of 21 versions from the ...

nike kobe 9 elite

started by hanhan789 on 21 Nov 14 no follow-up yet
hanhan789

nike kobe 9 elite low beethoven for sale if you have a dirt bike with a four stroke engine - 0 views

Nike kobe 9 elite low beethoven for sale if you have a dirt bike with a four stroke engine nike's entry into the golf market appeared to be the business equivalent of sinking three successive holes...

nike kobe 9 elite

started by hanhan789 on 03 Dec 14 no follow-up yet
xixmei

nike kobe 10 silk for sale so what is it that the 5 - 0 views

Nike kobe 10 silk for sale so what is it that the 5 cleveland, TN 37353Occupying 1,200 acres less than 13 miles from Collegedale, Harrison Bay State Park offers approximately 40 miles of Chickamaug...

nike kobe 10 silk for sale

started by xixmei on 23 Mar 15 no follow-up yet
Benx Shen

Preventing Java's java.lang.OutOfMemoryError: PermGen space failure | Eric's Agile Answers - 0 views

  • The "OutOfMemoryError: PermGen space" message is normally encountered during development activites where a long-running JVM is asked to load/unload builds.
  • The message is a symptom of an incomplete garbage collection sweep where resources are not properly released upon unload/restart. There is no shortage of debate (Hibernate forum, Sun forum, Spring Framework forum ) regarding which codebase is responsible for this symptom, but the finger of blame has been pointed at CGLIB, Hibernate, Tomcat, and even Sun's JVM.
  • In my experience, the most pain-free method of resolving this issue is to switch from Sun's JDK implementation to BEA's freely available JRockit implementation.
  • ...1 more annotation...
  • On a recent project utilizing Tomcat 5.5.12 with Hibernate, I was plagued with this PermGen error, at times even experiencing it during web-based unit testing. Since making the switch to JRockit, I have not encountered this issue even once.
  •  
    又是一位和我一樣都慘遭 "PermGen Space" 錯誤的開發者了!
    很奇怪,為何會發生這樣的錯誤呢?
    其中這篇文章所提到的技術,恰巧都是我現在所發生問題的架構,像是 Hibernate, Spring, Tomcat 等,還有 Sun JVM.... Orz
    比較特別的是,多數提供的解決方式,都是去調整 JVM 的設定(-XX:MaxPermSize=256m)。這位老兄則是採用了 BEA JRockit 版本的 JVM 解決此問題,他表示至少這招對他是管用的!
    不過,軟體開發很多時候都會發生這種「魔咒」,這種狀況底下,就好像一個並無可醫的人,只好嘗試各種偏方了!

Benx Shen

mock框架搞什麼搞? - 0 views

  •  
    發文者 taowen 提出了一個對於 mock 框架(jMock, EasyMock)的使用經驗,認為這樣的框架並沒有帶給他測試上的方便性,反而似乎使得測試程式碼更多更亂,因此,他提出了對於 mock 框架技術的質疑。

    不過,taowen 並不是單純地從情緒上發揮論述,而是舉出了一些簡單的程式馬來進行測試,試圖寫 mock 測試程式並非那麼簡易。另外,他自己另外展示了如何不用 mock 框架來進行單元測試。從這一點來看,taowen 很棒地說明了該如何進行單元測試,無論使用哪一種方法。

    值得我學習的是,taowen 提出了自己對於 mock 框架的觀點,他的經驗告訴他:mock 到底在搞什麼東西!?於是勇敢地提出質疑。這樣的質疑,我認為比學習技術本身更有價值。從結果來看,這引發了相當多的迴響與討論,有人認為這樣,卻有人不以為然。(我相信 taowen 心臟必須要夠強,才能夠接受不同的意見而不感到生氣。我覺得我還需要學習這樣的質疑態度與接受批評的雅量。)總的來說,我發現我看到了更多元的資訊,作為一個學習者,比起單純地從一篇文章學習技術還要能夠學得更多。

    雖然我使用 mock 技術有一小段時間,而我也懂得 mock 真正的意圖以及單元測試所帶來的價值,這並不會使得我一開始就認為 taowen 是錯誤的,即便看完他的發表之後,我仍然不認為他不應該提出這樣的質疑(我想我已經在上面一段表達我的「推崇」之意,以及我所認為背後的價值)。和一些參與討論的網友一樣,認為這不是一個完全適當的例子,但 taowen 也的確指出了 mock 技術會讓開發者詬病之處。然而,這並不足以說明 mock 真是非常難用,或造成了單元測試的困擾。實際的狀況是,我們得再從 mock 技術所帶來的好處出發,瞭解了之
‹ Previous 21 - 31 of 31
Showing 20 items per page