You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pa...@apache.org on 2007/01/02 17:37:02 UTC
svn commit: r491844 -
/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/
Author: paulsp
Date: Tue Jan 2 08:37:01 2007
New Revision: 491844
URL: http://svn.apache.org/viewvc?view=rev&rev=491844
Log:
Added a bunch of unit test that verify only the basic functionality.
Added:
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java (with props)
myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java (with props)
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlCommandButtonTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlCommandButtonTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlCommandButton();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlCommandButtonTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlGraphicImageTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlGraphicImageTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ HtmlGraphicImage component = new HtmlGraphicImage();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+ component.setUrl("http://myfaces.apache.org");
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlGraphicImageTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlInputHiddenTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlInputHiddenTest(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlInputHidden();
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputHiddenTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlInputSecretTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlInputSecretTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlInputSecret();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputSecretTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlInputTextTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlInputTextTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlInputText();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlInputTextareaTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlInputTextareaTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlInputTextarea();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlInputTextareaTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlMessageTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlMessageTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define required panel group
+ HtmlPanelGroup panelGroup = new HtmlPanelGroup();
+
+ // Define the referenced component
+ UIComponent referencedComponent = new HtmlInputText();
+ referencedComponent.setId("referencedComponent");
+ referencedComponent.setParent(panelGroup);
+ panelGroup.getChildren().add(referencedComponent);
+ facesContext.addMessage(referencedComponent.getId(), new FacesMessage(
+ FacesMessage.SEVERITY_ERROR, "summary", "detail"));
+
+ // Define the component
+ HtmlMessage component = new HtmlMessage();
+ component.setId("TestComponent");
+
+ referencedComponent.setParent(panelGroup);
+ panelGroup.getChildren().add(component);
+ component.setFor(referencedComponent.getId());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, panelGroup);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessageTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,90 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlMessagesTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlMessagesTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define required panel group
+ HtmlPanelGroup panelGroup = new HtmlPanelGroup();
+
+ // Define the referenced component
+ UIComponent referencedComponent = new HtmlInputText();
+ referencedComponent.setId("referencedComponent");
+ referencedComponent.setParent(panelGroup);
+ panelGroup.getChildren().add(referencedComponent);
+ facesContext.addMessage(referencedComponent.getId(), new FacesMessage(
+ FacesMessage.SEVERITY_ERROR, "summary", "detail"));
+
+ // Define the component
+ HtmlMessages component = new HtmlMessages();
+ component.setId("TestComponent");
+
+ referencedComponent.setParent(panelGroup);
+ panelGroup.getChildren().add(component);
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlMessagesTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlOutputLabelTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlOutputLabelTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlOutputLabel();
+ component.setId("TestComponent");
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputLabelTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlOutputTextTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlOutputTextTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlOutputText();
+ component.setId("TestComponent");
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlOutputTextTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlPanelGridTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlPanelGridTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlPanelGrid();
+ component.setId("TestComponent");
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGridTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlPanelGroupTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlPanelGroupTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlPanelGroup();
+ component.setId("TestComponent");
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlPanelGroupTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectBooleanCheckboxTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectBooleanCheckboxTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectBooleanCheckbox();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectBooleanCheckboxTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectManyCheckboxTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectManyCheckboxTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectManyCheckbox();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyCheckboxTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectManyListboxTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectManyListboxTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectManyCheckbox();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyListboxTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectManyMenuTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectManyMenuTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectManyMenu();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectManyMenuTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectOneListboxTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectOneListboxTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectOneListbox();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneListboxTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectOneMenuTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectOneMenuTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectOneMenu();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneMenuTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java?view=auto&rev=491844
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java (added)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java Tue Jan 2 08:37:01 2007
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.myfaces.component.html.ext;
+
+import java.io.IOException;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.html.HtmlForm;
+
+import junit.framework.Test;
+
+import org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase;
+import org.apache.myfaces.test.utils.TestUtils;
+
+public class HtmlSelectOneRadioTest extends AbstractTomahawkViewControllerTestCase
+{
+
+ public HtmlSelectOneRadioTest(String name)
+ {
+ super(name);
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception
+ {
+ super.tearDown();
+ }
+
+ public static Test suite()
+ {
+ return null; // keep this method or maven won't run it
+ }
+
+ /**
+ * Verify component renders with the default renderer.
+ */
+ public void testDefaultRenderer()
+ {
+ // Define the component
+ UIComponent component = new HtmlSelectOneRadio();
+ component.setId("TestComponent");
+ component.setParent(new HtmlForm());
+
+ // Render the component
+ try
+ {
+ TestUtils.renderComponent(facesContext, component);
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ // Verify component was rendered
+ assertIdExists(component.getId());
+ }
+}
Propchange: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/component/html/ext/HtmlSelectOneRadioTest.java
------------------------------------------------------------------------------
svn:eol-style = native