09
Oct

ccc

ccc

09
Oct

hello

world

1f92df02

09
Oct

hello

world

1f92df02

12
Sep

百付宝,好没有创意的名称啊

百付宝,好没有创意的名称啊


200809121400.jpg
18
Aug

TestNG vs JUnit

经常被人们拿来与JUnit进行比较的框架是TestNG,它的灵感来源于JUnit。Michael Minella提供了一个JUnit和TestNG的简洁但有用的对比表。

特性 JUnit TestNG
用户自定义生命周期 check check
测试的组织(组等等) check
分布式测试 check
并行测试 check
数据驱动测试 check
依赖测试 check
IDE集成 check check
Ant集成 check check
Maven集成 check check
特定领域的扩展(数据库、HTTP等) check
活跃的社区 check check


来源

为了总结其想法,他采用了JUnit并对其进行了比TestNG更多的扩展,然而TestNG似乎提供了更多的功能,它还可以调用JUnit测试,这使其成为测试框架的一个诱人之选。

16
Aug

google app engine

用好,学习Python中。。。

16
Aug

虎跳峡

DSC01753

21
Jul

代码高亮测试

下面是代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
import java.util.Locale;
 
import javax.servlet.http.HttpServletRequest;
 
import org.apache.tiles.context.TilesRequestContext;
import org.apache.tiles.locale.impl.DefaultLocaleResolver;
 
import org.springframework.web.servlet.support.RequestContextUtils;
 
/**
 * Tiles LocaleResolver adapter that delegates to a Spring
 * {@link org.springframework.web.servlet.LocaleResolver},
 * exposing the DispatcherServlet-managed locale.
 *
 * <p>This adapter gets automatically registered by {@link TilesConfigurer}.
 * If you are using standard Tiles bootstrap, specify the name of this class
 * as value for the init-param "org.apache.tiles.locale.LocaleResolver".
 *
 * @author Juergen Hoeller
 * @since 2.5
 * @see org.apache.tiles.definition.UrlDefinitionsFactory#LOCALE_RESOLVER_IMPL_PROPERTY
 */
public class SpringLocaleResolver extends DefaultLocaleResolver {
 
	public Locale resolveLocale(TilesRequestContext context) {
		if (context.getRequest() instanceof HttpServletRequest) {
			return RequestContextUtils.getLocale((HttpServletRequest) context.getRequest());
		}
		else {
			return super.resolveLocale(context);
		}
	}
 
}
</p>

上面是代码

19
Jul

Ecto 测试

测试内容

图片

18
Jul

MarsEdit

测试
1292-8_966_4-embed.jpg

18
Jul

地图试试

下面是地图

地图图像
18
Jul

来个带图片的

图片一张1290-8_966_2-embed 刀刀

18
Jul

通过Windows Live Writer发布日志测试

现在来个纯文字的试试

18
Jul

刀刀

刀刀很可爱

17
Jul

Blog测试一篇

生活,问题

问题,生活