Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3744

java.net.UnknownHostException: struts.apache.org when running xwork tests offline

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      I have just realized that if you run xwork tests going offline, 72 tests fail.

       
      Tests run: 752, Failures: 72, Errors: 0, Skipped: 144, Time elapsed: 15.202 sec <<< FAILURE!
      
      Results :
      
      Failed tests: 
        setUp(com.opensymphony.xwork2.TestNGXWorkTestCaseTest$RunTest)
        setUp(com.opensymphony.xwork2.LocaleAwareTest)
        testSimpleTest(com.opensymphony.xwork2.TestNGXWorkTestCaseTest)
        testMultipleConfigProviders(com.opensymphony.xwork2.config.ConfigurationTest)
        testActions(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderActionsTest)
        testInvalidActions(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderActionsTest)
        testPackageDefaultClassRef(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderActionsTest)
        testDefaultActionClass(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderActionsTest)
        testStrictAllowedMethods(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderAllowedMethodsTest)
        testDefaultAllowedMethods(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderAllowedMethodsTest)
        testActions(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderExceptionMappingsTest)
        testGlobalResultInheritenceTest(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderGlobalResultInheritenceTest)
        testInterceptorsLoadedFromSpringApplicationContext(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderInterceptorsSpringTest)
        testInterceptorInheritance(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderInterceptorsTest)
        testInterceptorParamOverriding(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderInterceptorsTest)
        testBasicInterceptors(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderInterceptorsTest)
        testInvalidFileThrowsException(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderInvalidFileTest)
        testMultiLevelInheritance(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderMultilevelTest)
        testBadInheritance(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderPackagesTest)
        testDefaultClassRef(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderPackagesTest)
        testBasicPackages(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderPackagesTest)
        testPackageInheritance(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderPackagesTest)
        testDefaultPackage(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderPackagesTest)
        testInheritedResultTypesParams(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderResultTypesTest)
        testPlainResultTypesParams(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderResultTypesTest)
        testActions(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderResultsTest)
        testResultTypes(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderResultsTest)
        testResultInheritance(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderResultsTest)
        testConfigsInJarFiles(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderTest)
        testLoadOrder(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderTest)
        testNeedsReload(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderTest)
        testEmptySpaces(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderTest)
        testInheritence(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderTest)
        testStackWithElements(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderUnknownHandlerStackTest)
        testEmptyStack(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderUnknownHandlerStackTest)
        testWildCardInclude(com.opensymphony.xwork2.config.providers.XmlConfigurationProviderWildCardIncludeTest)
        testInvokesActionInvocationIfNoErrors(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesAndExcludesMethodWithIncludeWildcardAndNoMatches(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testNoValidateAction(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testReturnsInputWithoutExecutingIfHasErrors(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesMethod(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesAndExcludesMethodWithExcludeWildcard(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testExcludesMethod(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesAndExcludesMethodAllWildCarded(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesAndExcludesMethodWithIncludeWildcard(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesMethodWithWildcard(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testIncludesAndExcludesMethod(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        testExcludesMethodWithWildCard(com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptorTest)
        setUp(com.opensymphony.xwork2.interceptor.ParametersInterceptorTest)
        testPrefixMethodInvocation1(com.opensymphony.xwork2.interceptor.ValidationInterceptorPrefixMethodInvocationTest)
        testPrefixMethodInvocation2(com.opensymphony.xwork2.interceptor.ValidationInterceptorPrefixMethodInvocationTest)
        testStack(com.opensymphony.xwork2.util.UnknownHandlerManagerTest)
        testEmptyStack(com.opensymphony.xwork2.util.UnknownHandlerManagerTest)
        setUp(com.opensymphony.xwork2.validator.AnnotationActionValidatorManagerTest)
        setUp(com.opensymphony.xwork2.validator.DateRangeValidatorTest)
        setUp(com.opensymphony.xwork2.validator.DoubleRangeValidatorTest)
        setUp(com.opensymphony.xwork2.validator.ExpressionValidatorTest)
        setUp(com.opensymphony.xwork2.validator.IntRangeValidatorTest)
        setUp(com.opensymphony.xwork2.validator.LongRangeValidatorTest)
        testModelDrivenValidation(com.opensymphony.xwork2.validator.ModelDrivenValidationTest)
        setUp(com.opensymphony.xwork2.validator.ShortRangeValidatorTest)
        setUp(com.opensymphony.xwork2.validator.SimpleActionValidationTest)
        setUp(com.opensymphony.xwork2.validator.StringValidatorTest)
        testAnnotatedMethodFailure(com.opensymphony.xwork2.validator.ValidatorAnnotationTest)
        testModelFieldErrorsAddedWithoutFieldPrefix(com.opensymphony.xwork2.validator.VisitorFieldValidatorModelTest)
        testModelFieldErrorsAddedWithoutFieldPrefixForInterface(com.opensymphony.xwork2.validator.VisitorFieldValidatorModelTest)
        testVisitorChildValidation(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
        testContextIsOverriddenByContextParamInValidationXML(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
        testArrayValidation(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
        testContextIsPropagated(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
        testCollectionValidation(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
        testBeanMessagesUseBeanResourceBundle(com.opensymphony.xwork2.validator.VisitorFieldValidatorTest)
      
      Tests run: 752, Failures: 72, Errors: 0, Skipped: 144
      

      PS: Should I have to submit under xwork project?

        Attachments

          Activity

            People

            • Assignee:
              maurizio.cucchiara Maurizio Cucchiara
              Reporter:
              maurizio.cucchiara Maurizio Cucchiara
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: