Package org.nxplanner.export

Examples of org.nxplanner.export.IterationDataSource


      if (object instanceof Iteration) {
         Iteration iteration = (Iteration)object;

         try {
            ds = new IterationDataSource(iteration, session);
         } catch (HibernateException he) {
            throw new ExportException(he);
         }

         reportStream = PdfReportExporter.class.getClassLoader().getResourceAsStream("org/nxplanner/export/reports/JRIteration.jasper");
View Full Code Here


        iteration = newIteration(project);
        story = newUserStory(iteration);
    }

    public void testNext_OneStoryNoTask() throws Exception {
        source = new IterationDataSource(iteration, session);
        assertFieldValues(story, null);
        assertFalse("next", source.next());
    }
View Full Code Here

        assertFalse("next", source.next());
    }

    public void testNext_OneStoryWithTask() throws Exception {
        task = newTask(story);
        source = new IterationDataSource(iteration, session);
        assertFieldValues(story, task);
        assertFalse("next", source.next());
    }
View Full Code Here

        UserStory anotherStory = newUserStory(iteration);
        anotherStory.setName("zzzz"); //second in alphabetical order
        anotherStory.setPriority(1); //first in priority order
        Task anotherTask = newTask(anotherStory);
        anotherTask.setName("zzz task");
        source = new IterationDataSource(iteration, session);
        assertFieldValues(anotherStory, anotherTask);
        assertFieldValues(story, task);
        assertFalse("next", source.next());
    }
View Full Code Here

TOP

Related Classes of org.nxplanner.export.IterationDataSource

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.