hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules SmartTranslator.java
Date Sun, 05 Sep 2004 13:08:26 GMT
hlship      2004/09/05 06:08:26

  Modified:    framework/src/test/hivemind/test/rules Tag: branch-1-0
                        TestSmartTranslator.java
               .        Tag: branch-1-0 status.xml
               framework/src/java/org/apache/hivemind/schema/rules Tag:
                        branch-1-0 SmartTranslator.java
  Log:
  HIVEMIND-10: Tweak HiveMind to work properly in a JavaWebStart application.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +10 -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.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- TestSmartTranslator.java	10 Aug 2004 13:18:50 -0000	1.5
  +++ TestSmartTranslator.java	5 Sep 2004 13:08:26 -0000	1.5.2.1
  @@ -14,6 +14,8 @@
   
   package hivemind.test.rules;
   
  +import java.beans.PropertyEditorManager;
  +
   import org.apache.hivemind.ApplicationRuntimeException;
   import org.apache.hivemind.Location;
   import org.apache.hivemind.Registry;
  @@ -89,6 +91,14 @@
           assertEquals("Fluffy Puppies", result);
       }
   
  +    public void testStringWithNoEditor()
  +    {
  +        PropertyEditorManager.setEditorSearchPath( new String[] { "bogus.package" } );
  +        Translator t = new SmartTranslator();
  +        Object result = t.translate(null, String.class, "Fluffy Puppies", null);
  +        assertEquals("Fluffy Puppies", result);
  +    }
  +    
       public void testNoEditor()
       {
           Translator t = new SmartTranslator();
  
  
  
  No                   revision
  No                   revision
  1.57.2.3  +3 -0      jakarta-hivemind/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/status.xml,v
  retrieving revision 1.57.2.2
  retrieving revision 1.57.2.3
  diff -u -r1.57.2.2 -r1.57.2.3
  --- status.xml	4 Sep 2004 14:57:37 -0000	1.57.2.2
  +++ status.xml	5 Sep 2004 13:08:26 -0000	1.57.2.3
  @@ -46,6 +46,9 @@
         <action type="fix" dev="HLS" fixes-bug="HIVEMIND-49">
           Class loading issue inside Tomcat.
         </action>
  +      <action type="fix" dev="HLS" fixes-bug="HIVEMIND-10" due-to="James Carman">
  +        Tweak HiveMind to work properly in a JavaWebStart application.
  +      </action>
       </release>
     
       <release version="1.0-rc-1" date="Aug 25 2004">
  
  
  
  No                   revision
  No                   revision
  1.5.2.1   +6 -0      jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules/SmartTranslator.java
  
  Index: SmartTranslator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-hivemind/framework/src/java/org/apache/hivemind/schema/rules/SmartTranslator.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- SmartTranslator.java	10 Aug 2004 13:18:50 -0000	1.5
  +++ SmartTranslator.java	5 Sep 2004 13:08:26 -0000	1.5.2.1
  @@ -56,6 +56,12 @@
           String inputValue,
           Location location)
       {
  +    	// HIVEMIND-10: Inside JavaWebStart you (strangely) can't rely on
  +    	// a PropertyEditor for String (even though it is trivial).
  +    	
  +        if (propertyType.equals(String.class))
  +            return inputValue;
  +
           if (inputValue == null)
           {
               if (_default == null)
  
  
  

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


Mime
View raw message