<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_go4it</title><subtitle type="text">just do it</subtitle><id>http://feed.cnblogs.com/blog/u/41717/rss</id><updated>2010-08-15T00:42:33Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/41717/rss"/><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532424.html</id><title type="text">JUnit4学习（五）使用HttpUnit测试Html</title><summary type="text">测试1：测试网页是否存在： 要测试一個网页是否存在，只要简单的通过WebConversation的getResponse()方法即可，例如： WebConversation webConversation = new WebConversation(); webConversation.getResponse( 牋牋牋牋牋牋 "http://localhost:8080/httpUnit/"); ...</summary><published>2009-07-27T13:24:00Z</published><updated>2009-07-27T13:24:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532424.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532424.html"/><content type="text">测试1：测试网页是否存在： 要测试一個网页是否存在，只要简单的通过WebConversation的getResponse()方法即可，例如： WebConversation webConversation = new WebConversation(); webConversation.getResponse( 牋牋牋牋牋牋 "http://localhost:8080/httpUnit/"); ...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532421.html</id><title type="text">JUnit4学习（四）使用EasyMock进行测试</title><summary type="text">1.EasyMock总览： 接下来，让我告诉大家如何使用JUnit和EasyMock框架来进行单元测试。 我们的第一个例子非常简单，但是在现实情况下，你通常是在一些类里使用另外的一些类。在进行真正的测试之前，你可能需要做很多的工作，比喻说安置大量的环境代码，启动一种大型的、复杂的系统，可能是数据库、功过刘或者是某一种类型的IDE环境，你的预设环境代码需要是系统进入某种特定的状态，以便按照测试所需要...</summary><published>2009-07-27T13:16:00Z</published><updated>2009-07-27T13:16:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532421.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532421.html"/><content type="text">1.EasyMock总览： 接下来，让我告诉大家如何使用JUnit和EasyMock框架来进行单元测试。 我们的第一个例子非常简单，但是在现实情况下，你通常是在一些类里使用另外的一些类。在进行真正的测试之前，你可能需要做很多的工作，比喻说安置大量的环境代码，启动一种大型的、复杂的系统，可能是数据库、功过刘或者是某一种类型的IDE环境，你的预设环境代码需要是系统进入某种特定的状态，以便按照测试所需要...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532358.html</id><title type="text">JUnit4学习（三）Failure和Error</title><summary type="text">1.Failure Failure指的是由于预期的结果与实际运行的测试的结果不同而导致的，例如当使用assertEquals()或其它assertXXX()方法断言失败时，就会报出Failure，如果发现Faulure，你就要去检查你的测试方法或者是被测试方法中编写的逻辑是否有误。 2.Error Error指的是编写程序时没有考虑到的问题。在执行测试的断言之前，程序就因为某种类型的意外而停止，...</summary><published>2009-07-27T11:31:00Z</published><updated>2009-07-27T11:31:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532358.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532358.html"/><content type="text">1.Failure Failure指的是由于预期的结果与实际运行的测试的结果不同而导致的，例如当使用assertEquals()或其它assertXXX()方法断言失败时，就会报出Failure，如果发现Faulure，你就要去检查你的测试方法或者是被测试方法中编写的逻辑是否有误。 2.Error Error指的是编写程序时没有考虑到的问题。在执行测试的断言之前，程序就因为某种类型的意外而停止，...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532346.html</id><title type="text">JUnit4学习（二）异常和忽略测试</title><summary type="text">1.异常测试： 异常测试是 JUnit 4 中的最大改进。旧式的异常测试是在抛出异常的代码中放入 try 块，然后在 try 块的末尾加入一个 fail() 语句。例如，该方法测试被零除抛出一个 ArithmeticException：public void testDivisionByZero() {try {int n = 2 / 0;fail("Divided by zero!");}cat...</summary><published>2009-07-27T11:10:00Z</published><updated>2009-07-27T11:10:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532346.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532346.html"/><content type="text">1.异常测试： 异常测试是 JUnit 4 中的最大改进。旧式的异常测试是在抛出异常的代码中放入 try 块，然后在 try 块的末尾加入一个 fail() 语句。例如，该方法测试被零除抛出一个 ArithmeticException：public void testDivisionByZero() {try {int n = 2 / 0;fail("Divided by zero!");}cat...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532256.html</id><title type="text">Eclipse快捷键和模板</title><summary type="text">eclipse myeclipse 下使用模板 Template http://wangsong76.javaeye.com/blog/327311 1.设置alt+/ 网上广为流传的关于这个问题的版本里面，有一个最基础的东西，都没说，就是alt+/，如果不能插入模板怎么办？ 原因就是eclipse或者说myeclipse的alt+/ 所指向的命令没对。下面我详细说一下： 工具栏-&gt;Wind...</summary><published>2009-07-27T09:27:00Z</published><updated>2009-07-27T09:27:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532256.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1532256.html"/><content type="text">eclipse myeclipse 下使用模板 Template http://wangsong76.javaeye.com/blog/327311 1.设置alt+/ 网上广为流传的关于这个问题的版本里面，有一个最基础的东西，都没说，就是alt+/，如果不能插入模板怎么办？ 原因就是eclipse或者说myeclipse的alt+/ 所指向的命令没对。下面我详细说一下： 工具栏-&gt;Wind...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/27/1531862.html</id><title type="text">JUnit4学习（一）注解</title><summary type="text">1.注解方法： Annotation 含义 @Test public void method() 定义一个要测试的方法 @Before public void method() 在每一个测试之前都会被执行的方法，这个方法常常用来进行一 些测试环境的准备，比喻说读入输入数据，初始化类 @After public void method() 与@Before进行对应，做一个清理工作 @Befo...</summary><published>2009-07-27T03:21:00Z</published><updated>2009-07-27T03:21:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1531862.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/27/1531862.html"/><content type="text">1.注解方法： Annotation 含义 @Test public void method() 定义一个要测试的方法 @Before public void method() 在每一个测试之前都会被执行的方法，这个方法常常用来进行一 些测试环境的准备，比喻说读入输入数据，初始化类 @After public void method() 与@Before进行对应，做一个清理工作 @Befo...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531298.html</id><title type="text">JPA相关--Annotation</title><summary type="text">1.自定义注解import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.METHOD) //指定可以用在...</summary><published>2009-07-26T04:37:00Z</published><updated>2009-07-26T04:37:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531298.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531298.html"/><content type="text">1.自定义注解import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.METHOD) //指定可以用在...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531261.html</id><title type="text">JPA视频学习(六)联合主键</title><summary type="text">1.配置主键类import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Embeddable;/** * 1.提供无参数构造器 * 2.实现序列号接口 * 3.重写hashCode和equals方法 * @author Administrator * */@Embeddable //用在...</summary><published>2009-07-26T03:07:00Z</published><updated>2009-07-26T03:07:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531261.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531261.html"/><content type="text">1.配置主键类import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Embeddable;/** * 1.提供无参数构造器 * 2.实现序列号接口 * 3.重写hashCode和equals方法 * @author Administrator * */@Embeddable //用在...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531236.html</id><title type="text">JPA视频学习（五）双向多对多关联配置</title><summary type="text">1.配置persistence.xml和log4j 配置persistence.xml&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...</summary><published>2009-07-26T02:16:00Z</published><updated>2009-07-26T02:16:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531236.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/26/1531236.html"/><content type="text">1.配置persistence.xml和log4j 配置persistence.xml&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...</content></entry><entry><id>http://www.cnblogs.com/cxccbv/archive/2009/07/25/1531053.html</id><title type="text">JPA相关--配置Myeclipse的提示和MySql的默认数据库引擎</title><summary type="text">1.MyEclipse扩展功能设置（Eclipse代码提示功能扩展） http://yangyiqian.javaeye.com/blog/365900 摘要：一般默认情况下，Eclipse ，MyEclipse 的代码提示功能是比Microsoft Visual Studio的差很多的，主要是Eclipse，MyEclipse本身有很多选项是默认关闭的，要开发者自己去手动配置。如果开发者不清楚的...</summary><published>2009-07-25T13:25:00Z</published><updated>2009-07-25T13:25:00Z</updated><author><name>cxccbv</name><uri>http://www.cnblogs.com/cxccbv/</uri></author><link rel="alternate" href="http://www.cnblogs.com/cxccbv/archive/2009/07/25/1531053.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/cxccbv/archive/2009/07/25/1531053.html"/><content type="text">1.MyEclipse扩展功能设置（Eclipse代码提示功能扩展） http://yangyiqian.javaeye.com/blog/365900 摘要：一般默认情况下，Eclipse ，MyEclipse 的代码提示功能是比Microsoft Visual Studio的差很多的，主要是Eclipse，MyEclipse本身有很多选项是默认关闭的，要开发者自己去手动配置。如果开发者不清楚的...</content></entry></feed>
