Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1977 - development/laboratory/plus/composition/test/src/test/net/dpml/composition/test

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1977 - development/laboratory/plus/composition/test/src/test/net/dpml/composition/test
  • Date: Tue, 08 Mar 2005 12:28:16 -0500

Author: mcconnell AT dpml.net
Date: Tue Mar 8 12:28:16 2005
New Revision: 1977

Modified:

development/laboratory/plus/composition/test/src/test/net/dpml/composition/test/MarshallObjectTestCase.java
Log:
housekeeping

Modified:
development/laboratory/plus/composition/test/src/test/net/dpml/composition/test/MarshallObjectTestCase.java
==============================================================================
---
development/laboratory/plus/composition/test/src/test/net/dpml/composition/test/MarshallObjectTestCase.java
(original)
+++
development/laboratory/plus/composition/test/src/test/net/dpml/composition/test/MarshallObjectTestCase.java
Tue Mar 8 12:28:16 2005
@@ -23,6 +23,8 @@
import java.net.URI;
import java.net.URL;

+import net.dpml.composition.model.ComponentModel;
+
import net.dpml.transit.artifact.Handler;

import junit.framework.TestCase;
@@ -44,23 +46,22 @@

private static final String XPATH = "@XPATH@";

- private File m_file;
+ private ComponentModel m_model;

public void setUp() throws Exception
{
File basedir = new File( System.getProperty( "project.basedir" ) );
- m_file = new File( basedir, XPATH );
- System.out.println( m_file.getAbsolutePath() );
- System.out.println( System.getProperty( "basedir" ) );
-
+ File file = new File( basedir, XPATH );
+ InputStream input = new FileInputStream( file.getCanonicalFile() );
+ ObjectInputStream stream = new ObjectInputStream( input );
+ MarshalledObject marshalled = (MarshalledObject) stream.readObject();
+ m_model = (ComponentModel) marshalled.get();
}

public void testLoading() throws Exception
{
- InputStream input = new FileInputStream(
m_file.getCanonicalFile() );
- ObjectInputStream stream = new ObjectInputStream( input );
- MarshalledObject object = (MarshalledObject) stream.readObject();
- Object result = object.get();
+ System.out.println( "NAME: " + m_model.getName() );
+ System.out.println( "CLASS: " + m_model.getClassname() );
}

}



  • svn commit: r1977 - development/laboratory/plus/composition/test/src/test/net/dpml/composition/test, mcconnell, 03/08/2005

Archive powered by MHonArc 2.6.24.

Top of Page