RSS feed [root] /




login:

password:

title search:




 


Sun Jul 23 22:00:11 HKT 2017



(google search) (amazon search)
second
download zip of files only

Thu Mar 30 14:47:41 HKT 2017 From /weblog/software_engineering/testing

test data


Suggestion of how to manage the test datas - http://jchyip.blogspot.com[..]citcon-melbourne-2008-managing-test.html

Difference Pattern of managing test datas - http://adrianmowat.blogspot.com[..]damentals-of-data-testing-setup-and.html

How to get the data feed and design automated test trading system - http://howtohft.wordpress.com[..]m/2011/02/16/trading-system-testability/

False assumption about time - http://infiniteundo.com[..]alsehoods-programmers-believe-about-time

Create your own clock - http://ducktypo.blogspot.hk[..]3/12/the-virtual-clock-test-pattern.html

Just change the return of Calendar - http://octodecillion.com/blog/mock-date-time-using-jmockit/

Discussion about creating test data - http://blog.codeleak.pl[..]est-data-builders-and-object-mother.html

http://www.petrikainulainen.net[..]r-data-access-code-unit-tests-are-waste/

Dummy, fake, stub, spy and mock - http://letstalkaboutjava.blogspot.hk[..]pot.hk/2015/09/test-double-patterns.html http://www.shaunabram.com/test-doubles/

Generation of test data - http://filldb.info/ http://www.softwaretestingmagazine.com[..]/tools/open-source-test-data-generators/

Using test container, and compare it with other test data solution - http://www.objectify.be[..]28/database-testing-with-testcontainers/ https://www.testcontainers.org/

(google search) (amazon search)



Mon Mar 27 10:38:42 HKT 2017 From /weblog/java/features

reflection


Good : dynamic, generic
Bad: slow, don't work with Obfuscators and most searching and refactoring tools

http://jroller.com/page/ie?entry=time_to_reconsider_reflection

A very nice tool to get parameter name - http://paranamer.codehaus.org/ (e.g.: user of getUser(User user))

How to improve the performance - http://coding-masters.blogspot.com[..]-reflection-as-fast-as-direct-calls.html

The problem of using reflection to modify final field - http://www.azulsystems.com[..]7-writing-to-final-fields-via-reflection

Using reflection for using test - http://www.javaadvent.com[..]f-hacking-enums-and-modifying-final.html

Sharing about using invokedynamic - http://www.infoq.com/presentations/invokedynamic http://www.infoq.com[..]ticles/Invokedynamic-Javas-secret-weapon https://www.infoq.com/articles/Invokedynamic-Javas-secret-weapon

(google search) (amazon search)


Sun Mar 26 00:09:52 HKT 2017 From /weblog/java/string

regex


Introduction to a library which support faster regular expression processing: http://weblogs.java.net[..]ite/archive/2006/03/a_faster_java_r.html http://www.javaadvent.com[..]-expression-library-benchmarks-2015.html

Regex helper - https://github.com/VerbalExpressions/JavaVerbalExpressions

java-regular-expressions-cheat-sheet - https://zeroturnaround.com[..]abs/java-regular-expressions-cheat-sheet

(google search) (amazon search)



Wed Mar 22 00:08:56 HKT 2017 From /weblog/business

meeting


Tips for getting the most from meeting - http://cn.wsj.com/big5/20120224/eoe082439.asp?source=rss

No meeting should ever be more than an hour, under penalty of death.
Every meeting should have a clearly defined mission statement.
Do your homework before the meeting.
Make it optional.
Summarize to-dos at the end of the meeting.

http://www.codinghorror.com[..]/02/meetings-where-work-goes-to-die.html

Good and bad thing from meeting - http://www.targetprocess.com/blog/2013/01/meetings-are.html

「兩個披薩」和「六頁備忘錄」, meeting attendant should not eat more than 2 plazas and the discussion item should not more than 6 pages - http://www.businessinsider.com.au[..]zza-rule-for-productive-meetings-2013-10 http://www.inside.com.tw[..]zza-rule-for-productive-meetings-2013-10

http://softwaredevelopmenttoday.blogspot.ch[..]ve-signs-your-meetings-are-waste-of.html <- I like this one: "Sign 4: Someone asks: "who will document the results of this meeting?""

上班族必學-在會議中教人刮目相看的十招, I double if it working...... - http://thehousenews.com[..]%B8%E7%9C%8B%E7%9A%84%E5%8D%81%E6%8B%9B/

http://www.yegor256.com[..]7/13/meetings-are-legalized-robbery.html

A team might agree around the conference table, but then express doubts in the “safer” environment of the hallway or coffee shop. - https://marketoonist.com[..]14/03/the-meeting-after-the-meeting.html

(google search) (amazon search)


Tue Mar 21 14:31:55 HKT 2017 From /weblog/software_engineering/team

offshore


Recently I help the company offshore some work to CN developers, many difficulty I've encounter, most difficult one is it is hard to share the vision and big picture to CN developers.

This article mention a few good notes http://martinfowler.com/articles/agileOffshore.html , the one I think I am lacking is having short meeting with them often. I will see if we can have video conferencing so that we are easier to meet.

The other tips here - http://www.theserverside.com[..]_id=45367&asrc=EM_NLN_1439070&uid=703565 but I think the tips list is too long and probably only apply to large enterprise

Tips of communication with offshore team - http://www.acceptic.com[..]on-in-software-development-projects.html

http://martinfowler.com/articles/remote-or-co-located.html

https://www.infoq.com/articles/top5-problems-distributed

https://www.infoq.com/articles/be-agile-distributed-teams http://www.infoq.com/cn/articles/be-agile-distributed-teams

(google search) (amazon search)


Tue Mar 21 14:30:43 HKT 2017 From /weblog/security

fundamental


Introduction to Cryptography Basic Principles - http://www.thegeekstuff.com/2012/07/cryptography-basics/

http://www.thegeekstuff.com[..]01/diffie-hellman-key-exchange-algorithm

http://meri-stuff.blogspot.hk[..]tography-theory-1-meaning-of-secure.html

getting-a-list-of-available-cryptographic-algorithms - http://invariantproperties.com[..]t-of-available-cryptographic-algorithms/

Differential privacy - http://www.infoq.com/cn/articles/differential-privacy-intro https://www.infoq.com/articles/differential-privacy-intro

(google search) (amazon search)


Sun Mar 19 10:25:58 HKT 2017 From /weblog/design

microservice


The Hidden Dividends of Microservices - http://queue.acm.org/detail.cfm?ref=rss&id=2956643

Best practices - http://www.infoq.com[..]constructing-micro-service-system-part03

http://basho.com/posts/technical/microservices-please-dont/

Compare using library / service - http://blog.jessitron.com/2017/01/dependencies.html http://www.infoq.com[..]cy-management-whether-library-or-service

(google search) (amazon search)



Tue Mar 14 23:52:20 HKT 2017 From /weblog/learning

code


http://www.infoq.com/articles/kids-enthusiasm-coding

How to teach kid love coding - http://cn.wsj.com/big5/20170314/LIF170612.asp

(google search) (amazon search)



Mon Mar 13 23:20:23 HKT 2017 From /weblog/health/food

Health Meal


Fix muscle with good food - https://www.mr-sport.com.tw[..]life/food/fix-your-muscle-with-food.html

要動不要痛—調整飲食,擊退運動傷害! - https://www.mr-sport.com.tw[..]eat-when-you-get-hurt-from-exercise.html

【動畫●每日健康】新超級食物苔麩代替麵粉 多吃腸胃更暢通 - http://hk.apple.nextmedia.com[..]om/realtime/supplement/20161012/55761307

http://list25.com[..]at-makes-eating-healthier-easy/?view=all

豐富健康食譜 - http://www.yimho.com/2086.html

Eating for health, not weight - http://www.nytimes.com[..]y/the-optimal-diet.html?_r=2&ref=opinion

健康飲食還需多吃“苦” - http://cn.wsj.com/big5/20120607/lif075953.asp?source=rss

我續說︰「我建議你一個兩天的開心全餐,希望對囡囡有幫助。第一天早餐有全麥多士及低脂乳酪1杯;午餐有瘦肉粥、灼芥蘭、香蕉1條;小食有小魚乾;晚餐洋葱炒肉片、白飯、藍莓一杯。第二天早餐番茄芝士三文治及脫脂奶1盒;午餐有三文魚壽司、綠茶及奇異果1個;小食有香蕉乾;晚餐有白飯、西芹炒雞丁及木瓜半個。」- http://www.yimho.com/1450.html

1.【 想要膽固醇聽話? 每天三杯柳橙汁OK!! < http://www.sjps.kh.edu.tw/grace/home/01.htm >】

2.【 要長壽別忘蕃茄 < http://www.sjps.kh.edu.tw/grace/home/02.htm >】

3.【 喝杯水再睡_喝適量的水有益健康! < http://www.sjps.kh.edu.tw/grace/home/03.htm >】

4.【 喝下重覆煮沸的開水會致癌 < http://www.sjps.kh.edu.tw/grace/home/04.htm >】

5.【 喜歡吃冷凍水餃的人請小心 < http://www.sjps.kh.edu.tw/grace/home/05.htm >】

6.【 小心衛生筷子 < http://www.sjps.kh.edu.tw/grace/home/06.htm >】

7.【 豆漿, 請多告訴你身旁的女性朋友 < http://www.sjps.kh.edu.tw/grace/home/07.htm >】

8.【 操作電腦時要多喝茶 < http://www.sjps.kh.edu.tw/grace/home/08.htm >】

9.【 老醫之家:一個不錯的中文醫療資訊網站 < http://www.sjps.kh.edu.tw/grace/home/09.htm >】

10.【 建議大家最近別吃生魚片及去海邊玩! < http://www.sjps.kh.edu.tw/grace/home/10.htm >】

11.【 養肺的季節--養肺食譜 < http://www.sjps.kh.edu.tw/grace/home/11.htm >】

12.【 聽過喝咖啡減肥? < http://www.sjps.kh.edu.tw/grace/home/12.htm >】

13.【 幫助皮膚健康的維生素 < http://www.sjps.kh.edu.tw/grace/home/13.htm >】

14.【 造成身材浮腫的殺手食物報告出爐 < http://www.sjps.kh.edu.tw/grace/home/14.htm >】

15.【 喝雞湯 細菌黏液最快排出 < http://www.sjps.kh.edu.tw/grace/home/15.htm >】

16.【 15種吃了腿會變瘦、變美的食物 < http://www.sjps.kh.edu.tw/grace/home/16.htm >】

17.【 早餐吃熱食,才能保護胃氣 < http://www.sjps.kh.edu.tw/grace/home/17.htm >】

18.【 五種食物,讓你百毒不侵 < http://www.sjps.kh.edu.tw/grace/home/18.htm >】

19.【 不要太常吃冰 < http://www.sjps.kh.edu.tw/grace/home/19.htm >】

20.【 喝太多鋁箔包飲料容易導致老年癡呆症 < http://www.sjps.kh.edu.tw/grace/home/20.htm >】

21.【 黑糖薑茶(女人一定要看) < http://www.sjps.kh.edu.tw/grace/home/21.htm >】



健康生活篇

1.【 午餐後趴睡是健康的殺手 < http://www.sjps.kh.edu.tw/grace/home/午睡是健康的殺手.htm >】

2.【 失眠、生物電和橡皮鞋底! < http://www.sjps.kh.edu.tw/grace/home/B02.htm >】

3.【 有午睡習慣的人比較不會老 < http://www.sjps.kh.edu.tw/grace/home/B03.htm >】

4.【 睡眠不足 小心變笨 < http://www.sjps.kh.edu.tw/grace/home/B04.htm >】

5.【 深夜開燈睡易致癌 < http://www.sjps.kh.edu.tw/grace/home/b05.htm >】

6.【 用微波爐加熱水請小心 < http://www.sjps.kh.edu.tw/grace/home/b06.htm >】

7.【 杜絕感冒的六大法則 < http://www.sjps.kh.edu.tw/grace/home/b07.htm >】

8.【 每天更健康 < http://www.sjps.kh.edu.tw/grace/home/b08.htm >】

9.【 小心!看不見的「波」可能讓你致癌 < http://www.sjps.kh.edu.tw/grace/home/b09.htm >】


蒜頭飯 - 閱後傳知他人,添福添壽

一位朋友每天吃蒜頭蒸飯,晚餐用一把蒜頭切碎煮飯, 半年之後高血壓消失了,痛風症消失了,坐骨神經痛亦消失了。 對於目前流行的非典型肺炎,他認為吃蒜頭是增強免疫力的方法, 因為蒜頭是「窮人靈芝」,通血管及清除毒素,以前美軍 亦用作隨身解毒劑。

蒜頭炒飯:
蒜頭越多越香,拍碎,用油鍋炒香蒜頭放入鹽及煮好的飯,加葫 椒鹽拌炒起鍋。 ( 菲律賓人的早餐都是這道主食 )

蛋炒飯,起鍋前撒上一些蒜粉,保證您炒的不夠吃,太香太好吃了。

另一位朋友提醒要多食維他命 C,以增強抵抗力,並切忌吃煎炸熱氣食物,免引致喉嚨發
炎,病毒就由此攻入。

薑湯做法:
1. 約十公克的薑磨成糊狀。
2. 把薑糊放入玻璃杯裡。
3. 注入滾燙的熱開水。
4. 加入一匙蜂蜜,拌勻後飲用。

男女老少都適合飲用。
老薑切片或拍碎煮黑糖功效一樣 , 連續喝兩個月(每天早晚各喝一次 )據書本 記載的見證:
1. 身體變溫暖,手腳冰冷的『怕冷症』體質明顯改善。
2. 體重可減輕約十公斤。
3. 皮膚變得細嫩。
4. 去掉多餘贅肉,腰圍變細。

薑對身體很有益處,愛美又想要健康的人,不妨試試看吧!
祝身體健康!

熱門瘦身食譜排行榜Top5 - http://forward.hkwebs.net/archives/7721

冬天多吃莓果養顏排毒又減肥 (strawberry) - http://forward.hkwebs.net/archives/7818

長期食素加速衰老 - http://forward.hkwebs.net/archives/7816

Food good for slim and skin - http://forward.hkwebs.net/archives/7912

10 good food... - http://forward.hkwebs.net/archives/8043

Food to help hair - http://www.yimho.com/1425.html

地中海膳食模式——一种富于水果、蔬菜、坚果、全谷物和富含不饱和脂肪酸的鱼类的膳食, 食用三文鱼, 水果,击退中风, 放下苏打,端起咖啡, 酒精:始终都要节制, 巧克力——更多时候依然视为氧化剂, 什么不能吃:限制碳水化合物, 红肉 - http://neuro.dxy.cn/article/45615

日日食花生 更健康更長命 - http://thehousenews.com[..]%A5%E5%BA%B7%E6%9B%B4%E9%95%B7%E5%91%BD/

busy-students-eat-healthier - http://list25.com[..]lp-busy-students-eat-healthier/?view=all

(google search) (amazon search)


Fri Mar 10 17:49:16 HKT 2017 From /weblog/java/concurrency

Map


putall can cause ConcurrentModifcationException - http://cr.openjdk.java.net[..]ses/sun/management/Agent.java.sdiff.html

Note on writing CopyOnWrite wrapper - http://flyingspaniel.blogspot.com[..]ot.com/2010/12/copyonwrite-wrappers.html

Sometime this is a bit difficult for Chinese to be a good programmer, recently some colleague and me discuss about the behaviour of this class and look like we have difficult understanding

A: ConcurrentHashMap support for locking as this is thread-safe
B: ConcurrentHashMap is thread safe for read but not for write because there is no lock, we still need to have external lock to keep it thread safe. By the way, I get ConcurrentModificationException from this before.
C: ConcurrentHashMap don't support for locking but they still thread safe for all operations, which is how "This class is fully interoperable with Hashtable in programs that rely on its thread safety but not on its synchronization details." mentioned.

Too good that we can actually take a look at the source code to see what going on nowadays rather than just guessing - http://www.google.com[..]HashMap&sourceid=opera&ie=utf-8&oe=utf-8 By the way, this constructor is useful for a lot of concurrency access but actually not many developer notice about this - http://java.sun.com[..]rrentHashMap.html#ConcurrentHashMap(int, float, int)

Lazy initialization of map values - http://artisans-serverintellect-com.si-eioswww6.com[..]ect-com.si-eioswww6.com/default.asp?W122

HashMap.get() can cause infinite loop - http://lightbody.net[..]5/07/hashmapget_can_cause_an_infini.html

Discussing the effect of initCapacity() of HashMap in Java - http://saloon.javaranch.com[..]ltimatebb.cgi?ubb=get_topic&f=1&t=021171

OpenJDK and HashMap …. Safely Teaching an Old Dog New (Off-Heap!) Tricks - http://www.infoq.com/articles/Open-JDK-and-HashMap-Off-Heap

We can run search in ConcurrenctHashMap - https://dzone.com/articles/concurrenthashmap-in-java8

(google search) (amazon search)


Thu Mar 09 23:13:09 HKT 2017 From /weblog/design

visibility


Someone saying that having private method is anti-pattern, here is the discussion - http://www.infoq.com/news/2008/01/private-methods-tdd-design

Discussion of encapsulation - http://niket-this.blogspot.com[..]/encapsulation-does-it-really-exist.html

My view on this is that most of the time there's little value in self-encapsulation. The value of encapsulation is proportional to the scope of the data access. Classes are usually small (at least mine are) so direct access isn't going to be an issue within that scope. Most accessors are simple assignments for the setter and retrieval for the getter, so there's little value in using them internally. - https://martinfowler.com/bliki/SelfEncapsulation.html

(google search) (amazon search)


Tue Mar 07 22:50:23 HKT 2017 From /weblog/computer+science

Linguistics


Introduction of various java linguistics tools:

Lingpipe
OpenNLP
opennlp.maxent
Inflector

http://www.devx.com[..]/Article/35088/1954?pf=true#codeitemarea

Authors homepage - http://www.rodcoffin.com/ http://netsmith.blogspot.com/

Some other Natural Language Processing links - http://www.markhneedham.com[..]-attempt-at-natural-language-processing/

How google improve the translation - https://research.googleblog.com[..]016/09/a-neural-network-for-machine.html

(google search) (amazon search)


Wed Mar 01 00:26:23 HKT 2017 From /weblog/house

medical


free to ask medical advice:

http://www.netdoctor.co.uk/
http://www.healthcentral.com/
http://www.healthy.net/
https://www.verywell.com/

if you English is good

If not:
http://www.24drs.com/
http://www.lt3000.com/big5/index.html



(google search) (amazon search)


Tue Feb 28 17:10:49 HKT 2017 From /weblog/java/fundamental

java.lang.ref


Overview of weak, soft and Phantom References
Second, PhantomReferences avoid a fundamental problem with finalization: finalize() methods can "resurrect" objects by creating new strong references to them. So what, you say? Well, the problem is that an object which overrides finalize() must now be determined to be garbage in at least two separate garbage collection cycles in order to be collected. When the first cycle determines that it is garbage, it becomes eligible for finalization. Because of the (slim, but unfortunately real) possibility that the object was "resurrected" during finalization, the garbage collector has to run again before the object can actually be removed. And because finalization might not have happened in a timely fashion, an arbitrary number of garbage collection cycles might have happened while the object was waiting for finalization. This can mean serious delays in actually cleaning up garbage objects, and is why you can get OutOfMemoryErrors even when most of the heap is garbage.

With PhantomReference, this situation is impossible -- when a PhantomReference is enqueued, there is absolutely no way to get a pointer to the now-dead object (which is good, because it isn't in memory any longer). Because PhantomReference cannot be used to resurrect an object, the object can be instantly cleaned up during the first garbage collection cycle in which it is found to be phantomly reachable. You can then dispose whatever resources you need to at your convenience.

Arguably, the finalize() method should never have been provided in the first place. PhantomReferences are definitely safer and more efficient to use, and eliminating finalize() would have made parts of the VM considerably simpler. But, they're also more work to implement, so I confess to still using finalize() most of the time. The good news is that at least you have a choice.

http://weblogs.java.net[..]las/archive/2006/05/understanding_w.html

The other valuable reference about object life cycle - http://java.sun.com[..]ormance/1st_edition/html/JPAppGC.fm.html

Incorrect use of reference can cause GC issue - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4405807

one more related blog - http://www.egimaben.com[..]garbage-collector-and-reference-objects/

(google search) (amazon search)


Tue Feb 28 16:39:40 HKT 2017 From /weblog/java/performance

tools


Free online GC log Analyzer - http://gceasy.io/

Free online thread analyzer - http://fastthread.io/

https://dzone.com[..]y-and-cpu-monitoring-tools-and-technique

(google search) (amazon search)


Tue Feb 28 00:03:14 HKT 2017 From /weblog/science/animal

dog


about-search-and-rescue-dogs - http://list25.com[..]arch-and-rescue-dogs-youll-want-to-know/

(google search) (amazon search)


Mon Feb 27 20:11:29 HKT 2017 From /gallery/Home/YimKan/htc

VIDEO0021



(google search) (amazon search)


Mon Feb 27 20:11:13 HKT 2017 From /gallery/Home/YimKan/htc

VIDEO0020



(google search) (amazon search)


Mon Feb 27 20:10:17 HKT 2017 From /gallery/Home/YimKan/htc

VIDEO0019



(google search) (amazon search)


Sat Feb 25 18:26:46 HKT 2017 From /weblog/software_engineering/testing

best practices


Consider the risk of not being tested - http://googletesting.blogspot.com.au[..]sting-on-toilet-risk-driven-testing.html

Fidelity, Resilience, Precision - http://googletesting.blogspot.com.au[..]testing-on-toilet-effective-testing.html

Attributes that unit test should have: Functionality, Accuracy, Instant, Locator - http://www.gilzilberfeld.com/2014/04/what-is-unit-test.html

Isolation - http://agileinaflash.blogspot.com[..]/2012/04/is-your-unit-test-isolated.html

Tips of keeping unit tests running fast - http://www.java-tv.com/2012/03/06/speeding-up-java-test-code/

Testing Patterns - http://c2.com/cgi/wiki?TestingPatterns

Continuously to break thing so that we know our system is solid - http://www.codinghorror.com[..]11/04/working-with-the-chaos-monkey.html

First rule - http://fishbowl.pastiche.org[..]08/10/01/nothing_is_too_trivial_to_test/

Test first/last is not important? Unit test either? What do you think? http://beust.com/weblog/archives/000477.html

* The name of the test should describe the requirement of the code
* There should be at least one test for each requirement of the code. Each possible path through of the code is a different requirement#
* Test the goal of the code, not the implementation

http://xprogramming.com/xpmag/testFirstGuidelines.htm http://www.theserverside.com[..]AppQuality&asrc=EM_NLN_761453&uid=703565 http://www.coopercode.net[..]og/2007/08/how-not-to-run-beta-test.html

The teaser: Fast, Isolated, Repeatable, Self-validating, and Timely. - http://blog.objectmentor.com[..]es/2007/08/02/not-a-task-but-an-approach http://blog.objectmentor.com/articles/2007/08/02/which-came-first

Corner cases - http://testobsessed.com[..]s/2007/02/testheuristicscheatsheetv1.pdf

One of the targets of TDD coding - http://haacked.com[..]e-code-is-about-managing-complexity.aspx

Design for unit test - http://www.theserverside.com[..]es/content/DesigntoUnitTest/article.html http://openmymind.net/A-Decade-Of-Unit-Testing/

Push and Pull approach -
http://www.richarddurnall.com/?p=10
http://www.richarddurnall.com/?p=15
http://www.richarddurnall.com/?p=31

When not to test - http://www.junitmax.com/blog/?p=187

http://www.infoq.com/news/2009/06/love_agile_testing

Test the story, rather than the implementation - http://www.davesquared.net[..]ving-to-scenario-based-unit-testing.html

Test the configuration - http://searchsoftwarequality.techtarget.com[..]TSS10ctqa&asrc=EM_NLN_8746433&uid=703565

Feel the deep synergy of design and test constraint - http://michaelfeathers.typepad.com[..]athers_blog/2007/09/the-deep-synerg.html

Another set of principles for automated testing - http://a-sisyphean-task.blogspot.com[..]of-principles-for-automated-testing.html

Priority for tester - http://googletesting.blogspot.com[..]t.com/2011/01/new-years-resolutions.html

A lot of links - http://it-techexperts.com/tutorials/tutorials.asp http://testingspot.net/ http://www.exampler.com[..]-links-biased-toward-exploratory-testing

http://www.makinggoodsoftware.com[..]nit-tests-5-principles-for-unit-testing/

Some information and suggestion about setting up a local integrated testing environment - http://googletesting.blogspot.com.au[..]pot.com.au/2012/10/hermetic-servers.html

Virtual Panel: Code-to-Test Ratios, TDD and BDD - http://www.infoq.com/articles/virtual-panel-tdd-bdd

A test is complete when its body contains all of the information you need to understand it, and concise when it doesn't contain any other distracting information. - http://googletesting.blogspot.com.au[..]ting-on-toilet-what-makes-good-test.html

Discussion about naming the tests - http://www.codeaffine.com[..]14/03/17/getting-junit-test-names-right/ http://www.petrikainulainen.net[..]ting/writing-clean-tests-naming-matters/

http://googletesting.blogspot.com.au[..]esting-on-toilet-test-behaviors-not.html <- Test behaviour, not method. This will make your tests more resilient since adding new behaviors is unlikely to break the existing tests, and clearer since each test contains code to exercise only one behavior.

Tips on having better assertion or cleaner test - http://blog.codeleak.pl[..]ur-test-code-with-custom-assertions.html http://blog.jooq.org[..]-friday-most-internal-dsls-are-outdated/ http://www.petrikainulainen.net[..]ertions-with-a-domain-specific-language/

Good to prevent setup and tearDown? http://www.yegor256.com/2015/05/25/unit-test-scaffolding.html

#1 Treat Test Code as Production Code
#2 Use Test Patterns to achieve great readability
#3 Avoid Unreliable Tests
#4 Test at The Appropriate Level
#5 Do Use Test Doubles
http://www.thoughtworks.com[..]insights/blog/write-better-tests-5-steps

http://examples.javacodegeeks.com[..]om/core-java/junit/junit-best-practices/

Document ‘Why’, specify ‘What’, automate ‘How’ - https://gojko.net[..]/agile/2016/05/24/large-test-suites.html

(google search) (amazon search)


Thu Feb 23 22:03:20 HKT 2017 From /gallery/Home/YimKan/htc

VIDEO0016



(google search) (amazon search)