Migrate FenceStep
and the toggleOffOn
to support ConfigurationCacheHackList
#3937
GitHub Actions / JUnit gradle 23 ubuntu-latest
failed
Jan 3, 2025 in 0s
496 tests run, 483 passed, 11 skipped, 2 failed.
Annotations
github-actions / JUnit gradle 23 ubuntu-latest
CombinedJavaFormatStepTest.checkIssue1679()
org.opentest4j.AssertionFailedError:
expected: com.diffplug.spotless.Formatter@8cccbf54
but was: com.diffplug.spotless.Formatter@6a1b24a0
Raw output
org.opentest4j.AssertionFailedError:
expected: com.diffplug.spotless.Formatter@8cccbf54
but was: com.diffplug.spotless.Formatter@6a1b24a0
at app//com.diffplug.spotless.StepHarnessBase.<init>(StepHarnessBase.java:36)
at app//com.diffplug.spotless.StepHarness.<init>(StepHarness.java:30)
at app//com.diffplug.spotless.StepHarness.forFormatter(StepHarness.java:49)
at app//com.diffplug.spotless.StepHarness.forSteps(StepHarness.java:40)
at app//com.diffplug.spotless.combined.CombinedJavaFormatStepTest.checkIssue1679(CombinedJavaFormatStepTest.java:46)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
Check failure on line 92 in testlib/src/test/java/com/diffplug/spotless/generic/FenceStepTest.java
github-actions / JUnit gradle 23 ubuntu-latest
FenceStepTest.broken()
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2
-L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on
+LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
Raw output
org.opentest4j.AssertionFailedError: Snapshot mismatch at L1:C2
-L1-6 fence(fenceRemoved) An intermediate step removed a match of spotless:off spotless:on
+LINE_UNDEFINED fence(java.lang.IllegalArgumentException) This step requires the underlying file. If this is a test, use StepHarnessWithFile (...)
at app//com.diffplug.selfie.junit5.FSJava.assertFailed(SnapshotSystemJUnit5.kt:58)
at app//com.diffplug.selfie.junit5.FSJava.assertFailed(SnapshotSystemJUnit5.kt:43)
at app//com.diffplug.selfie.SelfieImplementationsKt.toBeDidntMatch(SelfieImplementations.kt:245)
at app//com.diffplug.selfie.SelfieImplementationsKt.access$toBeDidntMatch(SelfieImplementations.kt:1)
at app//com.diffplug.selfie.StringSelfie.toBe(SelfieImplementations.kt:207)
at app//com.diffplug.spotless.generic.FenceStepTest.broken(FenceStepTest.java:92)
at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1597)
Loading