<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.kwonnam.pe.kr/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.kwonnam.pe.kr/feed.php">
        <title>권남 java:junit</title>
        <description></description>
        <link>http://wiki.kwonnam.pe.kr/</link>
        <image rdf:resource="http://wiki.kwonnam.pe.kr/lib/tpl/default/images/favicon.ico" />
       <dc:date>2012-05-20T22:52:26+09:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.kwonnam.pe.kr/java/junit/dbunit?rev=1335495184&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.kwonnam.pe.kr/java/junit/hamcrest?rev=1326731369&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.kwonnam.pe.kr/java/junit/staticimports?rev=1327129320&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.kwonnam.pe.kr/lib/tpl/default/images/favicon.ico">
        <title>권남</title>
        <link>http://wiki.kwonnam.pe.kr/</link>
        <url>http://wiki.kwonnam.pe.kr/lib/tpl/default/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.kwonnam.pe.kr/java/junit/dbunit?rev=1335495184&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-04-27T11:53:04+09:00</dc:date>
        <title>java:junit:dbunit</title>
        <link>http://wiki.kwonnam.pe.kr/java/junit/dbunit?rev=1335495184&amp;do=diff</link>
        <description>*  Spring Test DBUnit</description>
    </item>
    <item rdf:about="http://wiki.kwonnam.pe.kr/java/junit/hamcrest?rev=1326731369&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-01-17T01:29:29+09:00</dc:date>
        <title>java:junit:hamcrest</title>
        <link>http://wiki.kwonnam.pe.kr/java/junit/hamcrest?rev=1326731369&amp;do=diff</link>
        <description>*  &lt;http://code.google.com/p/hamcrest/&gt;

hasProperty

	*  hasProperty : CoreMatchers가 아니 Matchers에 있다.
	*  객체의 전체를 비교하지 않고 일부 필드의 값만 비교하고자 할 때 사용한다. 특히, 컬렉션과 연동해서 사용할 때 좋다.
	*  단일 객체 비교

User user = new User(&quot;이하늬&quot;, 20, &quot;몰라&quot;); // name, age, description

// 테스트 결과 Matchers.&lt;Type&gt;hasProperty(..) 형태로 사용해야만 제대로 작동했다.
assertThat(user, Matchers.&lt;User&gt;hasProperty(&quot;name&quot;, is(&quot;이하늬&quot;)));

user = new User(null, 20, &quot;몰라&quot;); // name, age, description
assertThat(user, Matchers.&lt;User&gt;hasProperty(&quot;name&quot;, nullValue…</description>
    </item>
    <item rdf:about="http://wiki.kwonnam.pe.kr/java/junit/staticimports?rev=1327129320&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-01-21T16:02:00+09:00</dc:date>
        <title>java:junit:staticimports</title>
        <link>http://wiki.kwonnam.pe.kr/java/junit/staticimports?rev=1327129320&amp;do=diff</link>
        <description>import static com.xlgames.support.test.ReflectionInjectorUtils.*;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;</description>
    </item>
</rdf:RDF>

