Package org.nxplanner

Examples of org.nxplanner.XPlannerTestSupport


    private XPlannerTestSupport support;
    private OutlineTag outlineTag;
    private Properties properties;

    public void setUp() throws Exception {
        support = new XPlannerTestSupport();
        properties = new XPlannerProperties().get();
        outlineTag = new OutlineTag();
        outlineTag.setPageContext(support.pageContext);
        support.mapping.setPath("/page.jsp");
        support.request.setContextPath("/xplanner");
View Full Code Here


    private MockControl mockFileSystemControl;
    private FileSystem mockFileSystem;

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        testNote = new Note();
        noteForm = new NoteEditorForm();
        fileContent = "XXXXXX";
        blob = new MockBlob();
        blob.getBinaryStreamReturn = new ByteArrayInputStream(fileContent.getBytes());
View Full Code Here

    private XPlannerTestSupport support;
    private PersonTimesheetForm form;

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        support.resources.setMessage("format.date", "yyyy-MM-dd");
        support.request.setLocale(new Locale("da", "nl"));
        form = new PersonTimesheetForm();
        form.setServlet(support.actionServlet);
        form.setTimesheet(this.buildTimesheet());
View Full Code Here

        super(testName);
    }

    public void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        support.setForward(AbstractAction.TYPE_KEY, Project.class.getName());
        mockAbstractEditorFormControl = MockClassControl.createControl(AbstractEditorForm.class);
        mockAbstractEditorForm = (AbstractEditorForm)mockAbstractEditorFormControl.getMock();
        mockDomainObjectControl = MockClassControl.createControl(DomainObject.class);
        mockDomainObject = (DomainObject)mockDomainObjectControl.getMock();
View Full Code Here

            this.value = value;
        }
    }

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        tag = new DummyLinkTag();
        tag.setPageContext(support.pageContext);
        support.mapping.setPath("/page.jsp");
        support.request.setAttribute(Globals.MAPPING_KEY, support.mapping);
    }
View Full Code Here

        super(s);
    }

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
    }
View Full Code Here

    private XPlannerTestSupport support;
    private TaskEditorForm form;

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        support.resources.setMessage("format.date", "yyyy-MM-dd");
        form = new TaskEditorForm();
        form.setName("name");
    }
View Full Code Here

    protected static Iteration ITERATION_1_1;
    private static final String TASK_PREFIX = "Test Task";

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        support.setUpSubject(XPlannerTestSupport.DEFAULT_PERSON_USER_ID,new String[]{});
        authorizer = new MockAuthorizer();
        SystemAuthorizer.set(authorizer);
        ThreadSession.set(support.hibernateSession);
        SelectTag selectTag = new SelectTag();
View Full Code Here

    private XPlannerTestSupport support;
    private AggregateTimesheetForm form;

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        support.resources.setMessage("format.date", "yyyy-MM-dd");
        support.request.setLocale(new Locale("da", "nl"));
        form = new AggregateTimesheetForm();
        form.setServlet(support.actionServlet);
        form.setTimesheet(this.buildTimesheet());
View Full Code Here

    ProgressBarImageTag tag = new ProgressBarImageTag();
    private XPlannerTestSupport support;

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        tag.setPageContext( support.pageContext );
    }
View Full Code Here

TOP

Related Classes of org.nxplanner.XPlannerTestSupport

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.