beehive-commits@incubator.apache.org
[Top] [All Lists]

svn commit: r191220 - in /incubator/beehive/trunk/controls/test/src: con

Subject: svn commit: r191220 - in /incubator/beehive/trunk/controls/test/src: controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java
From:
Date: Fri, 17 Jun 2005 22:00:41 -0000
Author: jsong
Date: Fri Jun 17 15:00:40 2005
New Revision: 191220

URL: http://svn.apache.org/viewcvs?rev=191220&view=rev
Log:
Add a detailed test on access primitive property type. Controls checkin.tests 
and detailed.tests passed.

Modified:
    
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java
    
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java

Modified: 
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java?rev=191220&r1=191219&r2=191220&view=diff
==============================================================================
--- 
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java
 (original)
+++ 
incubator/beehive/trunk/controls/test/src/controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java
 Fri Jun 17 15:00:40 2005
@@ -24,7 +24,7 @@
 import org.apache.beehive.controls.api.properties.PropertySet;
 
 /**
- * A control interface with two single-member propertySets and one method
+ * A control interface with three single-member propertySets and one method
  */
 @ControlInterface
 public interface SingleProperty
@@ -50,6 +50,17 @@
        {
                public String name();
     }
+
+       /**
+        * A single member property of primitive types
+        */
+       @PropertySet
+       @Retention(RetentionPolicy.RUNTIME)
+       public @interface Identifier
+       {
+               public int age() default 20;
+    }
+
 
        public String sayHello();
 }

Modified: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java?rev=191220&r1=191219&r2=191220&view=diff
==============================================================================
--- 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java
 (original)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java
 Fri Jun 17 15:00:40 2005
@@ -109,4 +109,16 @@
                }
     }
 
+    /**
+     * Accesses property of primitve type by getter
+     */
+       @Freq("detailed")
+    public void testPremitiveType() throws Exception
+    {
+
+               int defaultAge=myControl.getAge();
+
+               if (!(defaultAge==20))
+                       fail("Default value of primitve type is 
wrong:"+defaultAge);
+    }
 }


<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: r191220 - in /incubator/beehive/trunk/controls/test/src: controls/org/apache/beehive/controls/test/controls/property/SingleProperty.java units/org/apache/beehive/controls/test/java/property/DefaultValueTest.java, jsong <=