Package org.nxplanner

Examples of org.nxplanner.XPlannerTestSupport


    public TestDecimalFormat(String name) {
        super(name);
    }

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


    private XPlannerTestSupport support;
    private final String OID_STRING = "11";

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        support.request.setParameterValue("oid", new String[]{OID_STRING});
        setUpThreadSession();
        action = new ViewObjectAction();
    }
View Full Code Here

        mockSessionControl = MockControl.createControl(Session.class);
        mockSession = (Session)mockSessionControl.getMock();
        mockQueryControl = MockControl.createControl(Query.class);
        mockQuery = (Query)mockQueryControl.getMock();
        ThreadSession.set(mockSession);
        support = new XPlannerTestSupport();
        support.setUpSubjectInRole("editor");
        ThreadServletRequest.set(support.request);
        domainObject = new Project();
        adapter = new RepositoryHistoryAdapter(Project.class, mockObjectRepository);
    }
View Full Code Here

    private Level logLevel = Logger.getRootLogger().getLevel();
    private final int PROJECT_ID = 123;

    public void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        support.setForward("display", "DISPLAY");
        support.setForward("error", "ERROR");
        mockSession = new MockSession();
        mockSession.connectionReturn = support.connection;
        mockSessionFactory = new MockSessionFactory();
View Full Code Here

        mockObjectRepositoryControl = MockControl.createControl(ObjectRepository.class);
        mockObjectRepository = (ObjectRepository)mockObjectRepositoryControl.getMock();
        mockSessionControl = MockControl.createControl(Session.class);
        mockSession = (Session)mockSessionControl.getMock();
        ThreadSession.set(mockSession);
        support = new XPlannerTestSupport();
        support.setUpSubjectInRole("editor");
        ThreadServletRequest.set(support.request);
        mockAuthorizerControl = MockControl.createControl(Authorizer.class);
        mockAuthorizer = (Authorizer)mockAuthorizerControl.getMock();
        SystemAuthorizer.set(mockAuthorizer);
View Full Code Here

    private XPlannerTestSupport support;
    private UserStoryEditorForm form;

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        form = new UserStoryEditorForm();
        form.setName("name");
    }
View Full Code Here

    public TestDispatchForwardAction(String testName) {
        super(testName);
    }

    public void setUp() throws Exception {
        support = new XPlannerTestSupport();
        support.setUpMockAppender();
        support.setForward("@secure", "false");
        authorizer = new MockAuthorizer();
        authorizer.hasPermissionReturns = new Boolean[]{Boolean.TRUE};
        action = new DispatchForward();
View Full Code Here

    private XPlannerTestSupport support;
    private NoteEditorForm form;

    protected void setUp() throws Exception {
        support = new XPlannerTestSupport();
        form = new NoteEditorForm();
        form.setSubject("subject");
        form.setBody("body");
        FormFile testFile = new DiskFile("data/TestAttachment.txt");
        form.setFormFile(testFile);
View Full Code Here

    private XPlannerTestSupport support;
    public int OID = 11;

    public void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        expectObjectRepositoryAccess(Project.class);
        setUpThreadSession();
        action = new DeleteObjectAction();
        action.setServlet(support.actionServlet);
        action.setMetaRepository(mockMetaRepository);
View Full Code Here

    private Task task3;
    private ArrayList tasks;

    protected void setUp() throws Exception {
        super.setUp();
        support = new XPlannerTestSupport();
        support.setForward(AbstractAction.TYPE_KEY, UserStory.class.getName());
        long now = new Date().getTime();
        TimeEntry t1 = new TimeEntry();
        t1.setStartTime(new Date(now - 3600000));
        t1.setEndTime(new Date(now));
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.