Examples of ProjectImpl


Examples of com.intellij.openapi.project.impl.ProjectImpl

    }
    return module;
  }

  protected void readJdomExternalizables(ModuleImpl module) {
    final ProjectImpl project = ((ProjectImpl)myProject);
    project.setOptimiseTestLoadSpeed(false);
    final ModuleRootManagerImpl moduleRootManager = (ModuleRootManagerImpl)ModuleRootManager.getInstance(module);
    module.getStateStore().initComponent(moduleRootManager);
    project.setOptimiseTestLoadSpeed(true);
  }
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

        Calendar calendar2 = Calendar.getInstance();
        calendar2.set(Calendar.DAY_OF_YEAR, calendar2.get(Calendar.MONTH) - 2);

        Calendar calendar3 = Calendar.getInstance();

        Project basicProject = new ProjectImpl();

        iteration1.setProject(basicProject);
        iteration1.setStartDate(calendar1.getTime());
        iteration1.setEndDate(calendar3.getTime());
        iteration1.setPersistanceVersion(1);
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

        Calendar calendar2 = Calendar.getInstance();
        calendar2.set(Calendar.DAY_OF_YEAR, calendar2.get(Calendar.DAY_OF_YEAR) - 2);

        Calendar calendar3 = Calendar.getInstance();

        Project basicProject = new ProjectImpl();

        iteration1.setProject(basicProject);
        iteration1.setStartDate(calendar3.getTime());
        iteration1.setEndDate(calendar1.getTime());
        iteration1.setPersistanceVersion(1);
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

    public void testIsEqualsAndHashcodeWithSameStartDatesAndSameEndDateButDifferentProject() {

        Iteration iteration1 = new IterationImpl();
        Iteration iteration2 = new IterationImpl();

        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("A");
        basicProject1.setName("AA");
        basicProject1.setPersistanceId(1);
        basicProject1.setPersistanceVersion(1);
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("B");
        basicProject2.setName("BB");
        basicProject2.setPersistanceId(2);
        basicProject2.setPersistanceVersion(2);

        Calendar calendar1 = Calendar.getInstance();
        Calendar calendar2 = Calendar.getInstance();

        iteration1.setProject(basicProject1);
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

    public void testIsEqualsAndHashcodeWithSameStartDatesAndSameEndDateAndSameProject() {

        Iteration iteration1 = new IterationImpl();
        Iteration iteration2 = new IterationImpl();

        Project basicProject1 = new ProjectImpl();
        basicProject1.setCode("A");
        basicProject1.setName("AA");
        basicProject1.setPersistanceId(1);
        basicProject1.setPersistanceVersion(1);
        Project basicProject2 = new ProjectImpl();
        basicProject2.setCode("A");
        basicProject2.setName("AA");
        basicProject2.setPersistanceId(1);
        basicProject2.setPersistanceVersion(1);

        Calendar calendar1 = Calendar.getInstance();
        Calendar calendar2 = Calendar.getInstance();

        iteration1.setProject(basicProject1);
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

       
        mockBasicProjectProxyUtil = new MockProjectProxyUtil();
       
        iteration = new IterationImpl();
       
        project = new ProjectImpl();
       
        // create iterationRepository
        iterationRepository = new IterationRepositoryImpl(mockIterationMapper, mockBasicProjectProxyUtil);
       
        MockCore.reset();
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

     */
    public void testAddOrUpdate() {

        iteration.setProject(project);
       
        Project basicProjectTarget = new ProjectImpl();
       
        mockBasicProjectProxyUtil.expectGetTarget(project, basicProjectTarget);
       
        mockIterationMapper.expectAddOrUpdate(iteration);
       
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

    public void testFindByProjectPersistanceId() {
       
       Set<Iteration> set = new HashSet<Iteration>();
      
       Iteration iteration1 = new IterationImpl();
       Project basicProject1 = new ProjectImpl();
       iteration1.setProject(basicProject1);
       iteration1.setStartDate(new Date());

       Iteration iteration2 = new IterationImpl();
       Project basicProject2 = new ProjectImpl();
       iteration2.setProject(basicProject2);
       iteration2.setStartDate(new Date());
       iteration2.setEndDate(new Date());
      
       set.add(iteration1);
       set.add(iteration2);
      
       mockIterationMapper.expectFindByProjectPersistanceId(1, set);
      
       Project basicProjectToReturn = new ProjectImpl();

       MockCore.startBlock();
      
       mockBasicProjectProxyUtil.expectInjectDependencies(basicProject2, basicProjectToReturn);
       mockBasicProjectProxyUtil.expectInjectDependencies(basicProject1, basicProjectToReturn);
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

     * Test que la repository renvoit un Basic Project "Advised".
     */
    public void testFindByPersistanceId() {

        Iteration iteration = new IterationImpl();
        Project basicProject = new ProjectImpl();
        iteration.setProject(basicProject);
       
        Project basicProjectToReturn = new ProjectImpl();
       
        mockIterationMapper.expectFindById(1, iteration);
       
        mockBasicProjectProxyUtil.expectInjectDependencies(basicProject, basicProjectToReturn);
       
View Full Code Here

Examples of net.sf.pmr.core.domain.project.ProjectImpl

     * test la recherche d'une iteration par projet et par date quand tout est ok.
     */
    public void testFindByProjectPersistanceIdAndByDate() {
       
        Iteration iteration = new IterationImpl();
        Project basicProject = new ProjectImpl();
        iteration.setProject(basicProject);
       
        Project basicProjectToReturn = new ProjectImpl();
       
        Date date = new Date();
       
        mockIterationMapper.expectFindByProjectPersistanceIdAndByDate(1, date, iteration);
       
View Full Code Here
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.