You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/08/12 17:23:08 UTC

svn commit: r232310 [13/92] - in /beehive/trunk/controls/test: common/ infra/gtlf/ infra/gtlf/xsl/ infra/mantis/ infra/tch/ infra/tch/messages/ infra/tch/runtime/ infra/tch/schema/ perf/ perf/bin/ perf/cases/ perf/ctlsrc/org/apache/beehive/controls/per...

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/context/BaseContextBeanDriver.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/context/BaseContextBeanDriver.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/context/BaseContextBeanDriver.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/context/BaseContextBeanDriver.java Fri Aug 12 08:12:28 2005
@@ -1,213 +1,213 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.context;
-
-import java.util.Arrays;
-import org.apache.beehive.test.tools.milton.common.Report;
-import org.apache.beehive.controls.test.controls.util.TestBeanContext;
-import org.apache.beehive.controls.test.controls.context.BaseContextBean;
-
-/* This class contains the logic to test HelloControlBean
-	It will exercise the control in a certain way and generate a
-	test result report
- */
-
-public class BaseContextBeanDriver
-{
-
-    /**
-     * Returns a new TestBeanContext to act as a container for control testing.
-     */
-    private TestBeanContext createTestBeanContext() throws Exception
-    {
-        return new TestBeanContext();
-    }
-
-	/**
-	 * When one event raised to a bean instance
-	 */
-	public Report testSingleBean(BaseContextBean contextBean, boolean expectCreate){
-
-		Report report=new Report();
-
-		TestBeanContext testContext =null;
-
-		try{
-        	testContext = createTestBeanContext();
-            testContext.add(contextBean);
-        	testContext.beginContext();
-		}
-		catch(Exception e){
-			report.setStatus(Report.FAIL);
-			report.setMessage("TestBeanContext could not be created.");
-			report.setExceptionStack(e);
-
-			return report;
-		}
-
-        try
-        {
-            testContext.resetEvents();
-            contextBean.hello("kyle");
-        }
-        finally
-        {
-            testContext.endContext();
-        }
-        String [] expectedEvents;
-        if (expectCreate)
-        {
-            expectedEvents =
-                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
-                                    "BaseContextImpl.hello kyle", "BaseContextImpl.onRelease" };
-        }
-        else
-        {
-            expectedEvents =
-                    new String [] { "BaseContextImpl.onAcquire",
-                                    "BaseContextImpl.hello kyle", "BaseContextImpl.onRelease" };
-        }
-        if(checkEvents(testContext.getEvents(), expectedEvents))
-          report.setStatus(Report.PASS);
-        else{
-          report.setStatus(Report.FAIL);
-		  report.setMessage("Events received:" + Arrays.toString(testContext.getEvents()));
-		}
-
-		return report;
-	}
-
-	/**
-	 * When multiple events raised to same bean instance
-	 */
-	public Report testMultipleEvents(BaseContextBean contextBean){
-
-		Report report=new Report();
-
-		TestBeanContext testContext =null;
-
-		try{
-	        testContext = createTestBeanContext();
-            testContext.add(contextBean);
-			testContext.beginContext();
-		}
-		catch(Exception e){
-
-			report.setStatus(Report.FAIL);
-			report.setMessage("TestBeanContext could not be created.");
-			report.setExceptionStack(e);
-
-			return report;
-		}
-        try
-        {
-            testContext.resetEvents();
-            contextBean.hello("ken");
-            contextBean.hello("mike");
-            contextBean.hello("lawrence");
-        }
-        finally
-        {
-            testContext.endContext();
-        }
-		boolean rslt= checkEvents(testContext.getEvents(),
-                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
-                                    "BaseContextImpl.hello ken", "BaseContextImpl.hello mike",
-                                    "BaseContextImpl.hello lawrence", "BaseContextImpl.onRelease" });
-        if(rslt)
-        	report.setStatus(Report.PASS);
-        else{
-			report.setStatus(Report.FAIL);
-			report.setMessage(Arrays.toString(testContext.getEvents()));
-		}
-		return report;
-	}
-
-	/**
-	 * When two events raised to two different bean instance
-	 */
-	public Report testParallelEvents(BaseContextBean contextBean1,BaseContextBean contextBean2){
-
-		Report report=new Report();
-
-		TestBeanContext testContext =null;
-
-		try{
-        	testContext = createTestBeanContext();
-            testContext.add(contextBean1);
-            testContext.add(contextBean2);
-        	testContext.beginContext();
-		}
-		catch(Exception e){
-			report.setStatus(Report.FAIL);
-			report.setMessage("TestBeanContext could not be created.");
-			report.setExceptionStack(e);
-
-			return report;
-		}
-        try
-        {
-            testContext.resetEvents();
-            contextBean1.hello("kyle");
-            contextBean2.hello("ken");
-        }
-        finally
-        {
-            testContext.endContext();
-        }
-		boolean rslt=checkEvents(testContext.getEvents(),
-                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
-                                    "BaseContextImpl.hello kyle",
-                                    "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
-                                    "BaseContextImpl.hello ken",
-                                    "BaseContextImpl.onRelease", "BaseContextImpl.onRelease" });
-        if (rslt)
-        	report.setStatus(Report.PASS);
-        else{
-			report.setStatus(Report.FAIL);
-			report.setMessage(Arrays.toString(testContext.getEvents()));
-            report.setExceptionStack(new Exception("Expected events not found"));
-		}
-		return report;
-
-	}
-
-    private boolean checkEvents(String [] expectResults, String [] actualResults)
-    {
-        boolean result=true;
-
-        if (expectResults.length != actualResults.length)
-        {
-			result=false;
-        }
-		else{
-	        for (int i = 0; i < expectResults.length; i++)
-	        {
-	            if (!expectResults[i].equals(actualResults[i]))
-	            {
-					result=false;
-					break;
-	            }
-	        }
-   		}
-   		return result;
-
-    }
-
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.context;
+
+import java.util.Arrays;
+import org.apache.beehive.test.tools.milton.common.Report;
+import org.apache.beehive.controls.test.controls.util.TestBeanContext;
+import org.apache.beehive.controls.test.controls.context.BaseContextBean;
+
+/* This class contains the logic to test HelloControlBean
+	It will exercise the control in a certain way and generate a
+	test result report
+ */
+
+public class BaseContextBeanDriver
+{
+
+    /**
+     * Returns a new TestBeanContext to act as a container for control testing.
+     */
+    private TestBeanContext createTestBeanContext() throws Exception
+    {
+        return new TestBeanContext();
+    }
+
+	/**
+	 * When one event raised to a bean instance
+	 */
+	public Report testSingleBean(BaseContextBean contextBean, boolean expectCreate){
+
+		Report report=new Report();
+
+		TestBeanContext testContext =null;
+
+		try{
+        	testContext = createTestBeanContext();
+            testContext.add(contextBean);
+        	testContext.beginContext();
+		}
+		catch(Exception e){
+			report.setStatus(Report.FAIL);
+			report.setMessage("TestBeanContext could not be created.");
+			report.setExceptionStack(e);
+
+			return report;
+		}
+
+        try
+        {
+            testContext.resetEvents();
+            contextBean.hello("kyle");
+        }
+        finally
+        {
+            testContext.endContext();
+        }
+        String [] expectedEvents;
+        if (expectCreate)
+        {
+            expectedEvents =
+                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
+                                    "BaseContextImpl.hello kyle", "BaseContextImpl.onRelease" };
+        }
+        else
+        {
+            expectedEvents =
+                    new String [] { "BaseContextImpl.onAcquire",
+                                    "BaseContextImpl.hello kyle", "BaseContextImpl.onRelease" };
+        }
+        if(checkEvents(testContext.getEvents(), expectedEvents))
+          report.setStatus(Report.PASS);
+        else{
+          report.setStatus(Report.FAIL);
+		  report.setMessage("Events received:" + Arrays.toString(testContext.getEvents()));
+		}
+
+		return report;
+	}
+
+	/**
+	 * When multiple events raised to same bean instance
+	 */
+	public Report testMultipleEvents(BaseContextBean contextBean){
+
+		Report report=new Report();
+
+		TestBeanContext testContext =null;
+
+		try{
+	        testContext = createTestBeanContext();
+            testContext.add(contextBean);
+			testContext.beginContext();
+		}
+		catch(Exception e){
+
+			report.setStatus(Report.FAIL);
+			report.setMessage("TestBeanContext could not be created.");
+			report.setExceptionStack(e);
+
+			return report;
+		}
+        try
+        {
+            testContext.resetEvents();
+            contextBean.hello("ken");
+            contextBean.hello("mike");
+            contextBean.hello("lawrence");
+        }
+        finally
+        {
+            testContext.endContext();
+        }
+		boolean rslt= checkEvents(testContext.getEvents(),
+                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
+                                    "BaseContextImpl.hello ken", "BaseContextImpl.hello mike",
+                                    "BaseContextImpl.hello lawrence", "BaseContextImpl.onRelease" });
+        if(rslt)
+        	report.setStatus(Report.PASS);
+        else{
+			report.setStatus(Report.FAIL);
+			report.setMessage(Arrays.toString(testContext.getEvents()));
+		}
+		return report;
+	}
+
+	/**
+	 * When two events raised to two different bean instance
+	 */
+	public Report testParallelEvents(BaseContextBean contextBean1,BaseContextBean contextBean2){
+
+		Report report=new Report();
+
+		TestBeanContext testContext =null;
+
+		try{
+        	testContext = createTestBeanContext();
+            testContext.add(contextBean1);
+            testContext.add(contextBean2);
+        	testContext.beginContext();
+		}
+		catch(Exception e){
+			report.setStatus(Report.FAIL);
+			report.setMessage("TestBeanContext could not be created.");
+			report.setExceptionStack(e);
+
+			return report;
+		}
+        try
+        {
+            testContext.resetEvents();
+            contextBean1.hello("kyle");
+            contextBean2.hello("ken");
+        }
+        finally
+        {
+            testContext.endContext();
+        }
+		boolean rslt=checkEvents(testContext.getEvents(),
+                    new String [] { "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
+                                    "BaseContextImpl.hello kyle",
+                                    "BaseContextImpl.onCreate", "BaseContextImpl.onAcquire",
+                                    "BaseContextImpl.hello ken",
+                                    "BaseContextImpl.onRelease", "BaseContextImpl.onRelease" });
+        if (rslt)
+        	report.setStatus(Report.PASS);
+        else{
+			report.setStatus(Report.FAIL);
+			report.setMessage(Arrays.toString(testContext.getEvents()));
+            report.setExceptionStack(new Exception("Expected events not found"));
+		}
+		return report;
+
+	}
+
+    private boolean checkEvents(String [] expectResults, String [] actualResults)
+    {
+        boolean result=true;
+
+        if (expectResults.length != actualResults.length)
+        {
+			result=false;
+        }
+		else{
+	        for (int i = 0; i < expectResults.length; i++)
+	        {
+	            if (!expectResults[i].equals(actualResults[i]))
+	            {
+					result=false;
+					break;
+	            }
+	        }
+   		}
+   		return result;
+
+    }
+
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/context/BaseContextBeanDriver.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/generic/DriveSimpleControl.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/generic/DriveSimpleControl.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/generic/DriveSimpleControl.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/generic/DriveSimpleControl.java Fri Aug 12 08:12:28 2005
@@ -1,58 +1,58 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.generic;
-
-
-import java.util.Vector;
-import org.apache.beehive.test.tools.milton.common.Report;
-import org.apache.beehive.controls.test.controls.generic.SimpleControl;
-import org.apache.beehive.controls.test.controls.generic.SimpleControlBean;
-import org.apache.beehive.test.tools.milton.annotations.Milton;
-
-/**
- * Tests property constraint by exercising PersonControl
- */
-@Milton.TestSuite(webapps="controlsWeb")
-public class DriveSimpleControl
-{
-
-	@Milton.Test(frequency="detailed")
-	public Report testTypeParameter(@Milton.TestControl(instantiate=Milton.Instantiate.DECLARATIVE) SimpleControlBean<String> control){
-
-		Report report=new Report();
-        report.setStatus(Report.PASS);
-
-        Vector<String> strings=new Vector<String>();
-        strings.add("One");
-        strings.add("Two");
-
-        control.setThem(strings);
-
-		String s=control.getTheFirst();
-
-		if (!s.equals("One")){
-			report.setStatus(Report.FAIL);
-			report.addMessage("the value retrieved is:"+s);
-		}
-
-
-		return report;
-	}
-
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.generic;
+
+
+import java.util.Vector;
+import org.apache.beehive.test.tools.milton.common.Report;
+import org.apache.beehive.controls.test.controls.generic.SimpleControl;
+import org.apache.beehive.controls.test.controls.generic.SimpleControlBean;
+import org.apache.beehive.test.tools.milton.annotations.Milton;
+
+/**
+ * Tests property constraint by exercising PersonControl
+ */
+@Milton.TestSuite(webapps="controlsWeb")
+public class DriveSimpleControl
+{
+
+	@Milton.Test(frequency="detailed")
+	public Report testTypeParameter(@Milton.TestControl(instantiate=Milton.Instantiate.DECLARATIVE) SimpleControlBean<String> control){
+
+		Report report=new Report();
+        report.setStatus(Report.PASS);
+
+        Vector<String> strings=new Vector<String>();
+        strings.add("One");
+        strings.add("Two");
+
+        control.setThem(strings);
+
+		String s=control.getTheFirst();
+
+		if (!s.equals("One")){
+			report.setStatus(Report.FAIL);
+			report.addMessage("the value retrieved is:"+s);
+		}
+
+
+		return report;
+	}
+
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/generic/DriveSimpleControl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/instantiate/DriveBoundProperty.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/instantiate/DriveBoundProperty.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/instantiate/DriveBoundProperty.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/instantiate/DriveBoundProperty.java Fri Aug 12 08:12:28 2005
@@ -1,60 +1,60 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.instantiate;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-import org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean;
-
-/* This class contains the logic to test instantiating controls with an external propertSet.
- * A Report object is generated for test result.
- */
-
-public class DriveBoundProperty
-{
-
-	/* A control with a externally declared propertySet*/
-	private BoundPropertyControlBean myControl;
-
-	public void setControl(BoundPropertyControlBean aControl){
-
-		myControl=aControl;
-	}
-
-    /* Verifies if the property value is same as expected*/
-	public Report doTestReconfiguredExtProperty(int expected){
-
-		Report report=new Report();
-
-		if (myControl==null)
-			report.setStatus(Report.FAIL);
-		else
-		{
-			int age=myControl.getAge();
-			if (age==expected)
-				report.setStatus(Report.PASS);
-			else{
-				report.setStatus(Report.FAIL);
-				report.setMessage("The age is wrong:"+age);
-			}
-
-		}
-		return report;
-	}
-
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.instantiate;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+import org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean;
+
+/* This class contains the logic to test instantiating controls with an external propertSet.
+ * A Report object is generated for test result.
+ */
+
+public class DriveBoundProperty
+{
+
+	/* A control with a externally declared propertySet*/
+	private BoundPropertyControlBean myControl;
+
+	public void setControl(BoundPropertyControlBean aControl){
+
+		myControl=aControl;
+	}
+
+    /* Verifies if the property value is same as expected*/
+	public Report doTestReconfiguredExtProperty(int expected){
+
+		Report report=new Report();
+
+		if (myControl==null)
+			report.setStatus(Report.FAIL);
+		else
+		{
+			int age=myControl.getAge();
+			if (age==expected)
+				report.setStatus(Report.PASS);
+			else{
+				report.setStatus(Report.FAIL);
+				report.setMessage("The age is wrong:"+age);
+			}
+
+		}
+		return report;
+	}
+
 }

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/instantiate/DriveBoundProperty.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DriveEventSetInfo.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DriveEventSetInfo.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DriveEventSetInfo.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DriveEventSetInfo.java Fri Aug 12 08:12:28 2005
@@ -1,129 +1,129 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.packaging;
-
-import java.lang.Class;
-import java.beans.BeanInfo;
-import java.beans.Introspector;
-import java.beans.EventSetDescriptor;
-import org.apache.beehive.controls.test.controls.event.HelloBean;
-import org.apache.beehive.test.tools.milton.common.Report;
-
-/* This class contains the logic to test EventSetInfo annotation of control packaging.
- *
- * PropertyInfo annotations on control interface shall be written into control beaninfo
- * class during control packaging process.
- * The tests in this class will get feature info from control beaninfo class in
- * order to make sure this part of packaging process works fine.
- */
-
-public class DriveEventSetInfo
-{
-
-	/*Gets class level feature info from HelloBeanBeanInfo class*/
-	public Report doGetEventSetInfo(){
-
-		Report report=new Report();
-		report.setStatus(Report.PASS);
-
-		try{
-			BeanInfo beanInfo=Introspector.getBeanInfo(Class.forName(
-				"org.apache.beehive.controls.test.controls.event.HelloBean"));
-			EventSetDescriptor[] descriptors=beanInfo.getEventSetDescriptors();
-
-			//Find and inspect EventSet descriptor declared on HelloBean.
-			EventSetDescriptor descriptor=findEventSet(descriptors,"eventSet0");
-
-			if (descriptor==null){
-				report.setStatus(Report.FAIL);
-				report.setMessage("Could not find EventSet descriptor for 'eventSet0'.");
-			}
-			else{
-				if (!descriptor.isInDefaultEventSet()){
-					report.setStatus(Report.FAIL);
-					report.setMessage("'eventSet0' is not default.");
-				}
-				else if	(descriptor.isUnicast()){
-					report.setStatus(Report.FAIL);
-					report.setMessage("'eventSet0' is not unicast.");
-				}
-
-			}
-
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findEventSet(descriptors,"eventSet1");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'eventSet1'.");
-				}
-				else{
-					if (!descriptor.isInDefaultEventSet()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'eventSet1' is not default.");
-					}
-					else if	(descriptor.isUnicast()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'eventSet1' is not unicast.");
-					}
-				}
-			}
-
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findEventSet(descriptors,"eventSet2");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'eventSet2'.");
-				}
-				else{
-					if (!descriptor.isInDefaultEventSet()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'eventSet2' is not default.");
-					}
-					else if	(!descriptor.isUnicast()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'eventSet2' is not unicast.");
-					}
-				}
-
-			}
-
-		}
-		catch(Exception e){
-			report.setStatus(Report.FAIL);
-			report.setExceptionStack(e);
-		}
-
-		return report;
-
-	}
-
-	private EventSetDescriptor findEventSet(EventSetDescriptor[] array,String eventname){
-
-		EventSetDescriptor result=null;
-		for(int i=0;i<array.length;i++){
-			result=array[i];
-			if (result.getName().equals(eventname))
-				break;
-			else
-				result=null;
-		}
-		return result;
-	}
-
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.packaging;
+
+import java.lang.Class;
+import java.beans.BeanInfo;
+import java.beans.Introspector;
+import java.beans.EventSetDescriptor;
+import org.apache.beehive.controls.test.controls.event.HelloBean;
+import org.apache.beehive.test.tools.milton.common.Report;
+
+/* This class contains the logic to test EventSetInfo annotation of control packaging.
+ *
+ * PropertyInfo annotations on control interface shall be written into control beaninfo
+ * class during control packaging process.
+ * The tests in this class will get feature info from control beaninfo class in
+ * order to make sure this part of packaging process works fine.
+ */
+
+public class DriveEventSetInfo
+{
+
+	/*Gets class level feature info from HelloBeanBeanInfo class*/
+	public Report doGetEventSetInfo(){
+
+		Report report=new Report();
+		report.setStatus(Report.PASS);
+
+		try{
+			BeanInfo beanInfo=Introspector.getBeanInfo(Class.forName(
+				"org.apache.beehive.controls.test.controls.event.HelloBean"));
+			EventSetDescriptor[] descriptors=beanInfo.getEventSetDescriptors();
+
+			//Find and inspect EventSet descriptor declared on HelloBean.
+			EventSetDescriptor descriptor=findEventSet(descriptors,"eventSet0");
+
+			if (descriptor==null){
+				report.setStatus(Report.FAIL);
+				report.setMessage("Could not find EventSet descriptor for 'eventSet0'.");
+			}
+			else{
+				if (!descriptor.isInDefaultEventSet()){
+					report.setStatus(Report.FAIL);
+					report.setMessage("'eventSet0' is not default.");
+				}
+				else if	(descriptor.isUnicast()){
+					report.setStatus(Report.FAIL);
+					report.setMessage("'eventSet0' is not unicast.");
+				}
+
+			}
+
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findEventSet(descriptors,"eventSet1");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'eventSet1'.");
+				}
+				else{
+					if (!descriptor.isInDefaultEventSet()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'eventSet1' is not default.");
+					}
+					else if	(descriptor.isUnicast()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'eventSet1' is not unicast.");
+					}
+				}
+			}
+
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findEventSet(descriptors,"eventSet2");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'eventSet2'.");
+				}
+				else{
+					if (!descriptor.isInDefaultEventSet()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'eventSet2' is not default.");
+					}
+					else if	(!descriptor.isUnicast()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'eventSet2' is not unicast.");
+					}
+				}
+
+			}
+
+		}
+		catch(Exception e){
+			report.setStatus(Report.FAIL);
+			report.setExceptionStack(e);
+		}
+
+		return report;
+
+	}
+
+	private EventSetDescriptor findEventSet(EventSetDescriptor[] array,String eventname){
+
+		EventSetDescriptor result=null;
+		for(int i=0;i<array.length;i++){
+			result=array[i];
+			if (result.getName().equals(eventname))
+				break;
+			else
+				result=null;
+		}
+		return result;
+	}
+
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DriveEventSetInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DrivePropertyInfo.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DrivePropertyInfo.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DrivePropertyInfo.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DrivePropertyInfo.java Fri Aug 12 08:12:28 2005
@@ -1,164 +1,164 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.packaging;
-
-import java.lang.Class;
-import java.beans.BeanInfo;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
-import java.lang.reflect.Method;
-import org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean;
-import org.apache.beehive.test.tools.milton.common.Report;
-
-/* This class contains the logic to test PropertyInfo annotation of control packaging.
- *
- * PropertyInfo annotations on control interface shall be written into control beaninfo
- * class during control packaging process.
- * The tests in this class will get feature info from control beaninfo class in
- * order to make sure this part of packaging process works fine.
- */
-
-public class DrivePropertyInfo
-{
-
-	/*Gets class level feature info from BoundPropertyBeanBeanInfo class*/
-	public Report doGetPropertyInfo(){
-
-		Report report=new Report();
-		report.setStatus(Report.PASS);
-
-		try{
-			BeanInfo beanInfo=Introspector.getBeanInfo(Class.forName(
-				"org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean"));
-			PropertyDescriptor[] descriptors=beanInfo.getPropertyDescriptors();
-
-			//Find and inspect property descriptor declared on BoundPropertyControlBean.
-			PropertyDescriptor descriptor=findProperty(descriptors,"Brand");
-
-			if (descriptor==null){
-				report.setStatus(Report.FAIL);
-				report.setMessage("Could not find property descriptor for 'Brand'.");
-			}
-			else{
-				if (!descriptor.isBound()){
-					report.setStatus(Report.FAIL);
-					report.setMessage("'Brand' is not bound.");
-				}
-				else if	(descriptor.isConstrained()){
-					report.setStatus(Report.FAIL);
-					report.setMessage("'Brand' is constrained.");
-				}
-
-			}
-
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findProperty(descriptors,"Material");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'Material'.");
-				}
-				else{
-					if (descriptor.isBound()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'Material' is bound.");
-					}
-					else if	(!descriptor.isConstrained()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'Material' is not constrained.");
-					}
-				}
-			}
-
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findProperty(descriptors,"Quality");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'Quality'.");
-				}
-				else{
-					if (!descriptor.isBound()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'Quality' is not bound.");
-					}
-					else if	(!descriptor.isConstrained()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'Quality' is not constrained.");
-					}
-				}
-
-			}
-
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findProperty(descriptors,"age");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'age'.");
-				}
-				else{
-					if (!descriptor.isBound()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'age' is not bound.");
-					}
-					else if	(descriptor.isConstrained()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'age' is constrained.");
-					}
-				}
-			}
-			if (report.getStatus().equals(Report.PASS)){
-				descriptor=findProperty(descriptors,"height");
-				if (descriptor==null){
-					report.setStatus(Report.FAIL);
-					report.setMessage("Could not find property descriptor for 'height'.");
-				}
-				else{
-					if (descriptor.isBound()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'hight' is bound.");
-					}
-					else if	(!descriptor.isConstrained()){
-						report.setStatus(Report.FAIL);
-						report.setMessage("'hight' is not constrained.");
-					}
-				}
-			}
-
-		}
-		catch(Exception e){
-			report.setStatus(Report.FAIL);
-			report.setExceptionStack(e);
-		}
-
-		return report;
-
-	}
-	private PropertyDescriptor findProperty(PropertyDescriptor[] array,String propertyname){
-
-		PropertyDescriptor result=null;
-		for(int i=0;i<array.length;i++){
-			result=array[i];
-			if (result.getName().equals(propertyname))
-				break;
-			else
-				result=null;
-		}
-		return result;
-	}
-
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.packaging;
+
+import java.lang.Class;
+import java.beans.BeanInfo;
+import java.beans.Introspector;
+import java.beans.PropertyDescriptor;
+import java.lang.reflect.Method;
+import org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean;
+import org.apache.beehive.test.tools.milton.common.Report;
+
+/* This class contains the logic to test PropertyInfo annotation of control packaging.
+ *
+ * PropertyInfo annotations on control interface shall be written into control beaninfo
+ * class during control packaging process.
+ * The tests in this class will get feature info from control beaninfo class in
+ * order to make sure this part of packaging process works fine.
+ */
+
+public class DrivePropertyInfo
+{
+
+	/*Gets class level feature info from BoundPropertyBeanBeanInfo class*/
+	public Report doGetPropertyInfo(){
+
+		Report report=new Report();
+		report.setStatus(Report.PASS);
+
+		try{
+			BeanInfo beanInfo=Introspector.getBeanInfo(Class.forName(
+				"org.apache.beehive.controls.test.controls.property.BoundPropertyControlBean"));
+			PropertyDescriptor[] descriptors=beanInfo.getPropertyDescriptors();
+
+			//Find and inspect property descriptor declared on BoundPropertyControlBean.
+			PropertyDescriptor descriptor=findProperty(descriptors,"Brand");
+
+			if (descriptor==null){
+				report.setStatus(Report.FAIL);
+				report.setMessage("Could not find property descriptor for 'Brand'.");
+			}
+			else{
+				if (!descriptor.isBound()){
+					report.setStatus(Report.FAIL);
+					report.setMessage("'Brand' is not bound.");
+				}
+				else if	(descriptor.isConstrained()){
+					report.setStatus(Report.FAIL);
+					report.setMessage("'Brand' is constrained.");
+				}
+
+			}
+
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findProperty(descriptors,"Material");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'Material'.");
+				}
+				else{
+					if (descriptor.isBound()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'Material' is bound.");
+					}
+					else if	(!descriptor.isConstrained()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'Material' is not constrained.");
+					}
+				}
+			}
+
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findProperty(descriptors,"Quality");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'Quality'.");
+				}
+				else{
+					if (!descriptor.isBound()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'Quality' is not bound.");
+					}
+					else if	(!descriptor.isConstrained()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'Quality' is not constrained.");
+					}
+				}
+
+			}
+
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findProperty(descriptors,"age");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'age'.");
+				}
+				else{
+					if (!descriptor.isBound()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'age' is not bound.");
+					}
+					else if	(descriptor.isConstrained()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'age' is constrained.");
+					}
+				}
+			}
+			if (report.getStatus().equals(Report.PASS)){
+				descriptor=findProperty(descriptors,"height");
+				if (descriptor==null){
+					report.setStatus(Report.FAIL);
+					report.setMessage("Could not find property descriptor for 'height'.");
+				}
+				else{
+					if (descriptor.isBound()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'hight' is bound.");
+					}
+					else if	(!descriptor.isConstrained()){
+						report.setStatus(Report.FAIL);
+						report.setMessage("'hight' is not constrained.");
+					}
+				}
+			}
+
+		}
+		catch(Exception e){
+			report.setStatus(Report.FAIL);
+			report.setExceptionStack(e);
+		}
+
+		return report;
+
+	}
+	private PropertyDescriptor findProperty(PropertyDescriptor[] array,String propertyname){
+
+		PropertyDescriptor result=null;
+		for(int i=0;i<array.length;i++){
+			result=array[i];
+			if (result.getName().equals(propertyname))
+				break;
+			else
+				result=null;
+		}
+		return result;
+	}
+
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/packaging/DrivePropertyInfo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/property/DrivePropertyConstraint2.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/property/DrivePropertyConstraint2.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/property/DrivePropertyConstraint2.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/property/DrivePropertyConstraint2.java Fri Aug 12 08:12:28 2005
@@ -1,143 +1,143 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.property;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-import org.apache.beehive.controls.test.controls.property.constraint.PersonControl;
-import org.apache.beehive.controls.test.controls.property.constraint.PersonControlBean;
-import org.apache.beehive.test.tools.milton.annotations.Milton;
-
-/**
- * Tests property constraint by exercising PersonControl
- */
-@Milton.TestSuite(webapps="controlsWeb")
-public class DrivePropertyConstraint2
-{
-
-	@Milton.Test(frequency="detailed")
-	public Report testPropertyConstraint(PersonControlBean control){
-
-		Report report=new Report();
-        report.setStatus(Report.PASS);
-
-		if (control==null){
-			report.setStatus(Report.FAIL);
-			report.setMessage("The control is NULL");
-            return report;
-		}
-
-        //Test isLong constraint for a Text
-        try
-        {
-            control.setIdnumber("A String that is not a LONG");
-            report.setStatus(Report.FAIL);
-            report.setMessage("A String which is not a long assigned to isLong Text.");
-            return report;
-
-        }
-        catch (IllegalArgumentException e)
-        {
-        }
-
-        //Test Decimal.places
-        try
-        {
-            control.setSavings("99.999");
-            report.setStatus(Report.FAIL);
-            report.setMessage("99.999 assigned to a property of two-place Decimal");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-            //expected exception
-        }
-
-        //Test Decimal.minValue
-        try
-        {
-            control.setSavings("99");
-			report.setStatus(Report.FAIL);
-			report.setMessage("99 is less than minValue and assigned to the property.");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-			//expected result
-        }
-
-        //Test Decimal.maxValue
-        try
-        {
-            control.setSavings("10000.01");
-			report.setStatus(Report.FAIL);
-			report.setMessage("10000.01 is greater than maxValue and assigned to the property.");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-			//expected result
-        }
-
-
-        //Test Date.maxValue
-        try
-        {
-            control.setIssuedate("2007/02/01");
-			report.setStatus(Report.FAIL);
-			report.setMessage("2007/02/01 is greater than maxValue and assigned to the property.");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-			//expected result
-        }
-
-        //Test assigning a invalid value
-        try
-        {
-            control.setIssuedate("2006/02/30");
-			report.setStatus(Report.FAIL);
-			report.setMessage("2006/02/30 is invalid and assigned to a date property.");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-			//expected result
-        }
-
-
-        //Test invalid constraint: Person.DriverLicense.expirydate is invalid by design
-        try
-        {
-            control.setExpirydate("2007/02/20");
-			report.setStatus(Report.FAIL);
-			report.setMessage("2007/02/20 is assigned to an invalid date property.");
-            return report;
-        }
-        catch (IllegalArgumentException e)
-        {
-			//expected result
-			//report.setStatus(Report.FAIL);
-			//report.setExceptionStack(e);
-        }
-
-		return report;
-	}
-
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.property;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+import org.apache.beehive.controls.test.controls.property.constraint.PersonControl;
+import org.apache.beehive.controls.test.controls.property.constraint.PersonControlBean;
+import org.apache.beehive.test.tools.milton.annotations.Milton;
+
+/**
+ * Tests property constraint by exercising PersonControl
+ */
+@Milton.TestSuite(webapps="controlsWeb")
+public class DrivePropertyConstraint2
+{
+
+	@Milton.Test(frequency="detailed")
+	public Report testPropertyConstraint(PersonControlBean control){
+
+		Report report=new Report();
+        report.setStatus(Report.PASS);
+
+		if (control==null){
+			report.setStatus(Report.FAIL);
+			report.setMessage("The control is NULL");
+            return report;
+		}
+
+        //Test isLong constraint for a Text
+        try
+        {
+            control.setIdnumber("A String that is not a LONG");
+            report.setStatus(Report.FAIL);
+            report.setMessage("A String which is not a long assigned to isLong Text.");
+            return report;
+
+        }
+        catch (IllegalArgumentException e)
+        {
+        }
+
+        //Test Decimal.places
+        try
+        {
+            control.setSavings("99.999");
+            report.setStatus(Report.FAIL);
+            report.setMessage("99.999 assigned to a property of two-place Decimal");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+            //expected exception
+        }
+
+        //Test Decimal.minValue
+        try
+        {
+            control.setSavings("99");
+			report.setStatus(Report.FAIL);
+			report.setMessage("99 is less than minValue and assigned to the property.");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+			//expected result
+        }
+
+        //Test Decimal.maxValue
+        try
+        {
+            control.setSavings("10000.01");
+			report.setStatus(Report.FAIL);
+			report.setMessage("10000.01 is greater than maxValue and assigned to the property.");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+			//expected result
+        }
+
+
+        //Test Date.maxValue
+        try
+        {
+            control.setIssuedate("2007/02/01");
+			report.setStatus(Report.FAIL);
+			report.setMessage("2007/02/01 is greater than maxValue and assigned to the property.");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+			//expected result
+        }
+
+        //Test assigning a invalid value
+        try
+        {
+            control.setIssuedate("2006/02/30");
+			report.setStatus(Report.FAIL);
+			report.setMessage("2006/02/30 is invalid and assigned to a date property.");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+			//expected result
+        }
+
+
+        //Test invalid constraint: Person.DriverLicense.expirydate is invalid by design
+        try
+        {
+            control.setExpirydate("2007/02/20");
+			report.setStatus(Report.FAIL);
+			report.setMessage("2007/02/20 is assigned to an invalid date property.");
+            return report;
+        }
+        catch (IllegalArgumentException e)
+        {
+			//expected result
+			//report.setStatus(Report.FAIL);
+			//report.setExceptionStack(e);
+        }
+
+		return report;
+	}
+
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/property/DrivePropertyConstraint2.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveDefaultThread.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveDefaultThread.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveDefaultThread.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveDefaultThread.java Fri Aug 12 08:12:28 2005
@@ -1,56 +1,56 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.threading;
-
-
-import java.lang.Integer;
-import java.lang.Thread;
-import java.lang.InterruptedException;
-import org.apache.beehive.controls.test.controls.threading.DefaultThreadControl;
-import org.apache.beehive.controls.test.controls.threading.DefaultThreadControlBean;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-
-public class DriveDefaultThread extends Thread
-{
-
-    private boolean role;
-	private long result=0;
-    private DefaultThreadControlBean myControl;
-
-    public DriveDefaultThread(String name){
-		super(name);
-	}
-
-    public void setControl(DefaultThreadControlBean bean){
-		myControl=bean;
-	}
-
-    public void setRole(boolean isBlocker){
-		role=isBlocker;
-	}
-
-    public void run() {
-		result=myControl.doSlowIncrement(role);
-    }
-
-	public long getResult(){
-		return result;
-	}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.threading;
+
+
+import java.lang.Integer;
+import java.lang.Thread;
+import java.lang.InterruptedException;
+import org.apache.beehive.controls.test.controls.threading.DefaultThreadControl;
+import org.apache.beehive.controls.test.controls.threading.DefaultThreadControlBean;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+
+public class DriveDefaultThread extends Thread
+{
+
+    private boolean role;
+	private long result=0;
+    private DefaultThreadControlBean myControl;
+
+    public DriveDefaultThread(String name){
+		super(name);
+	}
+
+    public void setControl(DefaultThreadControlBean bean){
+		myControl=bean;
+	}
+
+    public void setRole(boolean isBlocker){
+		role=isBlocker;
+	}
+
+    public void run() {
+		result=myControl.doSlowIncrement(role);
+    }
+
+	public long getResult(){
+		return result;
+	}
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveDefaultThread.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveMultiThread.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveMultiThread.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveMultiThread.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveMultiThread.java Fri Aug 12 08:12:28 2005
@@ -1,54 +1,54 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.threading;
-
-
-import java.lang.Thread;
-import org.apache.beehive.controls.test.controls.threading.MultiThreadControl;
-import org.apache.beehive.controls.test.controls.threading.MultiThreadControlBean;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-
-public class DriveMultiThread extends Thread
-{
-    public final static int LOOPS=20;
-    private MultiThreadControlBean myControl;
-    private boolean role;
-	private long result=0;
-
-    public DriveMultiThread(String name){
-		super(name);
-	}
-
-    public void setControl(MultiThreadControlBean bean){
-		myControl=bean;
-	}
-
-    public void setRole(boolean isBlocker){
-		role=isBlocker;
-	}
-
-    public void run() {
-		result=myControl.doSlowIncrement(role);
-    }
-
-	public long getResult(){
-		return result;
-	}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.threading;
+
+
+import java.lang.Thread;
+import org.apache.beehive.controls.test.controls.threading.MultiThreadControl;
+import org.apache.beehive.controls.test.controls.threading.MultiThreadControlBean;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+
+public class DriveMultiThread extends Thread
+{
+    public final static int LOOPS=20;
+    private MultiThreadControlBean myControl;
+    private boolean role;
+	private long result=0;
+
+    public DriveMultiThread(String name){
+		super(name);
+	}
+
+    public void setControl(MultiThreadControlBean bean){
+		myControl=bean;
+	}
+
+    public void setRole(boolean isBlocker){
+		role=isBlocker;
+	}
+
+    public void run() {
+		result=myControl.doSlowIncrement(role);
+    }
+
+	public long getResult(){
+		return result;
+	}
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveMultiThread.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedMultiThread.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedMultiThread.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedMultiThread.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedMultiThread.java Fri Aug 12 08:12:28 2005
@@ -1,59 +1,59 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.threading;
-
-
-import java.lang.Thread;
-import java.lang.InterruptedException;
-//import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControl;
-import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControlBean;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-
-
-/**Contains the logic to test a multi-threaded control containing
- * a single-threaded control
- */
-public class DriveNestedMultiThread extends Thread
-{
-    private CompositeMThreadControlBean myControl;
-    private boolean isStopperRole=false;
-    private int result=0;
-
-    public DriveNestedMultiThread(String name){
-		super(name);
-	}
-
-    public void setControl(CompositeMThreadControlBean bean){
-		myControl=bean;
-	}
-
-    public void setRole(boolean isStopper){
-		isStopperRole=isStopper;
-	}
-
-    public void run() {
-
-		if (isStopperRole)
-			result=myControl.stopMultiThreadNestedControl();
-		else
-			result=myControl.startMultiThreadNestedControl();
-    }
-    public int getResult(){return result;}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.threading;
+
+
+import java.lang.Thread;
+import java.lang.InterruptedException;
+//import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControl;
+import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControlBean;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+
+
+/**Contains the logic to test a multi-threaded control containing
+ * a single-threaded control
+ */
+public class DriveNestedMultiThread extends Thread
+{
+    private CompositeMThreadControlBean myControl;
+    private boolean isStopperRole=false;
+    private int result=0;
+
+    public DriveNestedMultiThread(String name){
+		super(name);
+	}
+
+    public void setControl(CompositeMThreadControlBean bean){
+		myControl=bean;
+	}
+
+    public void setRole(boolean isStopper){
+		isStopperRole=isStopper;
+	}
+
+    public void run() {
+
+		if (isStopperRole)
+			result=myControl.stopMultiThreadNestedControl();
+		else
+			result=myControl.startMultiThreadNestedControl();
+    }
+    public int getResult(){return result;}
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedMultiThread.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedSingleThread.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedSingleThread.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedSingleThread.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedSingleThread.java Fri Aug 12 08:12:28 2005
@@ -1,59 +1,59 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.threading;
-
-
-import java.lang.Thread;
-import java.lang.InterruptedException;
-import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControl;
-import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControlBean;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-
-
-/**Contains the logic to test a multi-threaded control containing
- * a single-threaded control
- */
-public class DriveNestedSingleThread extends Thread
-{
-    private CompositeMThreadControlBean myControl;
-    private boolean isStopperRole=false;
-    private int result=0;
-
-    public DriveNestedSingleThread(String name){
-		super(name);
-	}
-
-    public void setControl(CompositeMThreadControlBean bean){
-		myControl=bean;
-	}
-
-    public void setRole(boolean isStopper){
-		isStopperRole=isStopper;
-	}
-
-    public void run() {
-
-		if (isStopperRole)
-			result=myControl.stopSingleThreadNestedControl();
-		else
-			result=myControl.startSingleThreadNestedControl();
-    }
-    public int getResult(){return result;}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.threading;
+
+
+import java.lang.Thread;
+import java.lang.InterruptedException;
+import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControl;
+import org.apache.beehive.controls.test.controls.threading.nested.CompositeMThreadControlBean;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+
+
+/**Contains the logic to test a multi-threaded control containing
+ * a single-threaded control
+ */
+public class DriveNestedSingleThread extends Thread
+{
+    private CompositeMThreadControlBean myControl;
+    private boolean isStopperRole=false;
+    private int result=0;
+
+    public DriveNestedSingleThread(String name){
+		super(name);
+	}
+
+    public void setControl(CompositeMThreadControlBean bean){
+		myControl=bean;
+	}
+
+    public void setRole(boolean isStopper){
+		isStopperRole=isStopper;
+	}
+
+    public void run() {
+
+		if (isStopperRole)
+			result=myControl.stopSingleThreadNestedControl();
+		else
+			result=myControl.startSingleThreadNestedControl();
+    }
+    public int getResult(){return result;}
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveNestedSingleThread.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveSingleThread.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveSingleThread.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveSingleThread.java (original)
+++ beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveSingleThread.java Fri Aug 12 08:12:28 2005
@@ -1,53 +1,53 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-
-package org.apache.beehive.controls.test.driver.threading;
-
-
-import java.lang.Thread;
-import org.apache.beehive.controls.test.controls.threading.SingleThreadControl;
-import org.apache.beehive.controls.test.controls.threading.SingleThreadControlBean;
-
-import org.apache.beehive.test.tools.milton.common.Report;
-
-public class DriveSingleThread extends Thread
-{
-    private SingleThreadControlBean myControl;
-    private boolean role;
-	private long result=0;
-
-    public DriveSingleThread(String name){
-		super(name);
-	}
-
-    public void setControl(SingleThreadControlBean bean){
-		myControl=bean;
-	}
-
-    public void setRole(boolean isBlocker){
-		role=isBlocker;
-	}
-
-    public void run() {
-		result=myControl.doSlowIncrement(role);
-    }
-
-	public long getResult(){
-		return result;
-	}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+
+package org.apache.beehive.controls.test.driver.threading;
+
+
+import java.lang.Thread;
+import org.apache.beehive.controls.test.controls.threading.SingleThreadControl;
+import org.apache.beehive.controls.test.controls.threading.SingleThreadControlBean;
+
+import org.apache.beehive.test.tools.milton.common.Report;
+
+public class DriveSingleThread extends Thread
+{
+    private SingleThreadControlBean myControl;
+    private boolean role;
+	private long result=0;
+
+    public DriveSingleThread(String name){
+		super(name);
+	}
+
+    public void setControl(SingleThreadControlBean bean){
+		myControl=bean;
+	}
+
+    public void setRole(boolean isBlocker){
+		role=isBlocker;
+	}
+
+    public void run() {
+		result=myControl.doSlowIncrement(role);
+    }
+
+	public long getResult(){
+		return result;
+	}
+}

Propchange: beehive/trunk/controls/test/src/drivers/org/apache/beehive/controls/test/driver/threading/DriveSingleThread.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/assembly/AssemblyTests.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/beaninfo/BeanInfo.bat
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/beaninfo/BeanInfo.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/beaninfo/BeanInfoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/beaninfo/InfoTestBean.beaninfo
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/context/ContextParamTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/context/GetServiceTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/encoding/EncodingTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/Event2Listener.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/Event2Listener.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/Event2Listener.java (original)
+++ beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/Event2Listener.java Fri Aug 12 08:12:28 2005
@@ -1,62 +1,62 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-package org.apache.beehive.controls.test.java.event;
-
-import org.apache.beehive.controls.test.controls.event.Hello;
-
-/**
- * A listener class for Hello.EventSet2 event
- */
-public class Event2Listener implements Hello.EventSet2
-{
-	private String method1Result="";
-	private String method2Result="";
-	private String overloadMethod1="";
-	private String overloadMethod2="";
-
-
-    public void method1(){
-		//Event received, flip the counter
-		method1Result="0";
-	}
-    public int set2Method2(){
-		//Event received, flip the counter
-		method2Result="0";
-		return 0;
-	}
-    public boolean set2OverloadedMethod(){
-		//Event received, flip the counter
-		overloadMethod1="0";
-		return true;
-	}
-    public boolean set2OverloadedMethod(int anArg){
-		//Event received, flip the counter
-		overloadMethod2="0";
-		return true;
-	}
-
-	public String getMethod2Result(){
-
-		return method2Result;
-	}
-
-	public String getAllResult(){
-
-		return method1Result+method2Result+overloadMethod1+overloadMethod2;
-	}
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.controls.test.java.event;
+
+import org.apache.beehive.controls.test.controls.event.Hello;
+
+/**
+ * A listener class for Hello.EventSet2 event
+ */
+public class Event2Listener implements Hello.EventSet2
+{
+	private String method1Result="";
+	private String method2Result="";
+	private String overloadMethod1="";
+	private String overloadMethod2="";
+
+
+    public void method1(){
+		//Event received, flip the counter
+		method1Result="0";
+	}
+    public int set2Method2(){
+		//Event received, flip the counter
+		method2Result="0";
+		return 0;
+	}
+    public boolean set2OverloadedMethod(){
+		//Event received, flip the counter
+		overloadMethod1="0";
+		return true;
+	}
+    public boolean set2OverloadedMethod(int anArg){
+		//Event received, flip the counter
+		overloadMethod2="0";
+		return true;
+	}
+
+	public String getMethod2Result(){
+
+		return method2Result;
+	}
+
+	public String getAllResult(){
+
+		return method1Result+method2Result+overloadMethod1+overloadMethod2;
+	}
+}

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/Event2Listener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/EventHandlerTest.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/EventHandlerTest.java?rev=232310&r1=232309&r2=232310&view=diff
==============================================================================
--- beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/EventHandlerTest.java (original)
+++ beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/EventHandlerTest.java Fri Aug 12 08:12:28 2005
@@ -1,110 +1,110 @@
-/*
- * Copyright 2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * $Header:$
- */
-package org.apache.beehive.controls.test.java.event;
-
-
-import junit.framework.Assert;
-import junit.framework.TestCase;
-import java.beans.Beans;
-import org.apache.beehive.controls.api.bean.Control;
-import org.apache.beehive.controls.api.bean.Controls;
-import org.apache.beehive.controls.api.bean.ControlBean;
-import org.apache.beehive.controls.api.events.EventHandler;
-import org.apache.beehive.controls.test.controls.event.HelloBean;
-import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
-import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
-
-/**
- * A TestCase that tests receiving events from a control by @EventHandler
- * All tests on controls instantiated declaratively are deactivated until this feature is supported.
- */
-@Freq("checkin")
-public class EventHandlerTest extends TestCase
-{
-	private boolean event1Received=false;
-	private boolean event2Received=false;
-
-	/**
-	 * A control that raises events
-	 */
-    @Control
-    public HelloBean myHellobean;
-
-    public EventHandlerTest(String s)
-    {
-        super(s);
-
-        try
-        {
-            Controls.initializeClient( null, this, null );
-        }
-        catch ( ClassNotFoundException cnfe )
-        {
-			fail("Failed to initialize controls client");
-        }
-    }
-
-
-     /** EventHandler that receives EventSet1 from myHelloBean*/
-     @EventHandler (field="myHellobean",
-                    eventSet=HelloBean.EventSet1.class,
-                    eventName="method1")
-     public void myHelloBeanMessageHandler()
-     {
-        // Invoked with event is received
-		event1Received=true;
-     }
-
-
-     /** EventHandler that receives EventSet2 from myHelloBean*/
-     @EventHandler (field="myHellobean",
-                    eventSet=HelloBean.EventSet2.class,
-                    eventName="set2Method2")
-     public int myHelloBeanMessageHandler2()
-     {
-        // Invoked when event is received
-		event2Received=true;
-        return 0;
-     }
-
-
-
-    /**
-     * Triggers the events and waits for the arrivals of the events
-     */
-    public void testHandlerReceiveEvents() throws Exception
-    {
-		Assert.assertNotNull(myHellobean);
-		/* Invokes the method on the control while will trigger the events*/
-		try{
-		    myHellobean.triggerEvents();
-
-			/*Wait for the events*/
-			Thread.currentThread().sleep(1000);
-
-			/*Verified result*/
-			Assert.assertEquals(true,event1Received);
-			Assert.assertEquals(true,event2Received);
-
-		}
-		catch(Exception e){
-			e.printStackTrace();
-			fail("exception caught");
-		}
-    }
-}
+/*
+ * Copyright 2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.controls.test.java.event;
+
+
+import junit.framework.Assert;
+import junit.framework.TestCase;
+import java.beans.Beans;
+import org.apache.beehive.controls.api.bean.Control;
+import org.apache.beehive.controls.api.bean.Controls;
+import org.apache.beehive.controls.api.bean.ControlBean;
+import org.apache.beehive.controls.api.events.EventHandler;
+import org.apache.beehive.controls.test.controls.event.HelloBean;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+/**
+ * A TestCase that tests receiving events from a control by @EventHandler
+ * All tests on controls instantiated declaratively are deactivated until this feature is supported.
+ */
+@Freq("checkin")
+public class EventHandlerTest extends TestCase
+{
+	private boolean event1Received=false;
+	private boolean event2Received=false;
+
+	/**
+	 * A control that raises events
+	 */
+    @Control
+    public HelloBean myHellobean;
+
+    public EventHandlerTest(String s)
+    {
+        super(s);
+
+        try
+        {
+            Controls.initializeClient( null, this, null );
+        }
+        catch ( ClassNotFoundException cnfe )
+        {
+			fail("Failed to initialize controls client");
+        }
+    }
+
+
+     /** EventHandler that receives EventSet1 from myHelloBean*/
+     @EventHandler (field="myHellobean",
+                    eventSet=HelloBean.EventSet1.class,
+                    eventName="method1")
+     public void myHelloBeanMessageHandler()
+     {
+        // Invoked with event is received
+		event1Received=true;
+     }
+
+
+     /** EventHandler that receives EventSet2 from myHelloBean*/
+     @EventHandler (field="myHellobean",
+                    eventSet=HelloBean.EventSet2.class,
+                    eventName="set2Method2")
+     public int myHelloBeanMessageHandler2()
+     {
+        // Invoked when event is received
+		event2Received=true;
+        return 0;
+     }
+
+
+
+    /**
+     * Triggers the events and waits for the arrivals of the events
+     */
+    public void testHandlerReceiveEvents() throws Exception
+    {
+		Assert.assertNotNull(myHellobean);
+		/* Invokes the method on the control while will trigger the events*/
+		try{
+		    myHellobean.triggerEvents();
+
+			/*Wait for the events*/
+			Thread.currentThread().sleep(1000);
+
+			/*Verified result*/
+			Assert.assertEquals(true,event1Received);
+			Assert.assertEquals(true,event2Received);
+
+		}
+		catch(Exception e){
+			e.printStackTrace();
+			fail("exception caught");
+		}
+    }
+}

Propchange: beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/java/event/EventHandlerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native