[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: cvs commit: jakarta-commons-sandbox/betwixt/src/test/org/apache/commons/betwixt/strategy TestHyphena
From: jvanzyl () apache ! org
Date: 2002-05-31 23:17:55
[Download RAW message or body]
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: <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic