本文整理汇总了Java中net.sf.memoranda.ProjectManager.getAllProjectsNumber方法的典型用法代码示例。如果您正苦于以下问题:Java ProjectManager.getAllProjectsNumber方法的具体用法?Java ProjectManager.getAllProjectsNumber怎么用?Java ProjectManager.getAllProjectsNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.memoranda.ProjectManager
的用法示例。
在下文中一共展示了ProjectManager.getAllProjectsNumber方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import net.sf.memoranda.ProjectManager; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
IconFontSwing.register(GoogleMaterialDesignIcons.getIconFont());
projBeforeTest = ProjectManager.getAllProjectsNumber();
activeProjBeforeTest = ProjectManager.getActiveProjectsNumber();
tp1 = ProjectManager.createProject("testProj1", new CalendarDate(1,3,2017), new CalendarDate(1,4,2017));
tp2 = ProjectManager.createProject("testProj2", new CalendarDate(1,3,2017), null);
tp3 = ProjectManager.createProject("testProj3", new CalendarDate(1,3,2017), new CalendarDate(15,3,2017));
tp4 = ProjectManager.createProject("testProj4", new CalendarDate(1,4,2017), new CalendarDate(1,5,2017));
tp5 = ProjectManager.createProject("testProj5", new CalendarDate(1,4,2017), new CalendarDate(1,5,2017), "Green");
CurrentDate.set(new CalendarDate(17,3,2017));
}
示例2: testRemove
import net.sf.memoranda.ProjectManager; //导入方法依赖的package包/类
@Test
public void testRemove(){
int totalBefore = ProjectManager.getAllProjectsNumber();
ProjectManager.removeProject(tp1.getID());
ProjectManager.removeProject(tp4.getID());
assertEquals(totalBefore-2,ProjectManager.getAllProjectsNumber());
Vector allProj = ProjectManager.getAllProjects();
boolean correctProj = true;
for(Object o: allProj){
correctProj &= !((Project)o).getTitle().equals("testProj1") && !((Project)o).getTitle().equals("testProj4");
}
assertTrue(correctProj);
}
示例3: getRowCount
import net.sf.memoranda.ProjectManager; //导入方法依赖的package包/类
@Override
public int getRowCount() {
if (activeOnly) {
return ProjectManager.getActiveProjectsNumber();
}
return ProjectManager.getAllProjectsNumber();
}
示例4: getRowCount
import net.sf.memoranda.ProjectManager; //导入方法依赖的package包/类
public int getRowCount() {
if (activeOnly)
return ProjectManager.getActiveProjectsNumber();
return ProjectManager.getAllProjectsNumber();
}
示例5: setUp
import net.sf.memoranda.ProjectManager; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
allProj = ProjectManager.getAllProjectsNumber();
}