- Timestamp:
- 10/21/05 11:42:57 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestModelicaRoot.java
r67 r84 64 64 private static final String PROJECT_NAME = "TestModelicaRoot"; 65 65 private static final String PROJECT_NAME2 = "TestModelicaRoot2"; 66 private static final String PROJECT_NAME3 = "TestModelicaRoot3 wee";66 private static final String PROJECT_NAME3 = "TestModelicaRoot3Closed"; 67 67 68 68 @Override … … 87 87 88 88 /* 89 * create a regular projects 89 * create a regular projects which remains closed 90 90 */ 91 91 project = workspaceRoot.getProject(PROJECT_NAME3); 92 92 project.create(null); 93 project.open(null);94 95 93 96 94 } … … 109 107 if (p instanceof IModelicaProject) 110 108 { 111 assertTrue("project without modelica nature wrapped", 109 if (((IModelicaProject)p).getProject().isOpen()) 110 { 111 assertTrue("project without modelica nature wrapped", 112 112 ((IModelicaProject)p).getProject().hasNature(MdtPlugin.MODELICA_NATURE)); 113 System.out.println("vanilla");113 } 114 114 } 115 115 else if (p instanceof IProject) 116 116 { 117 assertFalse("project with modelica nature not wrapped", 117 if (((IProject)p).isOpen()) 118 { 119 assertFalse("project with modelica nature not wrapped", 118 120 ((IProject)p).hasNature(MdtPlugin.MODELICA_NATURE)); 119 System.out.println("modelica");121 } 120 122 } 121 123 else … … 123 125 fail("unexpected type of project"); 124 126 } 125 System.out.println(p + " £ " + p.getClass().getName());126 127 } 127 128 } 128 129 catch (CoreException e) 129 130 { 130 fail("could not get projects list ");131 fail("could not get projects list, exception thrown:" + e); 131 132 } 132 133 }
Note: See TracChangeset
for help on using the changeset viewer.