![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
hedianxia
这个作者很懒,什么都没留下…
展开
-
策略模式
[align=center]Strategy pattern[/align] [b]Definition:[/b] The strategy pattern defines a family of algorithms,encapsulate each one,and makes them interchangeable.Strategy ...原创 2013-04-05 20:17:03 · 67 阅读 · 0 评论 -
Adapter
[align=center]Adapter[/align] Intent Convert the interface of a class into another interface that clients expect.Adatper let classes work together that couldn't otherwise because of incompatibl...原创 2013-04-20 09:35:31 · 72 阅读 · 0 评论 -
Junit参数化测试报No tests found Matching Methed
今天在用Junit进行单元测试的时候,遇到一个诡异的问题。测试代码如下: [b]Java类:Calculate.java[/b] [code="java"] public class Calculate { public int sum(int var1, int var2) { System.out.println("Adding values " + ...原创 2015-05-04 21:09:14 · 431 阅读 · 0 评论