- Timestamp:
- 02/03/06 17:17:47 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestModelicaRoot.java
r285 r288 2 2 * This file is part of Modelica Development Tooling. 3 3 * 4 * Copyright (c) 2005, Link öpings universitet, Department of4 * Copyright (c) 2005, Link�pings universitet, Department of 5 5 * Computer and Information Science, PELAB 6 6 * … … 23 23 * distribution. 24 24 * 25 * * Neither the name of Link öpings universitet nor the names of its25 * * Neither the name of Link�pings universitet nor the names of its 26 26 * contributors may be used to endorse or promote products derived from 27 27 * this software without specific prior written permission. … … 138 138 TestModelicaRoot.class.getName() + "_MOD"; 139 139 140 /* name of a non existent project */ 141 private static final String PROJECT_NAME_NON_EXISTENT = 142 TestModelicaRoot.class.getName() + "_NON_EXISTENT"; 143 144 140 145 private IWorkspaceRoot workspaceRoot = 141 146 ResourcesPlugin.getWorkspace().getRoot(); … … 184 189 } 185 190 186 public void testProjectsEnumeration() throws CoreException 191 /** 192 * Test if IModelicaRoot.getProjects() (implemented by ModelicaRoot) 193 * works as prescribed. 194 */ 195 public void testGetProjects() throws CoreException 187 196 { 188 197 … … 211 220 } 212 221 } 222 223 /** 224 * Test if IModelicaRoot.getProject() (implemented by ModelicaRoot) 225 * works as prescribed. 226 */ 227 public void testGetProject() 228 { 229 IModelicaProject proj; 230 231 proj = modelicaRoot.getProject(PROJECT_NAME_1); 232 assertEquals(PROJECT_NAME_1, proj.getElementName()); 233 234 proj = modelicaRoot.getProject(PROJECT_NAME_3); 235 assertEquals(PROJECT_NAME_3, proj.getElementName()); 236 237 proj = modelicaRoot.getProject(PROJECT_NAME_2); 238 assertEquals(PROJECT_NAME_2, proj.getElementName()); 239 240 proj = modelicaRoot.getProject(PROJECT_NAME_NON_EXISTENT); 241 assertNull("hmm, an non-existent project found?", proj); 242 } 243 213 244 214 245 /**
Note: See TracChangeset
for help on using the changeset viewer.