You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemind.apache.org by hl...@apache.org on 2004/07/17 23:54:58 UTC

cvs commit: jakarta-hivemind/framework/src/test/hivemind/test/rules TestSmartTranslator.java

hlship      2004/07/17 14:54:58

  Modified:    framework/src/test/hivemind/test/rules
                        TestSmartTranslator.java
  Log:
  HIVEMIND-15: Add test case to ensure String translates to String
  
  Revision  Changes    Path
  1.3       +14 -0     jakarta-hivemind/framework/src/test/hivemind/test/rules/TestSmartTranslator.java
  
  Index: TestSmartTranslator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/test/hivemind/test/rules/TestSmartTranslator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestSmartTranslator.java	25 Jun 2004 20:19:58 -0000	1.2
  +++ TestSmartTranslator.java	17 Jul 2004 21:54:58 -0000	1.3
  @@ -67,6 +67,20 @@
           assertEquals(new Double("3.14"), result);
       }
   
  +	/**
  +	 * Test with a String value (apparently, this doesn't always work,
  +	 * see bug HIVEMIND-15).
  +	 */
  +	
  +	public void testString()
  +	{
  +		Translator t = new SmartTranslator();
  +		
  +		Object result = t.translate(null, String.class, "Fluffy Puppies");
  +		
  +		assertEquals("Fluffy Puppies", result);
  +	}
  +	
       public void testNoEditor()
       {
           Translator t = new SmartTranslator();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org