zoukankan      html  css  js  c++  java
  • 排错1

    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO] 
    [INFO] zhuyr
    [INFO] zhuyr-core
    [INFO] zhuyr-jpa
    [INFO] zhuyr-rest
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building zhuyr 1.2.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ zhuyr ---
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ zhuyr ---
    [INFO] 
    [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ zhuyr ---
    [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
    [INFO] Working directory: D:work1TestProjectszhuyr
    [INFO] Storing buildNumber: UNKNOWN at timestamp: 1469588066548
    [WARNING] Cannot get the branch information from the git repository: 
    Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git
    
    [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
    [INFO] Working directory: D:work1TestProjectszhuyr
    [INFO] Storing buildScmBranch: UNKNOWN_BRANCH
    [INFO] 
    [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ zhuyr ---
    [INFO] 
    [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ zhuyr ---
    [INFO] Installing D:work1TestProjectszhuyrpom.xml to D:.m2
    epositorycomparenthiszhuyr1.2.0zhuyr-1.2.0.pom
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building zhuyr-core 1.2.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ zhuyr-core ---
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ zhuyr-core ---
    [INFO] 
    [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ zhuyr-core ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ zhuyr-core ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 2 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ zhuyr-core ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ zhuyr-core ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory D:work1TestProjectszhuyrzhuyr-coresrc	est
    esources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ zhuyr-core ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ zhuyr-core ---
    [INFO] No tests to run.
    [INFO] 
    [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ zhuyr-core ---
    [INFO] 
    [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ zhuyr-core ---
    [INFO] Building jar: D:work1TestProjectszhuyrzhuyr-core	argetzhuyr-core-sources.jar
    [INFO] 
    [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ zhuyr-core ---
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-core	argetzhuyr-core.jar to D:.m2
    epositorycomparenthiszhuyr-core1.2.0zhuyr-core-1.2.0.jar
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-corepom.xml to D:.m2
    epositorycomparenthiszhuyr-core1.2.0zhuyr-core-1.2.0.pom
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-core	argetzhuyr-core-sources.jar to D:.m2
    epositorycomparenthiszhuyr-core1.2.0zhuyr-core-1.2.0-sources.jar
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building zhuyr-jpa 1.2.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ zhuyr-jpa ---
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ zhuyr-jpa ---
    [INFO] 
    [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ zhuyr-jpa ---
    [INFO] 
    [INFO] --- maven-processor-plugin:3.1.0:process (process) @ zhuyr-jpa ---
    [INFO] diagnostic: 注: Hibernate JPA 2 Static-Metamodel Generator 5.0.7.Final
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ zhuyr-jpa ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 3 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ zhuyr-jpa ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ zhuyr-jpa ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 3 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ zhuyr-jpa ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ zhuyr-jpa ---
    [INFO] 
    [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ zhuyr-jpa ---
    [INFO] Building jar: D:work1TestProjectszhuyrzhuyr-jpa	argetzhuyr-jpa.jar
    [INFO] 
    [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ zhuyr-jpa ---
    [INFO] Building jar: D:work1TestProjectszhuyrzhuyr-jpa	argetzhuyr-jpa-sources.jar
    [INFO] 
    [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ zhuyr-jpa ---
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-jpa	argetzhuyr-jpa.jar to D:.m2
    epositorycomparenthiszhuyr-jpa1.2.0zhuyr-jpa-1.2.0.jar
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-jpapom.xml to D:.m2
    epositorycomparenthiszhuyr-jpa1.2.0zhuyr-jpa-1.2.0.pom
    [INFO] Installing D:work1TestProjectszhuyrzhuyr-jpa	argetzhuyr-jpa-sources.jar to D:.m2
    epositorycomparenthiszhuyr-jpa1.2.0zhuyr-jpa-1.2.0-sources.jar
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building zhuyr-rest 1.2.0
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ zhuyr-rest ---
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ zhuyr-rest ---
    [INFO] 
    [INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ zhuyr-rest ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ zhuyr-rest ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 2 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ zhuyr-rest ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ zhuyr-rest ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ zhuyr-rest ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ zhuyr-rest ---
    [INFO] Surefire report directory: D:work1TestProjectszhuyrzhuyr-rest	argetsurefire-reports
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Running com.zhuyr.test.CustomerRestTest
    ���� 27, 2016 10:54:35 ���� org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
    ����: Bundles path is deprecated and no longer used.
    ���� 27, 2016 10:54:35 ���� org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
    ��Ϣ: Starting container with: ["D:Program FilesJavajdk1.8.0_74injava", -D[Standalone], -Xms64m, -Xmx512m, -Djava.net.preferIPv4Stack=true, -Djava.awt.headless=true, -Djboss.modules.system.pkgs=org.jboss.byteman, -ea, -Djboss.home.dir=D:work	oolswildfly-10.0.0.Final, -Dorg.jboss.boot.log.file=D:work	oolswildfly-10.0.0.Finalstandalonelogserver.log, -Dlogging.configuration=file:D:work	oolswildfly-10.0.0.Finalstandaloneconfigurationlogging.properties, -jar, D:work	oolswildfly-10.0.0.Finaljboss-modules.jar, -mp, D:work	oolswildfly-10.0.0.Finalmodules, org.jboss.as.standalone, -Djboss.home.dir=D:work	oolswildfly-10.0.0.Final, -Djboss.server.base.dir=D:work	oolswildfly-10.0.0.Finalstandalone, -Djboss.server.log.dir=D:work	oolswildfly-10.0.0.Finalstandalonelog, -Djboss.server.config.dir=D:work	oolswildfly-10.0.0.Finalstandaloneconfiguration]
    ���� 27, 2016 10:54:35 ���� org.xnio.Xnio <clinit>
    INFO: XNIO version 3.2.0.Final
    ���� 27, 2016 10:54:35 ���� org.xnio.nio.NioXnio <clinit>
    INFO: XNIO NIO Implementation Version 3.2.0.Final
    ���� 27, 2016 10:54:35 ���� org.jboss.remoting3.EndpointImpl <clinit>
    INFO: JBoss Remoting version 4.0.9.Final
    10:54:38,229 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
    10:54:38,467 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
    10:54:38,545 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
    10:54:43,071 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
    10:54:43,166 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.3.4.Final
    10:54:43,191 INFO  [org.xnio.nio] (MSC service thread 1-5) XNIO NIO Implementation Version 3.3.4.Final
    10:54:43,339 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
    10:54:43,355 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
    10:54:43,355 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
    10:54:43,370 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
    10:54:43,386 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
    10:54:43,386 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
    10:54:43,386 INFO  [org.jboss.as.security] (MSC service thread 1-2) WFLYSEC0001: Current PicketBox version=4.9.4.Final
    10:54:43,467 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 4.0.18.Final
    10:54:43,451 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
    10:54:43,482 INFO  [org.jboss.as.naming] (MSC service thread 1-5) WFLYNAM0003: Starting Naming Service
    10:54:43,529 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
    10:54:43,623 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.3.15.Final starting
    10:54:43,623 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 1.3.15.Final starting
    10:54:43,853 INFO  [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.2.Final)
    10:54:44,512 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path 'D:work	oolswildfly-10.0.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
    10:54:44,591 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0012: Started server default-server.
    10:54:44,606 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0018: Host default-host starting
    10:54:44,622 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
    10:54:44,622 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = h2
    10:54:44,754 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
    10:54:44,754 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
    10:54:44,770 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = mysql
    10:54:45,476 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
    10:54:45,476 INFO  [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.
    10:54:46,147 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) WFLYDS0013: Started FileSystemDeploymentService for directory D:work	oolswildfly-10.0.0.Finalstandalonedeployments
    10:54:47,191 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-5) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
    10:54:47,191 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-6) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
    10:54:47,196 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
    10:54:47,196 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
    10:54:47,275 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/TriageDS]
    10:54:47,275 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/ZhuyrDS]
    10:54:47,275 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
    10:54:47,831 INFO  [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.1.3.Final (Apache CXF 3.1.4) 
    10:54:48,260 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
    10:54:48,260 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
    10:54:48,260 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started in 10373ms - Started 282 of 568 services (373 services are lazy, passive or on-demand)
    10:54:52,315 INFO  [org.jboss.as.repository] (management-handler-thread - 2) WFLYDR0001: Content added at location D:work	oolswildfly-10.0.0.Finalstandalonedatacontentd342655581b3bbfd1019aac8ec3988fdc80cbee4content
    10:54:52,394 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "zhuyr-rest-test.war" (runtime-name: "zhuyr-rest-test.war")
    10:54:54,191 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment zhuyr-rest-test.war
    10:54:54,803 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.2.3.Final
    10:54:55,162 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-1) WFLYEJB0473: JNDI bindings for session bean named 'CustomerTestRepo' in deployment unit 'deployment "zhuyr-rest-test.war"' are as follows:
    
    	java:global/zhuyr-rest-test/CustomerTestRepo!com.zhuyr.core.CustomerRepo
    	java:app/zhuyr-rest-test/CustomerTestRepo!com.zhuyr.core.CustomerRepo
    	java:module/CustomerTestRepo!com.zhuyr.core.CustomerRepo
    	java:global/zhuyr-rest-test/CustomerTestRepo
    	java:app/zhuyr-rest-test/CustomerTestRepo
    	java:module/CustomerTestRepo
    
    10:54:55,655 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
    10:54:55,655 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
    10:54:55,655 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
    10:54:55,671 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 58) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
    10:54:55,671 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0006: Starting Services for CDI deployment: zhuyr-rest-test.war
    10:54:55,766 INFO  [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900: 2.3.2 (Final)
    10:54:55,914 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0009: Starting weld service for deployment zhuyr-rest-test.war
    10:54:56,313 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0002: Started client-mappings cache from ejb container
    10:54:57,806 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 10) WFLYUT0021: Registered web context: /zhuyr-rest-test
    10:54:58,013 INFO  [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0010: Deployed "zhuyr-rest-test.war" (runtime-name : "zhuyr-rest-test.war")
    ���� 27, 2016 10:54:58 ���� org.jboss.remotingjmx.Util warnDeprecated
    WARN: The protocol 'http-remoting-jmx' is deprecated, instead you should use 'remote+http'.
    10:55:01,713 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 10) WFLYUT0022: Unregistered web context: /zhuyr-rest-test
    10:55:01,729 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0010: Stopping weld service for deployment zhuyr-rest-test.war
    10:55:01,902 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 12) WFLYCLINF0003: Stopped client-mappings cache from ejb container
    10:55:02,101 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment zhuyr-rest-test.war (runtime-name: zhuyr-rest-test.war) in 409ms
    10:55:02,319 INFO  [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0002: Content removed from location D:work	oolswildfly-10.0.0.Finalstandalonedatacontentd342655581b3bbfd1019aac8ec3988fdc80cbee4content
    10:55:02,319 INFO  [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0009: Undeployed "zhuyr-rest-test.war" (runtime-name: "zhuyr-rest-test.war")
    Tests run: 2, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 28.451 sec <<< FAILURE! - in com.zhuyr.test.CustomerRestTest
    testGet(com.zhuyr.test.CustomerRestTest)  Time elapsed: 2.754 sec  <<< ERROR!
    org.jboss.arquillian.test.spi.ArquillianProxyException: javax.ws.rs.NotFoundException : HTTP 404 Not Found [Proxied because : Original exception caused: class java.io.NotSerializableException: org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine$1]
    	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:201)
    	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:174)
    	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:473)
    	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:165)
    	at com.zhuyr.test.CustomerRestTest.testGet(CustomerRestTest.java:49)
    
    testCreate(com.zhuyr.test.CustomerRestTest)  Time elapsed: 0.049 sec  <<< FAILURE!
    java.lang.AssertionError: Not yet implemented
    	at org.junit.Assert.fail(Assert.java:88)
    	at com.zhuyr.test.CustomerRestTest.testCreate(CustomerRestTest.java:56)
    
    10:55:02,366 INFO  [org.jboss.as.server] (management-handler-thread - 4) WFLYSRV0211: Suspending server with 0ms timeout.
    10:55:02,413 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
    10:55:02,491 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
    10:55:02,522 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:jboss/datasources/ZhuyrDS]
    10:55:02,538 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0010: Unbound data source [java:jboss/datasources/TriageDS]
    10:55:02,569 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0019: Host default-host stopping
    10:55:02,569 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = h2
    10:55:02,569 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0019: Stopped Driver service with driver-name = mysql
    10:55:02,631 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0008: Undertow HTTP listener default suspending
    10:55:02,631 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080
    10:55:02,631 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0004: Undertow 1.3.15.Final stopping
    10:55:02,647 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) stopped in 179ms
    
    Results :
    
    Failed tests: 
      CustomerRestTest.testCreate:56 Not yet implemented
    
    Tests in error: 
      CustomerRestTest.testGet:49 » ArquillianProxy javax.ws.rs.NotFoundException : ...
    
    Tests run: 2, Failures: 1, Errors: 1, Skipped: 0
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] zhuyr .............................................. SUCCESS [  5.331 s]
    [INFO] zhuyr-core ......................................... SUCCESS [  1.429 s]
    [INFO] zhuyr-jpa .......................................... SUCCESS [  2.018 s]
    [INFO] zhuyr-rest ......................................... FAILURE [ 32.112 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 42.518 s
    [INFO] Finished at: 2016-07-27T10:55:02+08:00
    [INFO] Final Memory: 43M/410M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project zhuyr-rest: There are test failures.
    [ERROR] 
    [ERROR] Please refer to D:work1TestProjectszhuyrzhuyr-rest	argetsurefire-reports for the individual test results.
    [ERROR] -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :zhuyr-rest
    

      排出是因为少了RestApplication.class

    package com.zhuyr.test;
    
    import static org.junit.Assert.fail;
    
    import javax.ws.rs.client.Client;
    import javax.ws.rs.client.ClientBuilder;
    import javax.ws.rs.core.MediaType;
    
    import org.jboss.arquillian.container.test.api.Deployment;
    import org.jboss.arquillian.junit.Arquillian;
    import org.jboss.shrinkwrap.api.Archive;
    import org.jboss.shrinkwrap.api.ShrinkWrap;
    import org.jboss.shrinkwrap.api.asset.EmptyAsset;
    import org.jboss.shrinkwrap.api.spec.WebArchive;
    import org.junit.Assert;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    
    import com.zhuyr.core.Customer;
    import com.zhuyr.core.CustomerRepo;
    import com.zhuyr.rest.CustomerRest;
    import com.zhuyr.rest.RestApplication;
    
    /**
     * @author Administrator
     *
     */
    
    
    @RunWith(Arquillian.class)
    public class CustomerRestTest {
    	
    	@Deployment
    	public static Archive<?> createTestArchive() {
    		return ShrinkWrap.create(WebArchive.class, "zhuyr-rest-test.war")
    				.addClasses(Customer.class,CustomerRepo.class,CustomerTestRepo.class,
    						CustomerRest.class,RestApplication.class)
    				.addPackages(true, "com.restful","com.restful.test")
    				.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
    				.addAsWebInfResource(EmptyAsset.INSTANCE, "validation.xml");
    	}
    
    	@Test
    	public void testGet() {
    		Client client = ClientBuilder.newClient();
    		String response = client.target("http://localhost:8080/zhuyr-rest-test/demo")
    				.queryParam("id", "23")
    				.request(MediaType.APPLICATION_JSON).get(String.class);
    		Assert.assertNotNull("响应不能为空", response);
    		System.out.println(response.toString());
    	}
    
    	@Test
    	public void testCreate() {
    		fail("Not yet implemented");
    	}
    
    
    }
    

      

  • 相关阅读:
    布隆过滤器(Bloom Filter)
    什么是分布式账本
    什么是非对称加密?非对称加密算法介绍
    ANDROID DisplayManager 服务解析一
    ANDROID DisplayManager 服务解析一
    ANDROID DisplayManager 服务解析一
    ANDROID DisplayManager 服务解析一
    第1章 数据结构绪论
    第1章 数据结构绪论
    第1章 数据结构绪论
  • 原文地址:https://www.cnblogs.com/amoyzhu/p/5710419.html
Copyright © 2011-2022 走看看