jcheype / NabAlive

Nabaztag server based on Netty
http://www.nabalive.com
63 stars 10 forks source link

initializationError(net.violet.nuvoos.web.server.TestServer) #7

Closed ikriz closed 12 years ago

ikriz commented 12 years ago

System Info: Linux localhost 3.0.0-23-generic #39-Ubuntu SMP

Why does this test fail on Ubuntu 11.10, during 'mvn clean install'

[INFO] ------------------------------------------------------------------------ [INFO] Building web-framework [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting file set: /home/ikriz/NabAlive/web-framework/target (included: [**], excluded: []) [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [jrebel:generate {execution: generate-rebel-xml}] [INFO] Processing com.nabalive:web-framework with packaging jar [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 10 source files to /home/ikriz/NabAlive/web-framework/target/classes [WARNING] /home/ikriz/NabAlive/web-framework/src/main/java/com/nabalive/framework/web/Route.java:[6,45] sun.reflect.generics.reflectiveObjects.NotImplementedException is internal proprietary API and may be removed in a future release

[WARNING] /home/ikriz/NabAlive/web-framework/src/main/java/com/nabalive/framework/web/Route.java:[75,18] sun.reflect.generics.reflectiveObjects.NotImplementedException is internal proprietary API and may be removed in a future release

[INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Compiling 3 source files to /home/ikriz/NabAlive/web-framework/target/test-classes [INFO] [surefire:test {execution: default-test}] [INFO] Surefire report directory: /home/ikriz/NabAlive/web-framework/target/surefire-reports


T E S T S

Running net.violet.nuvoos.web.server.TestServer Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.023 sec <<< FAILURE! initializationError(net.violet.nuvoos.web.server.TestServer) Time elapsed: 0.003 sec <<< ERROR! java.lang.Exception: No runnable methods at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:177) at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:122) at org.junit.runners.ParentRunner.validate(ParentRunner.java:269) at org.junit.runners.ParentRunner.(ParentRunner.java:66) at org.junit.runners.BlockJUnit4ClassRunner.(BlockJUnit4ClassRunner.java:58) at org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:13) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) at org.apache.maven.surefire.junit4.JUnit4TestSet.(JUnit4TestSet.java:45) at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Running net.violet.nuvoos.web.server.AppTest 20:01:23 DEBUG com.nabalive.framework.web.Route - name 20:01:23 DEBUG com.nabalive.framework.web.Route - id 20:01:23 DEBUG com.nabalive.framework.web.Route - new pattern: /api/([^/])/([^/]) {id=123, name=julien} 20:01:23 DEBUG com.nabalive.framework.web.Route - name 20:01:23 DEBUG com.nabalive.framework.web.Route - id 20:01:23 DEBUG com.nabalive.framework.web.Route - new pattern: /api/([^/])/([^/]) Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 sec

Results :

Tests in error: initializationError(net.violet.nuvoos.web.server.TestServer)

Tests run: 3, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures.

Please refer to /home/ikriz/NabAlive/web-framework/target/surefire-reports for the individual test results. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: There are test failures.

Please refer to /home/ikriz/NabAlive/web-framework/target/surefire-reports for the individual test results. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to /home/ikriz/NabAlive/web-framework/target/surefire-reports for the individual test results. at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:575) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15 seconds [INFO] Finished at: Tue Jul 24 22:01:23 CEST 2012 [INFO] Final Memory: 96M/237M [INFO] ------------------------------------------------------------------------

jcheype commented 12 years ago

can you send me the text report : /home/ikriz/NabAlive/web-framework/target/surefire-reports

ikriz commented 12 years ago

sent to your mail

jcheype commented 12 years ago

I've just renamed the test class that seems to raise the test error, normaly it's fixed

ikriz commented 12 years ago

Thanks for that :)

[INFO] BUILD SUCCESSFUL