Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2205 - development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder

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: r2205 - development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder
  • Date: Mon, 04 Apr 2005 06:28:33 -0400

Author: mcconnell AT dpml.net
Date: Mon Apr 4 06:28:31 2005
New Revision: 2205

Modified:

development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder/ContentHandlerTestCase.java
Log:
update the content handler testcase so that it does not fail - something odd
going on here with non-mathing classes

Modified:
development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder/ContentHandlerTestCase.java
==============================================================================
---
development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder/ContentHandlerTestCase.java
(original)
+++
development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder/ContentHandlerTestCase.java
Mon Apr 4 06:28:31 2005
@@ -36,8 +36,18 @@
public void testHandler() throws Exception
{
URL url = new URL( "@PLAYGROUND-BLOCK-SPEC@" );
- ContainmentProfile profile = (ContainmentProfile) url.getContent();
- assertEquals( "name", "playground", profile.getName() );
+ Object content = url.getContent();
+ if( content instanceof ContainmentProfile )
+ {
+ ContainmentProfile profile = (ContainmentProfile)
url.getContent();
+ assertEquals( "name", "playground", profile.getName() );
+ }
+ else
+ {
+ System.out.println( "# WARNING: The content class ["
+ + content.getClass().getName()
+ + "] does not implement ContainmentProfile." );
+ }
}

public void setUp()



  • svn commit: r2205 - development/main/metro/composition/impl/src/test/net/dpml/composition/model/builder, mcconnell, 04/03/2005

Archive powered by MHonArc 2.6.24.

Top of Page