Closed saniaalex closed 8 years ago
Can you post details on what test is failing?
As a note, the UI testing framework requires you to not touch the mouse while running tests because it has to move the pointer around and click stuff so that might be the issue.
Also, if your goal is just to build it you can run mvn with the -DskipTests=true
Yes, I left the mouse untouched while bulding the project.
Failed tests: hide(org.pdfsam.ui.commons.HidingPaneTest): Predicate failed for 'HidingPane@5d87eb34[styleClass=root]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145646391.png focusedField(org.pdfsam.ui.commons.RadioButtonDrivenTextFieldsPaneTest): Predicate failed for 'TextField@7cf59001[styleClass=text-input text-field FIELD]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145648439.png eventSent(org.pdfsam.ui.commons.UrlButtonTest): (..) dontValidateOnEnter(org.pdfsam.ui.commons.ValidableTextFieldTest): Predicate failed for 'ValidableTextField@37e1f168[styleClass=text-input text-field validable-field]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145655849.png invalidBlank(org.pdfsam.ui.io.BrowsableDirectoryFieldUITest): Predicate failed for 'BrowsableDirectoryField@36143876[styleClass=browsable-field victim-no-blank]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145658245.png invalidBlank(org.pdfsam.ui.io.BrowsableFileFieldUITest): Predicate failed for 'BrowsableFileField@49505d56[styleClass=browsable-field victim-no-blank]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145660104.png applyCompress(org.pdfsam.ui.io.PdfDestinationPaneUITest): (..) applyClickAll(org.pdfsam.ui.io.PdfDestinationPaneUITest): (..) removeConstraintOnDeselect(org.pdfsam.ui.io.PdfVersionConstrainedCheckBoxTest) addConstraintOnSelect(org.pdfsam.ui.io.PdfVersionConstrainedCheckBoxTest) openClick(org.pdfsam.ui.module.OpenButtonTest) failButtonVisibleOnFailure(org.pdfsam.ui.module.TaskFailedButtonTest) moveTopByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest): Predicate failed for query '#victim'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145668104.png removeRelease(org.pdfsam.ui.selection.multiple.SelectionTableTest) clickWithErrorsShowsLogStage(org.pdfsam.ui.selection.multiple.SelectionTableTest): (..) openByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest) openFolderByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest) moveDownByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest): Predicate failed for query '#victim'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145673996.png moveBottomByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest): expected:<0> but was:<-1> select(org.pdfsam.ui.selection.multiple.SelectionTableTest) clear(org.pdfsam.ui.selection.multiple.SelectionTableTest): expected:<1> but was:<0> moveUpByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest): Predicate failed for query '#victim'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145680140.png clearSelectionByClick(org.pdfsam.ui.selection.multiple.SelectionTableTest): expected:<1> but was:<0> setDestinationByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest) multipleSelect(org.pdfsam.ui.selection.multiple.SelectionTableTest) moveSelected(org.pdfsam.ui.selection.multiple.SelectionTableTest): Predicate failed for query '#victim'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446145683967.png infoByContextMenu(org.pdfsam.ui.selection.multiple.SelectionTableTest): (..) moveUp(org.pdfsam.ui.selection.multiple.SelectionTableToolbarTest) remove(org.pdfsam.ui.selection.multiple.SelectionTableToolbarTest) moveDown(org.pdfsam.ui.selection.multiple.SelectionTableToolbarTest) clear(org.pdfsam.ui.selection.multiple.SelectionTableToolbarTest) pwdSentOnEnterKey(org.pdfsam.ui.selection.PasswordFieldPopupTest): (..) clickWithErrorsShowsLogStage(org.pdfsam.ui.selection.single.SingleSelectionPaneTest): (..)
I also tried running the pom.xml file of pdfsam-community. That also has a build failure.
I need to build it from eclipse .. how can I build it by skipping the tests?
I built the project by skipping tet and it gets built perfectly. But now when I trt exec:java in pdfcommunity pom.xml file it again has a failure. How to remove this error and execute the project?
I can't see the error message in the screenshot... anyway, you can run it as a standard Java application running this class in Eclipse https://github.com/torakiki/pdfsam/blob/master/pdfsam-community/src/main/java/org/pdfsam/community/App.java
On running app.java I get an error Error: Could not find or load main class app.java
When I try running pom.xml as exec:java, there is a build failure. I have included whole error message in screen shot
I think you are running the pdfsam-parent while you should run exec:java from the pdfsam-community module
Yes, I was running pdfsam-parent by mistake. Its running perfectly from pdfsam-community. Thank you for the help. Is there any chance that I can get the test errors fixed?
I'll try running it on my Windows box and see if I have the same issue. Could you attach some of the surefire reports the error message mention?
Attached is the file with all test results on pdf sam.
On Fri, Oct 30, 2015 at 4:32 AM, Andrea Vacondio notifications@github.com wrote:
I'll try running it on my Windows box and see if I have the same issue. Could you attach some of the surefire reports the error message mention?
— Reply to this email directly or view it on GitHub https://github.com/torakiki/pdfsam/issues/109#issuecomment-152459620.
mmm... it doesn't seem to have any attachment
I need to have write permissions to the repository to attach files..which I dont. Il copy paste the whole thing..
Test results-
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
onLoadedChangedSelectedPdfVersionEvent(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
restoreStateFromEmpty(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
onDecryptedSetDestinationRequest(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
loadingStateDetails(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
openFolderMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
onSaveWorkspace(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
invalidatedDescriptorDoesntTriggerAnything(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
onSaveWorkspaceWithPwd(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
openFileMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
loadEvent(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
setDestinationMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
disableMenuOnSwitchToInvalid(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
loadedDetailsSpecialChars(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
clickEncryptedThrowsRequest(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
onSaveWorkspaceEmptyDescriptor(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
decryptedDetails(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
restoreStateFrom(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
removeMenuItem(org.pdfsam.ui.selection.single.SingleSelectionPaneTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class java.util.stream.ForEachOps$ForEachTask
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
at org.pdfsam.test.ClearEventStudioRule.
Running org.pdfsam.ui.support.CircularObservableListTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.pdfsam.ui.support.FXValidationSupportTest
17:50:27.312 [main] TRACE o.p.ui.support.FXValidationSupport - Validating Chuck
17:50:27.312 [main] TRACE o.p.ui.support.FXValidationSupport - Validating
17:50:27.334 [main] TRACE o.p.ui.support.FXValidationSupport - Making state NOT_VALIDATED
17:50:27.337 [main] TRACE o.p.ui.support.FXValidationSupport - Validating Chuck
17:50:27.340 [main] TRACE o.p.ui.support.FXValidationSupport - Validating
17:50:27.341 [main] TRACE o.p.ui.support.FXValidationSupport - Making state NOT_VALIDATED
17:50:27.343 [main] TRACE o.p.ui.support.FXValidationSupport - Validating Chuck
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
java.lang.ThreadDeath
at java.lang.Thread.stop(Thread.java:850)
at org.loadui.testfx.utils.UserInputDetector.userInputDetected(UserInputDetector.java:58)
at org.loadui.testfx.utils.UserInputDetector.assertPointsAreEqual(UserInputDetector.java:42)
at org.loadui.testfx.utils.UserInputDetector.run(UserInputDetector.java:27)
at java.lang.Thread.run(Thread.java:745)
[TestFX] User mouse movement detected. Aborting test.
Results :
Failed tests: hide(org.pdfsam.ui.commons.HidingPaneTest): Predicate failed for 'HidingPane@153a316c[styleClass=root]'. Screenshot saved as C:\Users\Welcome\git\pdfsam\pdfsam-fx\screenshot1446504615105.png
Tests in error:
focusedField(org.pdfsam.ui.commons.RadioButtonDrivenTextFieldsPaneTest)
nullArg(org.pdfsam.ui.commons.SetDestinationRequestTest)
footprint(org.pdfsam.ui.commons.SetDestinationRequestTest): Could not initialize class sun.security.provider.SecureRandom$SeederHolder
fallback(org.pdfsam.ui.commons.SetDestinationRequestTest): Could not initialize class sun.security.provider.SecureRandom$SeederHolder
nullUrl(org.pdfsam.ui.commons.UrlButtonTest)
eventSent(org.pdfsam.ui.commons.UrlButtonTest)
emptyUrl(org.pdfsam.ui.commons.UrlButtonTest): Could not initialize class java.util.stream.ForEachOps$ForEachTask
nullArg(org.pdfsam.ui.io.AddPdfVersionConstraintEventTest): Unexpected exception, expected
Tests run: 259, Failures: 1, Errors: 144, Skipped: 16
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] PDFsam ............................................. SUCCESS [ 0.122 s]
[INFO] PDFsam i18n ........................................ SUCCESS [ 17.803 s]
[INFO] PDFsam core ........................................ SUCCESS [ 8.408 s]
[INFO] PDFsam JavaFx views ................................ FAILURE [ 20.508 s]
[INFO] PDFsam service ..................................... SKIPPED
[INFO] PDFsam merge module ................................ SKIPPED
[INFO] PDFsam simple split module ......................... SKIPPED
[INFO] PDFsam split by size module ........................ SKIPPED
[INFO] PDFsam split by bookmarks module ................... SKIPPED
[INFO] PDFsam alternate mix module ........................ SKIPPED
[INFO] PDFsam rotate module ............................... SKIPPED
[INFO] PDFsam desktop client application .................. SKIPPED
[INFO] PDFsam Community Edition application ............... SKIPPED
[INFO] PDFsam docs ........................................ SKIPPED
[INFO] PDFsam MSI installer ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.713 s
[INFO] Finished at: 2015-11-02T17:50:27-05:00
[INFO] Final Memory: 14M/179M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project pdfsam-fx: Error occurred in starting fork, check output in log -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
The error is java.lang.NoClassDefFoundError
on a Java8 class so I'd first make sure you have a proper jdk8 configured.
Could you please run the command mvn -v
?
Ok then... everything seems fine, I'll try the same configuration but I've to admit I'm running out of ideas
Hello,
When I try performing code coverage on source code using Emma on eclipse it gives an error : Could not find or load main class app.java . Could you tell the reason?
I think the main reason of all errors is that I am not able to figure out how to set up this project on eclipse. Could you give me a set of instructions which will help me set up pdfsam on eclipse?
Im attaching few surefire test reports
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2.957 sec <<< FAILURE! validSteps(org.pdfsam.merge.MergeOptionsPaneTest) Time elapsed: 2.207 sec <<< FAILURE! Argument(s) are different! Wanted: mergeParametersBuilder.blankPageIfOdd(true); -> at org.pdfsam.merge.MergeOptionsPaneTest.validSteps(MergeOptionsPaneTest.java:79) Actual invocation has different arguments: mergeParametersBuilder.blankPageIfOdd(false); -> at org.pdfsam.merge.MergeOptionsPane.apply(MergeOptionsPane.java:96)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.pdfsam.merge.MergeOptionsPaneTest.validSteps(MergeOptionsPaneTest.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
onSaveWorkspace(org.pdfsam.merge.MergeOptionsPaneTest) Time elapsed: 0.318 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e> at org.junit.Assert.assertEquals(Assert.java:115) at org.junit.Assert.assertEquals(Assert.java:144) at org.pdfsam.merge.MergeOptionsPaneTest.onSaveWorkspace(MergeOptionsPaneTest.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
I can run Emma coverage without errors, how do you run it?
To set up the project properly on eclipse: I have Eclipse Mars 4.5.0 with a bounch of plugins, what interests you is M2E (Maven integration for Eclipse) 1.6.
Once you have that and you have a git clone, you start Eclipse on a clean/empty workspace and you do a "File -> import -> Maven -> Existing Maven Projects", you browse to the git clone directory and select all of the available projects. You should end up with a fully working workspace, that's what I do for PDFsam but also all the other projects I have, the only difference is that I'm on Linux but it shouldn't make any difference.
I followed the steps you told and imported the projects as maven projects. Now when I do right-click -> run as -> maven test . I get an error "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?" I checked windows -> preferences ->java and it is having a JDK selection. So that is not the problem.
Also, when I do right click -> run as -> junit test. All the tests are failing due to an exception. I have attached the test reports and coverage reports.
Could you send me the coverage and test reports you got? Test cases which were passing earlier are failing now. Have you made any changes to the last version?
I had to configure the jdk environment on windows-preferences-> java and now the maven tests are running. My only problem now is that all JUnit tests are failing and the emma coverage report is very low. Exceptions are being thrown when I run the tests as there is an error shown in pdfsam-fx and pdfsam-gui folders.
I am unable to understand the errors. You can see a red mark on both these folders in work space. The error is in PDFVersionFilterTest.java and KeywordsTabTest.java and SummaryTabTest.java
Hello, Could you tell me if validSteps, onSaveWorkspace and restoreStateFrom are failing on your system too?
No, I don't have any failing test, same as the CI server https://travis-ci.org/torakiki/pdfsam I experienced some failing test from time to time with some exotic error message but beside these flickering tests it's all green most of the times. What I found is that UI testing framework doesn't like dual monitors, is it your case? And as I think I mentioned before, if you move the mouse while tests are running you'll get a failing test and an error message saying "mouse movement detected" or something like that.
As I had posted before, eclipse is showing an error in pdfsam-fx and pdfsam-gui. I opened PdfVersionFilter.java and it is showing a red line below changed. I cant understand this error. Each time I try running a unit test. Eclipse shows "Errors exist in pdfsam-fx and pdfsam-gui , do you want to proceed? " and then an exception occurs. Please tell a solution .
The error in pdfsam-fx-
Exception during JUnit test-
My unit tests are failing because of the following exception related to i18n.
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: Could not initialize class org.pdfsam.i18n.DefaultI18nContext$DefaultI18nContextHolder
Could you tell me the reason? Have I missed out any dependency? I have installed maven and getText plugins on eclipse as told in Build and run file.
There are multiple exceptions. If you want I can copy paste the whole set of exceptions for reference.
Try going to the pdfsam-i18n
module and run mvn clean install
, this will install the jars of the module to your local repository
Yes that was what I missed out. Thank you so much for your time and help. Just few test (vaidSteps and onSaveWorkspace) are failing. Rest are passing. Is there any reason for those two tests for failing?
On Tue, Nov 10, 2015 at 3:39 AM, Andrea Vacondio notifications@github.com wrote:
Try going to the pdfsam-i18n module and run mvn clean install, this will install the jars of the module to your local repository
— Reply to this email directly or view it on GitHub https://github.com/torakiki/pdfsam/issues/109#issuecomment-155358606.
Not really, they should all pass. What is the error for them? Have you tried running the whole thing again? It happens sometime to have flickering tests, not sure why, but most of the time they should all pass.
When I run the test on pdfsam-alternate mix, all tests are failing. I tried running again and again. As I told before changed() method in pdfsam-fx and pdfsam-gui were shown as errors so I commented that out. The errors are gone but still tests are not passing for most modules. Tests are passing for pdfsam-rotate. I am getting a message "Unkown constant: 18 " everywhere. What is that??
Image 1 : pdfsam alternate-mix
Image 2: pdfsam-rotate
pdfsam- simple split
I pushed a fix for those errors Eclipse is reporting, can you try pulling the latest version and run the tests again? The CI server ran them correctly https://travis-ci.org/torakiki/pdfsam
The errors are gone but the unit tests for simple split and alternate mix are still failing. Did you make any change with simple split code? It is typing chuck in the code instead of textbox during testing.
simple split
The builder test case is failing in simple split. InvalidFirstStep, InvalidSecondStep , validSteps and onSaveworkspace is failing in alternate mix.
Could you try it on your system?
Hi, did you manage to make it work? I'm not having any failing test locally nor is the CI server https://travis-ci.org/torakiki/pdfsam
Hello Andrea,
Yes it worked. Thanks for all he help.
Thanks and regards, Sania
On Wed, Jan 20, 2016 at 11:49 AM, Andrea Vacondio notifications@github.com wrote:
Hi, did you manage to make it work? I'm not having any failing test locally nor is the CI server https://travis-ci.org/torakiki/pdfsam
— Reply to this email directly or view it on GitHub https://github.com/torakiki/pdfsam/issues/109#issuecomment-173269009.
Sania Alex Graduate Student, IT Student worker University of Cincinnati
513-501-5429
alexsa@mail.uc.edu alexsa@mail.uc.edu
Great :)
Hello, Thank you for replying. Now pdfsam-core is getting built but pdfsam javafx views has a failure.
Error- "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project pdfsam-fx: There are test failures."
Please solve this.