Skip to content

Commit

Permalink
extra enconding test
Browse files Browse the repository at this point in the history
git-svn-id: http://jcouchdb.googlecode.com/svn/trunk@227 b28efbb6-974e-0410-a7d0-456cb01d9dc4
  • Loading branch information
fforw@gmx.de committed Oct 28, 2009
1 parent fd754ea commit e19039c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/org/jcouchdb/db/EncodingTestCase.java
@@ -0,0 +1,26 @@
package org.jcouchdb.db;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

import org.jcouchdb.document.BaseDocument;
import org.junit.Test;

public class EncodingTestCase
{
@Test
public void test()
{
Database db = LocalDatabaseTestCase.createDatabaseForTest();
BaseDocument doc = new BaseDocument();
doc.setProperty("value", "Hello \u00e4\u00f6\u00fc");

db.createDocument(doc);

BaseDocument doc2 = db.getDocument(BaseDocument.class, doc.getId());
assertThat((String)doc2.getProperty("value"), is("Hello \u00e4\u00f6\u00fc"));

}


}

0 comments on commit e19039c

Please sign in to comment.