Author: jsong
Date: Wed Dec  1 17:12:15 2004
New Revision: 109411

URL: http://svn.apache.org/viewcvs?view=rev&rev=109411
Log:
Add junit to automate testing jws invoking controls.
controls checkin.tests passes.

Added:
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/composition/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/composition/TestComposition.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/context/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/context/TestContext.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/contextevent/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/contextevent/TestContextEvent.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/event/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/event/TestEvent.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/extension/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/extension/TestExtension.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/instantiate/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/instantiate/TestInstantiate.java
   (contents, props changed)
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/property/
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/property/TestProperty.java
   (contents, props changed)
Removed:
   
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/TestInstantiate.java

Deleted: 
/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/TestInstantiate.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/TestInstantiate.java?view=auto&rev=109410
==============================================================================

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/composition/TestComposition.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/composition/TestComposition.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/composition/TestComposition.java
       Wed Dec  1 17:12:15 2004
@@ -0,0 +1,100 @@
+package org.apache.beehive.controls.test.jws.composition;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests accessing controls property
+ */
+public class TestComposition extends SOAPReportTestCase
+{
+       public TestComposition(String s){super(s);}
+
+    /**
+     * Tests instantiating nested control.
+     * The outer control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testtestInstantiation() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testInstantiation";);
+    }
+
+
+    /**
+     * Tests instantiating nested control with property.
+     * The outer control is instantiated declaratively
+     */
+       @Freq("detailed")
+    public void testInstantiationWithProperty() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testInstantiationWithProperty";);
+    }
+
+    /**
+     * Tests getting nested control property by context.
+     */
+       @Freq("checkin")
+    public void testGetPropertyByContext() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testGetPropertyByContext";);
+    }
+
+
+    /**
+     * Tests getting nested control property by getter.
+     */
+       @Freq("detailed")
+    public void testGetPropertyByGetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testGetPropertyByGetter";);
+    }
+
+    /**
+     * Tests getting nested control property by getter.
+     */
+       @Freq("detailed")
+    public void testSetPropertyBySetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testSetPropertyBySetter";);
+    }
+
+    /**
+     * Tests reconfiguring nested control's property.
+     */
+       @Freq("detailed")
+    public void testReconfiguredProperty() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testGetReconfiguredPropertyByContext";);
+    }
+
+    /**
+     * Tests listening to nested control's event by eventhandler.
+     */
+       @Freq("checkin")
+    public void testEventHandler() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testEventHandler";);
+    }
+
+    /**
+     * Tests listening to nested controls's event by listener.
+     */
+       @Freq("checkin")
+    public void testEventListener() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testEventListener";);
+    }
+
+    /**
+     * Tests listening to nested controls's event by inner class.
+     */
+       @Freq("checkin")
+    public void testInnerClassListener() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Composition.jws","testInnerClassListener";);
+    }
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/context/TestContext.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/context/TestContext.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/context/TestContext.java
       Wed Dec  1 17:12:15 2004
@@ -0,0 +1,37 @@
+package org.apache.beehive.controls.test.jws.context;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests getting other services by control context
+ */
+public class TestContext extends SOAPReportTestCase
+{
+       public TestContext(String s){super(s);}
+
+    /**
+     * Tests getting other services from control context.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testOtherServicesByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Context.jws","testGetOtherService";);
+    }
+
+
+    /**
+     * Tests getting other services from control context.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testOtherServicesByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Context.jws","testGetOtherService2";);
+    }
+
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/contextevent/TestContextEvent.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/contextevent/TestContextEvent.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/contextevent/TestContextEvent.java
     Wed Dec  1 17:12:15 2004
@@ -0,0 +1,34 @@
+package org.apache.beehive.controls.test.jws.contextevent;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests listening to control context event
+ */
+public class TestContextEvent extends SOAPReportTestCase
+{
+       public TestContextEvent(String s){super(s);}
+
+    /**
+     * Tests listening to control's events by EventHandler
+     */
+       @Freq("detailed")
+    public void testEventHandler() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Event.jws","testEventHandler";);
+    }
+
+
+    /**
+     * Tests listening to control's events by listener
+     */
+       @Freq("detailed")
+    public void testListener() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Event.jws","testListener";);
+    }
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/event/TestEvent.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/event/TestEvent.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/event/TestEvent.java
   Wed Dec  1 17:12:15 2004
@@ -0,0 +1,78 @@
+package org.apache.beehive.controls.test.jws.event;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests accessing controls property
+ */
+public class TestEvent extends SOAPReportTestCase
+{
+       public TestEvent(String s){super(s);}
+
+    /**
+     * Tests getting control property via control context.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testContextAccessByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testContext";);
+    }
+
+
+    /**
+     * Tests getting control property via control context.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testContextAccessByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testContext2";);
+    }
+
+    /**
+     * Tests getting control property by getters on controlbean class.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testGetterByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testGetters";);
+    }
+
+
+    /**
+     * Tests getting control property by getters on controlbean class.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testGetterByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testGetters2";);
+    }
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testSetterByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testSetters";);
+    }
+
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testSetterByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testSetters2";);
+    }
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/extension/TestExtension.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/extension/TestExtension.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/extension/TestExtension.java
   Wed Dec  1 17:12:15 2004
@@ -0,0 +1,121 @@
+package org.apache.beehive.controls.test.jws.extension;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests accessing controls property
+ */
+public class TestExtension extends SOAPReportTestCase
+{
+       public TestExtension(String s){super(s);}
+
+    /**
+     * Test invoking an inherited method on a subcontrol
+     */
+       @Freq("checkin")
+    public void testInheritedMethod() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testInheritedMethod";);
+    }
+
+
+    /**
+     * Test invoking an extended method on the subcontrol
+     */
+       @Freq("checkin")
+    public void testExtendedMethod() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testExtendedMethod";);
+    }
+
+    /**
+     * Tests getting an inherited property by control context on sub control
+     * implementation class.
+     */
+       @Freq("checkin")
+    public void testGetInheritedPropertyByContext() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetInheritedPropertyByContext";);
+    }
+
+
+    /**
+     * Tests getting an inherited property by getter on sub control bean class.
+     */
+       @Freq("detailed")
+    public void testGetInheritedPropertyByGetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetInheritedPropertyByGetter";);
+    }
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     */
+       @Freq("detailed")
+    public void testSetInheritedPropertyBySetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testSetInheritedPropertyBySetter";);
+    }
+
+    /**
+     * Tests getting an inherited property by control context on sub control
+     * implementation class.
+     */
+       @Freq("checkin")
+    public void testGetExtendedPropertyByContext() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetExtendedPropertyByContext";);
+    }
+
+
+    /**
+     * Tests getting an inherited property by getter on sub control bean class.
+     */
+       @Freq("detailed")
+    public void testGetExtendedPropertyByGetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetExtendedPropertyByGetter";);
+    }
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     */
+       @Freq("detailed")
+    public void testSetExtendedPropertyBySetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testSetExtendedPropertyBySetter";);
+    }
+
+    /**
+     * Tests getting an inherited property by control context on sub control
+     * implementation class.
+     */
+       @Freq("checkin")
+    public void testGetReconfiguredPropertyByContext() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetReconfiguredPropertyByContext";);
+    }
+
+
+    /**
+     * Tests getting an inherited property by getter on sub control bean class.
+     */
+       @Freq("detailed")
+    public void testGetReconfiguredPropertyByGetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testGetReconfiguredPropertyByGetter";);
+    }
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     */
+       @Freq("detailed")
+    public void testSetReconfiguredPropertyBySetter() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Extension.jws","testSetReconfiguredPropertyBySetter";);
+    }
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/instantiate/TestInstantiate.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/instantiate/TestInstantiate.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/instantiate/TestInstantiate.java
       Wed Dec  1 17:12:15 2004
@@ -0,0 +1,51 @@
+package org.apache.beehive.controls.test.jws.instantiate;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests controls instantiation on a web app deployed on a Tomcat server
+ */
+public class TestInstantiate extends SOAPReportTestCase
+{
+       public TestInstantiate(String s){super(s);}
+
+    /**
+     * Tests instantiating a custom control declaratively
+     */
+       @Freq("checkin")
+    public void testDeclarativeInstantiate() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Instantiate.jws","testDeclarativeInstantiate";);
+    }
+
+    /**
+     * Tests instantiating a custom control declaratively with properties
+     */
+       @Freq("checkin")
+    public void testDeclarativeInstantiateWithProperty() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Instantiate.jws","testDeclarativeInstantiateWithProperty";);
+    }
+
+    /**
+     * Tests instantiating a custom control programmatically
+     */
+       @Freq("checkin")
+    public void testProgrammaticInstantiate() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Instantiate.jws","testProgrammaticInstantiate";);
+    }
+
+    /**
+     * Tests instantiating a custom control programmatically with properties
+     */
+       @Freq("detailed")
+    public void testProgrammaticInstantiateWithProperty() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Instantiate.jws","testProgrammaticInstantiateWithProperty";);
+    }
+}

Added: 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/property/TestProperty.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/property/TestProperty.java?view=auto&rev=109411
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/controls/test/src/units/org/apache/beehive/controls/test/jws/property/TestProperty.java
     Wed Dec  1 17:12:15 2004
@@ -0,0 +1,78 @@
+package org.apache.beehive.controls.test.jws.property;
+
+import org.apache.beehive.test.tools.milton.junit.SOAPReportTestCase;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Freq;
+import org.apache.beehive.test.tools.mantis.annotations.tch.Status;
+
+
+
+/**
+ * Tests accessing controls property
+ */
+public class TestProperty extends SOAPReportTestCase
+{
+       public TestProperty(String s){super(s);}
+
+    /**
+     * Tests getting control property via control context.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testContextAccessByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testContext";);
+    }
+
+
+    /**
+     * Tests getting control property via control context.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testContextAccessByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testContext2";);
+    }
+
+    /**
+     * Tests getting control property by getters on controlbean class.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testGetterByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testGetters";);
+    }
+
+
+    /**
+     * Tests getting control property by getters on controlbean class.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testGetterByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testGetters2";);
+    }
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     * The control is instantiated declaratively
+     */
+       @Freq("checkin")
+    public void testSetterByDeclare() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testSetters";);
+    }
+
+
+    /**
+     * Tests setting control property by setters on controlbean class.
+     * The control is instantiated programmatically
+     */
+       @Freq("checkin")
+    public void testSetterByProgram() throws Exception
+    {
+               
assertReport("http://localhost:8080/controlsWeb/jws/Property.jws","testSetters2";);
+    }
+}

Reply via email to