Package com.google.code.greenwood.confluenceadvancedcodeblockplugin.servlets

Examples of com.google.code.greenwood.confluenceadvancedcodeblockplugin.servlets.DownloadListCodeServlet


public class DownloadListCodeServletTest {

  @Test
  public void testParseKeys() {
    DownloadListCodeServlet downloadServlet = new DownloadListCodeServlet();
   
    List<String> expected = Arrays.asList("com.google.code.advanced.codeblock.plugin.YXNkaHNhIGFzZHNhZGZvbw==","com.google.code.advanced.codeblock.plugin.HHODH09u7809u908dsjfn==");
    List<String> actual = downloadServlet.parseAllPagePropertyKeys("com.google.code.advanced.codeblock.plugin.YXNkaHNhIGFzZHNhZGZvbw==|com.google.code.advanced.codeblock.plugin.HHODH09u7809u908dsjfn==|");
    assertEquals(expected, actual);
   
    List<String> expected2 = new ArrayList<String>();
    List<String> actual2 = downloadServlet.parseAllPagePropertyKeys(null);
    assertEquals(expected2, actual2);
   
    List<String> expected3 = Arrays.asList("com.google.code.advanced.codeblock.plugin.YXNkaHNhIGFzZHNhZGZvbw==");
    List<String> actual3 = downloadServlet.parseAllPagePropertyKeys("com.google.code.advanced.codeblock.plugin.YXNkaHNhIGFzZHNhZGZvbw==|");
    assertEquals(expected3, actual3);
  }
View Full Code Here


    assertEquals(expected3, actual3);
  }
 
  @Test
  public void testDecodePropertyKey() throws UnsupportedEncodingException {
    DownloadListCodeServlet downloadServlet = new DownloadListCodeServlet();
    assertEquals("asdhsa asdsadfoo",downloadServlet.decodePropertyKey("YXNkaHNhIGFzZHNhZGZvbw=="));
  }
View Full Code Here

TOP

Related Classes of com.google.code.greenwood.confluenceadvancedcodeblockplugin.servlets.DownloadListCodeServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.