Skip to content

Instantly share code, notes, and snippets.

@neomatrix369
Last active December 10, 2015 10:28
Show Gist options
  • Save neomatrix369/4420898 to your computer and use it in GitHub Desktop.
Save neomatrix369/4420898 to your computer and use it in GitHub Desktop.
MutabilityDetector maven build failure due to multiple test failures!
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MutabilityDetector 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4/maven-shade-plugin-1.4.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-shade-plugin/1.4/maven-shade-plugin-1.4.pom (6 KB at 19.3 KB/sec)
[WARNING] The POM for org.mutabilitydetector:asm-nonclassloadingsimpleverifier:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ MutabilityDetector ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ MutabilityDetector ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-test-source (default) @ MutabilityDetector ---
[INFO] Test Source directory: C:\Users\User\git\MutabilityDetector\src\test\benchmarks added.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MutabilityDetector ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\User\git\MutabilityDetector\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MutabilityDetector ---
[INFO] Compiling 98 source files to C:\Users\User\git\MutabilityDetector\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ MutabilityDetector ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\User\git\MutabilityDetector\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MutabilityDetector ---
[INFO] Compiling 137 source files to C:\Users\User\git\MutabilityDetector\target\test-classes
[WARNING] \Users\User\git\MutabilityDetector\src\test\java\org\mutabilitydetector\WellKnownJavaTypesTest.java:[43,39] com.sun.corba.se.impl.activation.ORBD is Sun proprietary API and may be removed in a future release
[WARNING] \Users\User\git\MutabilityDetector\src\test\java\org\mutabilitydetector\WellKnownJavaTypesTest.java:[125,26] com.sun.corba.se.impl.activation.ORBD is Sun proprietary API and may be removed in a future release
[WARNING] \Users\User\git\MutabilityDetector\src\test\java\org\mutabilitydetector\WellKnownJavaTypesTest.java:[146,45] com.sun.media.sound.JDK13Services is Sun proprietary API and may be removed in a future release
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ MutabilityDetector ---
[INFO] Surefire report directory: C:\Users\User\git\MutabilityDetector\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.mutabilitydetector.AnalysisResultTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.183 sec
Running org.mutabilitydetector.AnalysisSessionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec
Running org.mutabilitydetector.benchmarks.CanSubclassCheckerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.086 sec
Running org.mutabilitydetector.benchmarks.circular.CircularReferenceAnalysisOfBothImmutableTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.17 sec
Running org.mutabilitydetector.benchmarks.circular.CircularReferenceAnalysisTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.931 sec
Running org.mutabilitydetector.benchmarks.CollectionWithMutableElementTypeToFieldCheckerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
Running org.mutabilitydetector.benchmarks.escapedthis.EscapedThisReferenceCheckerTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.265 sec
Running org.mutabilitydetector.benchmarks.InherentTypeMutabilityCheckerTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.565 sec
Running org.mutabilitydetector.benchmarks.inheritance.TestSubclassingOfImmutableType
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running org.mutabilitydetector.benchmarks.inheritance.TestSubclassingOfMutableType
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running org.mutabilitydetector.benchmarks.mutabletofield.array.ArrayFieldMutabilityCheckerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.132 sec
Running org.mutabilitydetector.benchmarks.MutableTypeToFieldCheckerTest
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.658 sec
Running org.mutabilitydetector.benchmarks.PublishedNonFinalFieldCheckerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.211 sec
Running org.mutabilitydetector.benchmarks.settermethod.SetterMethodCheckerTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.337 sec
Running org.mutabilitydetector.benchmarks.StackOverflowInAnalysisTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.187 sec
Running org.mutabilitydetector.benchmarks.visibility.NonFinalFieldsCheckerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.096 sec
Running org.mutabilitydetector.checkers.AbstractMutabilityCheckerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.checkers.AccessModifierQueryTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.checkers.CheckerRunnerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.26 sec
Running org.mutabilitydetector.checkers.CollectionFieldTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.mutabilitydetector.checkers.CollectionTypeWrappedInUnmodifiableIdiomCheckerTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
Running org.mutabilitydetector.checkers.info.MutableTypeInformationTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.checkers.info.TypeStructureInformationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Running org.mutabilitydetector.checkers.MethodIsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.checkers.ResultCalculatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.mutabilitydetector.checkers.UnhandledExceptionBuilderTest
Tests run: 5, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
Running org.mutabilitydetector.checkers.util.AnalysisDatabaseTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec
Running org.mutabilitydetector.checkers.util.PrivateMethodInvocationCheckerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.073 sec
Running org.mutabilitydetector.checkers.util.PrivateMethodInvocationInformationTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
Running org.mutabilitydetector.checkers.util.StackPushingOpcodesTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.mutabilitydetector.checkers.util.TypeStructureInformationCheckerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.144 sec
Running org.mutabilitydetector.cli.BatchAnalysisSessionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running org.mutabilitydetector.cli.ClassListReaderFactoryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.mutabilitydetector.cli.ClassListToReportReaderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec
Running org.mutabilitydetector.cli.CommandLineOptionsTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
Running org.mutabilitydetector.cli.NamesFromClassResourcesTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec
Running org.mutabilitydetector.cli.SessionResultsFormatterTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE!
Running org.mutabilitydetector.ConfigurationBuilderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running org.mutabilitydetector.ConfigurationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.locations.ClassLocationTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running org.mutabilitydetector.locations.ClassNameConverterTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.locations.FieldLocationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.mutabilitydetector.MutabilityAsserterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running org.mutabilitydetector.MutabilityCheckerTest
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
Running org.mutabilitydetector.MutabilityReasonTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.MutableReasonDetailTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.unittesting.AllowedReasonTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
Running org.mutabilitydetector.unittesting.internal.AssertionReporterTest
Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
Running org.mutabilitydetector.unittesting.matchers.IsImmutableMatcherTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
Running org.mutabilitydetector.unittesting.matchers.reasons.AllowingForSubclassingTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.AllowingNonFinalFieldsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.AssumeCopiedIntoUnmodifiableTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.AssumingArrayFieldsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.523 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.AssumingFieldsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.594 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.ProvidedOtherClassTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.mutabilitydetector.unittesting.matchers.reasons.WithAllowedReasonsMatcherTest
Tests run: 8, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE!
Running org.mutabilitydetector.unittesting.MutabilityAssertTest
Tests run: 21, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec <<< FAILURE!
Running org.mutabilitydetector.WellKnownJavaTypesTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.394 sec
Results :
Failed tests: messageOfExceptionContainsUsefulInformationForDeveloper_whichCheckerFailed(org.mutabilitydetector.checkers.UnhandledExceptionBuilderTest):
messageOfExceptionContainsUsefulInformationForDeveloper_classBeingAnalysed(org.mutabilitydetector.checkers.UnhandledExceptionBuilderTest):
messageOfExceptionContainsUsefulInformationForDeveloper_fromAnalysisSession(org.mutabilitydetector.checkers.UnhandledExceptionBuilderTest):
printsReadableMessage(org.mutabilitydetector.cli.SessionResultsFormatterTest):
verboseOutputIncludesDetailedReasonAndPrettyPrintedCodeLocation(org.mutabilitydetector.cli.SessionResultsFormatterTest):
thrownExceptionContainsHelpfulMessage(org.mutabilitydetector.unittesting.internal.AssertionReporterTest):
performsAssertThatButWrapsExceptionInMutabilityAssertionErrorWithSameMessage(org.mutabilitydetector.unittesting.internal.AssertionReporterTest):
hasDescriptiveErrortMessageForMismatch(org.mutabilitydetector.unittesting.matchers.IsImmutableMatcherTest):
mismatchDescriptionListsWhichReasonsHaveBeenAllowed(org.mutabilitydetector.unittesting.matchers.reasons.WithAllowedReasonsMatcherTest):
mismatchDescriptionExplicitlyStatesNoReasonsHaveBeenAllowed(org.mutabilitydetector.unittesting.matchers.reasons.WithAllowedReasonsMatcherTest):
describesMismatchItselfIfNoSuchMethodExistsForDelegateMatcher(org.mutabilitydetector.unittesting.matchers.reasons.WithAllowedReasonsMatcherTest):
whenAssertImmutableFailsReasonsArePrintedWithAssertionFailure(org.mutabilitydetector.unittesting.MutabilityAssertTest):
whenAssertInstancesOfFailsReasonsArePrintedWithAssertionFailure(org.mutabilitydetector.unittesting.MutabilityAssertTest):
failedMatchMessageFromAssertThatIsDescriptive(org.mutabilitydetector.unittesting.MutabilityAssertTest):
Tests run: 316, Failures: 14, Errors: 0, Skipped: 3
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.935s
[INFO] Finished at: Thu Dec 27 01:03:26 GMT 2012
[INFO] Final Memory: 12M/32M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project MutabilityDetector: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\User\git\MutabilityDetector\target\surefire-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment