@@ -0,0 +1,1625 @@
+/**%0A * %0A */%0Apackage org.ccnx.ccn.test.repo;%0A%0Aimport java.util.ArrayList;%0A%0Aimport org.ccnx.ccn.impl.repo.RepositoryInfo;%0Aimport org.ccnx.ccn.protocol.ContentName;%0Aimport org.ccnx.ccn.test.impl.encoding.XMLEncodableTester;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0A/**%0A * @author smetters%0A *%0A */%0Apublic class RepositoryInfoTest %7B%0A%0A%09private static String CURRENT_VERSION = %221.4%22;%0A%09private static String DEFAULT_LOCAL_NAME = %22Repository%22;%0A%09private static String DEFAULT_GLOBAL_NAME = %22/parc.com/csl/ccn/Repos%22;%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link org.ccnx.ccn.impl.repo.RepositoryInfo#encode(org.ccnx.ccn.impl.encoding.XMLEncoder)%7D.%0A%09 */%0A%09@Test%0A%09public void testDecodeInputStream() throws Exception %7B%0A%09%09%0A%09%09RepositoryInfo ri = new RepositoryInfo(CURRENT_VERSION, DEFAULT_GLOBAL_NAME, DEFAULT_LOCAL_NAME);%0A%09%09RepositoryInfo dri = new RepositoryInfo();%0A%09%09RepositoryInfo bri = new RepositoryInfo();%0A%09%09XMLEncodableTester.encodeDecodeTest(%22RepositoryInfo%22, ri, dri, bri);%0A%09%09%0A%09%09ArrayList%3CContentName%3E names = new ArrayList%3CContentName%3E();%0A%09%09names.add(ContentName.fromNative(%22/aprefix/asuffix%22));%0A%09%09names.add(ContentName.fromNative(%22/aprefix/anothersuffix%22));%0A%09%09names.add(ContentName.fromNative(names.get(0), %22moresuffix%22));%0A%09%09RepositoryInfo rin = new RepositoryInfo(CURRENT_VERSION, DEFAULT_GLOBAL_NAME, DEFAULT_LOCAL_NAME, names);%0A%09%09RepositoryInfo drin = new RepositoryInfo();%0A%09%09RepositoryInfo brin = new RepositoryInfo();%0A%09%09XMLEncodableTester.encodeDecodeTest(%22RepositoryInfo(Names)%22, rin, drin, brin);%0A%09%7D%0A%0A%7D%0A

Test for RepositoryInfo refs #676