KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > xstream > converters > collections > CharArrayConverterTest


1 package com.thoughtworks.xstream.converters.collections;
2
3 import com.thoughtworks.acceptance.AbstractAcceptanceTest;
4
5 public class CharArrayConverterTest extends AbstractAcceptanceTest {
6
7     public void testMarshallsCharArrayAsSingleString() {
8         char[] input = new char[] {'h','e','l','l','o'};
9
10         String JavaDoc expected = "<char-array>hello</char-array>";
11         assertBothWays(input, expected);
12     }
13 }
14
Popular Tags