You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Craig McClanahan <cr...@apache.org> on 2006/04/12 01:39:04 UTC
[Shale] unit test failures
It looks like the changes for the validator broke the core-library unit
tests. Gary, can you take a look please?
[craigmcc@perpetua core-library]$ ant test
Buildfile: build.xml
init:
[echo] ---------- Shale Core Library 1.0.3-SNAPSHOT -----------
[echo] jsf-api.jar =
/home/craigmcc/Apache/struts/current/shale/core-library/../lib/myfaces/myfaces-
api.jar
[echo] jsf-impl.jar =
/home/craigmcc/Apache/struts/current/shale/core-library/../lib/myfaces/myfaces-
impl.jar
[echo] shale-test.jar =
/home/craigmcc/Apache/struts/current/shale/core-library/../test-framework/dist/lib/shale-
test.jar
[echo] creator2.present = ${creator2.present}
[echo] jsfri.present = ${jsfri.present}
[echo] myfaces.present= true
[echo] spring.present= true
[echo] tiles.present= true
prepare:
static:
compile:
library-core:
library-remoting:
library-spring:
library-tiles:
creator2:
library-creator2:
library:
test:compile:
test:
[junit] Testsuite:
org.apache.shale.dialog.config.ConfigurationParserTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.863 sec
[junit] Testcase: testClassName took 0.784 sec
[junit] Testcase: testAdditionalProps took 0.074 sec
[junit] Testsuite:
org.apache.shale.dialog.faces.DialogNavigationHandlerTestCase
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 1.181 sec
[junit] Testcase: testExplicitTransitions took 0.701 sec
[junit] Testcase: testImplicitTransitions took 0.065 sec
[junit] Testcase: testMixedTransitions took 0.078 sec
[junit] Testcase: testNestedSubdialog took 0.071 sec
[junit] Testcase: testPristine took 0.028 sec
[junit] Testcase: testStandardNavigationFailure took 0.064 sec
[junit] Testcase: testStandardNavigationNull took 0.054 sec
[junit] Testcase: testStandardNavigationSuccess took 0.049 sec
[junit] Testcase: testViewStates took 0.068 sec
[junit] Testsuite: org.apache.shale.dialog.impl.ImplClassesTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.835 sec
[junit] Testcase: testExplicitTransitions took 0.686 sec
[junit] Testcase: testImplicitTransitions took 0.075 sec
[junit] Testcase: testPristine took 0.072 sec
[junit] Testsuite: org.apache.shale.remoting.XhtmlHelperTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.212 sec
[junit] Testcase: testLinkJavascript took 0.207 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testcase: testLinkStylesheet took 0.002 sec
[junit] Testsuite: org.apache.shale.remoting.impl.ChainProcessorTestCase
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.247 sec
[junit] ------------- Standard Error -----------------
[junit] [ERROR] ChainProcessor - Cannot find catalog 'remoting' for
resource '/foo/bar'
[junit] [ERROR] ChainProcessor - Cannot find command 'foo.bar' in
catalog 'remoting' for resource '/foo/bar'
[junit] ------------- ---------------- ---------------
[junit] Testcase: testCreateContext took 0.209 sec
[junit] Testcase: testMapCataog took 0.001 sec
[junit] Testcase: testMapCommand took 0.002 sec
[junit] Testcase: testMissingCatalog took 0.005 sec
[junit] Testcase: testMissingCommand took 0.006 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testcase: testProcess took 0.015 sec
[junit] Testcase: testSendNotFound took 0.002 sec
[junit] Testcase: testServerError took 0.005 sec
[junit] Testsuite:
org.apache.shale.remoting.impl.ClassResourceProcessorTestCase
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.243 sec
[junit] Testcase: testInvalidResource took 0.196 sec
[junit] Testcase: testMapping took 0.009 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testcase: testNotModifiedResource took 0.009 sec
[junit] Testcase: testValidResource took 0.026 sec
[junit] Testsuite: org.apache.shale.remoting.impl.MappingImplTestCase
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.192 sec
[junit] Testcase: testExtension took 0.186 sec
[junit] Testcase: testExtensionExtra took 0.001 sec
[junit] Testcase: testInvalid took 0.001 sec
[junit] Testcase: testPrefix took 0.001 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testcase: testResourceIdentifiers took 0.001 sec
[junit] Testsuite:
org.apache.shale.remoting.impl.MethodBindingProcessorTestCase
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.235 sec
[junit] Testcase: testInvalidBean took 0.191 sec
[junit] Testcase: testInvalidMethod took 0.003 sec
[junit] Testcase: testMapping took 0.001 sec
[junit] Testcase: testPristine took 0 sec
[junit] Testcase: testDirectStream took 0.021 sec
[junit] Testcase: testDirectWriter took 0.002 sec
[junit] Testcase: testIndirectStream took 0.01 sec
[junit] Testcase: testIndirectWriter took 0.004 sec
[junit] Testsuite: org.apache.shale.util.LoadBundleTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
[junit] Testcase: testEngish took 0.195 sec
[junit] Testcase: testFrench took 0.012 sec
[junit] Testcase: testPristine took 0 sec
[junit] Testsuite: org.apache.shale.util.MessagesTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.209 sec
[junit] Testcase: testEngish took 0.193 sec
[junit] Testcase: testFrench took 0.013 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testsuite: org.apache.shale.util.TokenProcessorTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.553 sec
[junit] Testcase: testMultiple took 0.548 sec
[junit] Testcase: testPristine took 0.001 sec
[junit] Testsuite: org.apache.shale.validator.CommonsValidatorTestCase
[junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 1.29 sec
[junit] ------------- Standard Output ---------------
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: testRule]} (component-family=
javax.faces.Input, renderer-type=javax.faces.Text)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1]} (component-family=
javax.faces.Form, renderer-type=javax.faces.Form)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: testRule]} (component-family=
javax.faces.Input, renderer-type=javax.faces.Text)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1]} (component-family=
javax.faces.Form, renderer-type=javax.faces.Form)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test2]} (component-family=
javax.faces.Form, renderer-type=javax.faces.Form)
[junit] No Renderer found for component {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /viewId][Class:
javax.faces.component.html.HtmlForm,Id: test2][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] ------------- ---------------- ---------------
[junit] ------------- Standard Error -----------------
[junit] Apr 11, 2006 4:27:01 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/validator-rules.xml'
[junit] Apr 11, 2006 4:27:01 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/custom-rules.xml'
[junit] Apr 11, 2006 4:27:02 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/validator-rules.xml'
[junit] Apr 11, 2006 4:27:02 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/custom-rules.xml'
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: testRule]} (component-family=
javax.faces.Input, renderer-type=javax.faces.Text)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1]}
(component-family=javax.faces.Form, renderer-type=javax.faces.Form)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: testRule]} (component-family=
javax.faces.Input, renderer-type=javax.faces.Text)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] Apr 11, 2006 4:27:02 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/validator-rules.xml'
[junit] Apr 11, 2006 4:27:02 PM
org.apache.shale.validator.CommonsValidator
getValidatorAction
[junit] INFO: Loading validation rules file from
'/org/apache/shale/validator/custom-rules.xml'
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1]}
(component-family=javax.faces.Form, renderer-type=javax.faces.Form)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test1][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test2]}
(component-family=javax.faces.Form, renderer-type=javax.faces.Form)
[junit] [WARN] UIComponentBase - No Renderer found for component
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/viewId][Class: javax.faces.component.html.HtmlForm,Id: test2][Class:
javax.faces.component.html.HtmlInputText,Id: requiredField]}
(component-family=javax.faces.Input, renderer-type=javax.faces.Text)
[junit] ------------- ---------------- ---------------
[junit] Testcase: testRequired took 0.81 sec
[junit] Testcase: testCustom took 0.218 sec
[junit] Testcase: testValidateRequired took 0.256 sec
[junit] FAILED
[junit] Not Found: function jcv_retrieveFormName(form)
[junit] junit.framework.AssertionFailedError: Not Found: function
jcv_retrieveFormName(form)
[junit] at
org.apache.shale.validator.CommonsValidatorTestCase.checkScript(
CommonsValidatorTestCase.java:1110)
[junit] at
org.apache.shale.validator.CommonsValidatorTestCase.testValidateRequired(
CommonsValidatorTestCase.java:251)
BUILD FAILED
/home/craigmcc/Apache/struts/current/shale/core-library/build.xml:559: Test
org.apache.shale.validator.CommonsValidatorTestCase failed
Total time: 16 seconds
[craigmcc@perpetua core-library]$