Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1807 - development/main/home/transit/handler/src/test/net/dpml/transit/artifact

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: r1807 - development/main/home/transit/handler/src/test/net/dpml/transit/artifact
  • Date: Fri, 18 Feb 2005 10:15:38 +0100

Author: niclas
Date: Fri Feb 18 10:15:38 2005
New Revision: 1807

Modified:

development/main/home/transit/handler/src/test/net/dpml/transit/artifact/ArtifactTestCase.java
Log:
Added a LocationResolver system, so we can decouple the layout from the
artifact.

Modified:
development/main/home/transit/handler/src/test/net/dpml/transit/artifact/ArtifactTestCase.java
==============================================================================
---
development/main/home/transit/handler/src/test/net/dpml/transit/artifact/ArtifactTestCase.java
(original)
+++
development/main/home/transit/handler/src/test/net/dpml/transit/artifact/ArtifactTestCase.java
Fri Feb 18 10:15:38 2005
@@ -255,18 +255,20 @@
assertEquals( "version", version, artifact.getVersion() );
assertEquals( "type", type, artifact.getType() );

+ LocationResolver resolver = new ClassicResolver();
+
String base = group + "/" + type + "s";
- assertEquals( "base", base, artifact.getBase() );
+ assertEquals( "base", base, resolver.resolveBase( artifact ) );

if( null == version )
{
String path = base + "/" + name + "." + type;
- assertEquals( "path", path, artifact.getPath() );
+ assertEquals( "path", path, resolver.resolvePath( artifact ) );
}
else
{
String path = base + "/" + name + "-" + version + "." + type;
- assertEquals( "path", path, artifact.getPath() );
+ assertEquals( "path", path, resolver.resolvePath( artifact ) );
}
}




  • svn commit: r1807 - development/main/home/transit/handler/src/test/net/dpml/transit/artifact, niclas, 02/18/2005

Archive powered by MHonArc 2.6.24.

Top of Page