View Javadoc

1   package org.xmlhammer.gui.acceptance;
2   
3   import java.net.URI;
4   
5   public abstract class NewProjectTestCase extends ProjectTestCase {
6       public NewProjectTestCase(String test) {
7           super(test);
8       }
9   
10      public void hasChanged() {
11          assertTrue(getApplication().getProjectsView().getSelectedView().isChanged());
12      }
13  
14      public void closeProject() throws Exception {
15          getApplication().getProjectsView().getSelectedView().setURI(new URI("http://www.edankert.com/test"));
16          getApplication().getProjectsView().getSelectedView().getFieldManager().setChanged(false);
17          getApplication().getProjectsView().getSelectedView().getUndoManager().discardAllEdits();
18          super.closeProject();
19      }
20  }