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:[EMAIL PROTECTED]">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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>