You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jv...@apache.org on 2002/06/01 01:17:55 UTC
cvs commit: jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/strategy TestHyphenatedNameMapper.java
jvanzyl 2002/05/31 16:17:55
Added: betwixt/src/test/org/apache/commons/betwixt/strategy
TestHyphenatedNameMapper.java
Log:
Test for mapping Bean to hyphenated element names.
Revision Changes Path
1.1 jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/strategy/TestHyphenatedNameMapper.java
Index: TestHyphenatedNameMapper.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*
* $Id: TestHyphenatedNameMapper.java,v 1.1 2002/05/31 23:17:55 jvanzyl Exp $
*/
package org.apache.commons.betwixt.strategy;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/** Test harness for the HyphenatedNameMapper
*
* @author <a href="mailto:jason@zenplex.com">Jason van Zyl</a>
* @version $Revision: 1.1 $
*/
public class TestHyphenatedNameMapper extends TestCase {
public static Test suite() {
return new TestSuite(TestHyphenatedNameMapper.class);
}
public TestHyphenatedNameMapper(String testName) {
super(testName);
}
public void testBeanWriter() {
HyphenatedNameMapper mapper = new HyphenatedNameMapper();
String result = mapper.mapTypeToElementName("FooBar");
assertEquals("foo-bar", result);
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>