public void testProfind() throws Exception {
    Aradon aradon =
        AradonTester.create()
            .mergeSection("")
            .addLet("/", "webdav", IMatchMode.STARTWITH, WebDavLet.class)
            .putAttribute(VFSEntry.class.getCanonicalName(), VFSEntry.test())
            .getAradon();

    String text =
        ""
            + "<?xml version=\"1.0\" ?>\n"
            + "<D:propfind xmlns:D=\"DAV:\">\n"
            + "        <D:allprop/>\n"
            + "</D:propfind>\n";

    StringRepresentation re = new StringRepresentation(text);

    final IAradonRequest request =
        AradonClientFactory.create(aradon).createRequest("/AbstractFileSystem.java");
    request.addHeader("Depth", "1");

    Representation r = request.setEntity(re).get();
    Debug.line(r);

    aradon.startServer(9002);
    new InfinityThread().startNJoin();
  }
예제 #2
0
 @Before
 public void setUp() throws Exception {
   this.aradon =
       Aradon.create(
           Configuration.newBuilder()
               .aradon()
               .addAttribute("cacheName", "c1")
               .sections()
               .restSection("")
               .path("hello")
               .addUrlPattern("/hello")
               .handler(SimpleLet.class)
               .aradon()
               .sections()
               .restSection("other")
               .path("hello")
               .addUrlPattern("/hello")
               .handler(SimpleLet.class)
               .build());
 }
예제 #3
0
 @Test
 public void testHelloLet() throws Exception {
   Aradon myaradon = Aradon.create("resource/config/readonly-config.xml"); // load HiLet
 }
예제 #4
0
  @Test
  public void startUp() throws Exception {

    Future<Radon> future = aradon.toRadon(9000).start();
    future.get();
  }