Package tests

Source Code of tests.ContextFolderTest

package tests;

import java.io.IOException;

import org.stringtree.mojasef.apps.ContextURLRouter;
import org.stringtree.util.MethodCallUtils;
import org.stringtree.util.spec.SpecReader;

public class ContextFolderTest extends FolderTestCase {
   
    public void setUp() throws IOException {
        super.setUp();
        SpecReader.load(context, "src/test/files/contextfolder.spec");
        folder = new ContextURLRouter("folder");
        MethodCallUtils.call(folder, "init", context);
    }

    public void testFolderSpecPresentInContext() {
        assertNotNull(context.getObject("folder"));
    }
}
TOP

Related Classes of tests.ContextFolderTest

TOP
Copyright © 2018 www.massapi.com. 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.