svn commit: r16970 - trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2009-03-26 13:19:43-0700
New Revision: 16970

Modified:
   trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java

Log:
Issue 5751: Expose load(InputSource) method so our URL/system ID is available to lower layers for use

Modified: trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java?view=diff&pathrev=16970&r1=16969&r2=16970
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/persistence/TestProfileConfigurationFilePersister.java	2009-03-26 13:19:43-0700
@@ -26,7 +26,6 @@
 
 import java.io.ByteArrayInputStream;
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
@@ -187,9 +186,8 @@
         outStream.close();
         
         // Read it back in to a new empty project
-        InputStream inStream = new FileInputStream(file);
         project = ProjectManager.getManager().makeEmptyProject();
-        persister.load(project, inStream);
+        persister.load(project, new InputSource(file.toURL().toExternalForm()));
  
         // Make sure we got what we started with
         assertEquals(startingProfiles,

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1434690

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.