@@ -0,0 +1,1814 @@
+package org.apache.ode.axis2;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport javax.servlet.ServletException;%0Aimport java.io.File;%0A%0Aimport org.junit.Test;%0A%0A/**%0A *%0A */%0Apublic class ODEServerTest extends TestCase %7B%0A%0A    public void testNonExistingRootDir() %7B%0A        String ghostDir = %22/%22 + System.currentTimeMillis();%0A        assertFalse(%22This test requires a non existing directory%22, new File(ghostDir).isDirectory());%0A        System.setProperty(%22org.apache.ode.rootDir%22, ghostDir);%0A        try %7B%0A            new ODEServer().init((String) null, null);%0A            fail(%22Should throw an IllegalArgumentException if the root dir does not exist%22);%0A        %7D catch (IllegalArgumentException e) %7B%0A            assertTrue(true);%0A        %7D catch (ServletException se) %7B%0A            fail(%22Should throw an IllegalArgumentException if the root dir does not exist%22);%0A        %7Dfinally %7B%0A            // reset to avoid side effects%0A            System.getProperties().remove(%22org.apache.ode.rootDir%22);%0A        %7D%0A    %7D%0A%0A    public void testNonExistingConfigDir() %7B%0A        String ghostDir = %22/%22 + System.currentTimeMillis();%0A        assertFalse(%22This test requires a non existing directory%22, new File(ghostDir).isDirectory());%0A        System.setProperty(%22org.apache.ode.configDir%22, ghostDir);%0A        try %7B%0A            new ODEServer().init(System.getProperty(%22user.dir%22), null);%0A            fail(%22Should throw an IllegalArgumentException if the config dir does not exist%22);%0A        %7D catch (IllegalArgumentException e) %7B%0A            assertTrue(true);%0A        %7D catch (ServletException se) %7B%0A            fail(%22Should throw an IllegalArgumentException if the config dir does not exist%22);%0A        %7Dfinally %7B%0A            // reset to avoid side effects%0A            System.getProperties().remove(%22org.apache.ode.configDir%22);%0A        %7D%0A    %7D%0A%7D%0A

add a unit test