Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1315 - development/main/metro/composition/test/src/test/net/dpml/composition/util

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1315 - development/main/metro/composition/test/src/test/net/dpml/composition/util
  • Date: Mon, 27 Dec 2004 23:51:36 +0100

Author: niclas
Date: Mon Dec 27 23:51:35 2004
New Revision: 1315

Modified:

development/main/metro/composition/test/src/test/net/dpml/composition/util/SchemaValidationTestCase.java
Log:
Proper use of project.dir

Modified:
development/main/metro/composition/test/src/test/net/dpml/composition/util/SchemaValidationTestCase.java
==============================================================================
---
development/main/metro/composition/test/src/test/net/dpml/composition/util/SchemaValidationTestCase.java
(original)
+++
development/main/metro/composition/test/src/test/net/dpml/composition/util/SchemaValidationTestCase.java
Mon Dec 27 23:51:35 2004
@@ -82,8 +82,8 @@

public void testSimpleParseWithOkConfigXML() throws Exception
{
- String xmlDocumentUrl = System.getProperty( "basedir" )
- + "/target/test/ConfigurableB.xml";
+ String xmlDocumentUrl = System.getProperty( "project.dir" )
+ + "/ConfigurableB.xml";
TypeBuilder builder = new TypeBuilder();
Type type = builder.buildType( ConfigurableB.class );
Configuration config = ConfigurationBuilder.build( xmlDocumentUrl );
@@ -93,8 +93,8 @@

public void testSimpleParseWithNonExistentSchemaUrl() throws Exception
{
- String xmlDocumentUrl = System.getProperty( "basedir" )
- + "/target/test/ConfigurableB.xml";
+ String xmlDocumentUrl = System.getProperty( "project.dir" )
+ + "/ConfigurableB.xml";
TypeBuilder builder = new TypeBuilder();
Type type = builder.buildType( ConfigurableA.class );
Configuration config = ConfigurationBuilder.build( xmlDocumentUrl );
@@ -127,10 +127,9 @@
fail( "parser does not support JAXP1.2" );
}
}
- String basedir = System.getProperty( "basedir" );
+ String basedir = System.getProperty( "project.dir" );
//System.out.println( basedir );
- File xmlFile = new File( basedir + "/target/test",
- "SelfValidatingConfigurableB.xml" );
+ File xmlFile = new File( basedir, "SelfValidatingConfigurableB.xml"
);
TestHandler testHandler = new TestHandler();
saxParser.parse( xmlFile, testHandler );
assertEquals( 0, testHandler.getErrors().size() );
@@ -147,4 +146,4 @@
assertTrue( true );
}

-}
\ No newline at end of file
+}



  • svn commit: r1315 - development/main/metro/composition/test/src/test/net/dpml/composition/util, niclas, 12/27/2004

Archive powered by MHonArc 2.6.24.

Top of Page