gradle intellij platform 2.* build migration CI issues. #175
275 passed, 19 failed and 0 skipped
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.action.GotoTestOrCodeHandlerExtTest.xml
1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.action.GotoTestOrCodeHandlerExtTest | 1✅ | 2s |
✅ com.weirddev.testme.intellij.action.GotoTestOrCodeHandlerExtTest
✅ testNestedClassParams
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.action.TestMeActionHandlerTest.xml
1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.action.TestMeActionHandlerTest | 1✅ | 2s |
✅ com.weirddev.testme.intellij.action.TestMeActionHandlerTest
✅ testNestedClassParams
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.action.TestMeActionTest.xml
1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.action.TestMeActionTest | 1✅ | 1s |
✅ com.weirddev.testme.intellij.action.TestMeActionTest
✅ testSimpleClass
❌ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.xml
4 tests were completed in 1s with 0 passed, 4 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.MockBuilderFactoryTest | 4❌ | 1s |
❌ com.weirddev.testme.intellij.generator.MockBuilderFactoryTest
❌ resolve Mockito Version where classpathJars=null then expect: null
org.mockito.exceptions.base.MockitoException:
❌ resolve Mockito Version where classpathJars=[] then expect: null
org.mockito.exceptions.base.MockitoException:
❌ resolve Mockito Version where classpathJars=[c:/path/to/mockito-all-4.3.1.jar, c:/path/to/another-2.1.2.jar] then expect: null
org.mockito.exceptions.base.MockitoException:
❌ resolve Mockito Version where classpathJars=[c:/path/to/mockito-core-4.3.1.jar, c:/path/to/another-2.1.2.jar] then expect: 4.3.1
org.mockito.exceptions.base.MockitoException:
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorGroovyJunit4Test.xml
54 tests were completed in 123s with 54 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorGroovyJunit4Test | 54✅ | 123s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorGroovyJunit4Test
✅ testDirectlyReferencedPropertiesNotIgnored
✅ testIgnoreUnusedProperties
✅ testIgnoreUnusedPropertiesInGroovy
✅ testDeclareSpecificTestMethodThrownExceptionTypes
✅ testBean
✅ testJavaCallsGroovy
✅ testCtorOverProps
✅ testIgnoreUnusedPropertiesWhenInherited
✅ testCtorOverSetters
✅ testSettersOverCtor
✅ testEnumSubject
✅ testSimpleClass
✅ testParamsConstructors
✅ testIgnoreUnusedCtorArgumentsIdentifyMethodReference
✅ testGenerics
✅ testNoFormatting
✅ testUtilWithoutAccessableCtor
✅ testDate
✅ testEnum
✅ testCtorWhenNoMocks
✅ testMiscReplacementTypes
✅ testConstructors
✅ testWithFinalTypeDependency
✅ testStaticFieldless
✅ testOverloading
✅ testIgnoreUnusedCtorArgumentsWhenDelegatedCalls
✅ testMockFieldsInDependencyInjection
✅ testParamsConstructorsNoFqnReplacement
✅ testDefaultPackage
✅ testMockFieldsInDiWithCtor
✅ testConstants
✅ testReplacedInterface
✅ testNestedClassParams
✅ testOverrideAbstractIgnoreInherited
✅ testOverrideAbstract
✅ testFileTemplateCustomization
✅ testVariousFieldTypes
✅ testCollections
✅ testArrays
✅ testIgnoreUnusedCtorArgumentsInGroovy
✅ testGroovy
✅ testVerifyMethodCall
✅ testTypeNameCollision
✅ testTypeInDefaultPackageCollision
✅ testInheritanceIgnored
✅ testInheritance
✅ testGenericsTypeCollision
✅ testPrimitiveCallTypes
✅ testStatic
✅ testMockFieldsInDiWithSetter
✅ testMockReturned
✅ testIgnoreUnusedCtorArguments
✅ testAvoidInfiniteRecursionSelfReferences
✅ testWithSetters
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4PowerMockTest.xml
9 tests were completed in 18s with 9 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4PowerMockTest | 9✅ | 18s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4PowerMockTest
✅ testSimpleClass
✅ testRenderInternalMethodCallStubsIgnoredThrowExceptions
✅ testDeclareSpecificTestMethodThrownExceptionTypes
✅ testRenderInternalMethodCallStubs
✅ testMockFieldsInDependencyInjection
✅ testRenderInternalMethodCallStubsThrowExceptions
✅ testFileTemplateCustomization
✅ testVariousFieldTypes
✅ testRenderInternalMethodCallStubsIgnored
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4Test.xml
45 tests were completed in 83s with 45 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4Test | 45✅ | 83s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4Test
✅ testEnumSubject
✅ testSimpleClass
✅ testParamsConstructors
✅ testIgnoreUnusedCtorArgumentsIdentifyMethodReference
✅ testGenerics
✅ testNoFormatting
✅ testUtilWithoutAccessableCtor
✅ testDeclareSpecificTestMethodThrownExceptionTypes
✅ testDate
✅ testEnum
✅ testCtorWhenNoMocks
✅ testMiscReplacementTypes
✅ testConstructors
✅ testWithFinalTypeDependency
✅ testStaticFieldless
✅ testOverloading
✅ testIgnoreUnusedCtorArgumentsWhenDelegatedCalls
✅ testMockFieldsInDependencyInjection
✅ testParamsConstructorsNoFqnReplacement
✅ testDefaultPackage
✅ testMockFieldsInDiWithCtor
✅ testConstants
✅ testReplacedInterface
✅ testNestedClassParams
✅ testOverrideAbstractIgnoreInherited
✅ testOverrideAbstract
✅ testFileTemplateCustomization
✅ testVariousFieldTypes
✅ testCollections
✅ testArrays
✅ testIgnoreUnusedCtorArgumentsInGroovy
✅ testGroovy
✅ testVerifyMethodCall
✅ testTypeNameCollision
✅ testTypeInDefaultPackageCollision
✅ testInheritanceIgnored
✅ testInheritance
✅ testGenericsTypeCollision
✅ testPrimitiveCallTypes
✅ testStatic
✅ testMockFieldsInDiWithSetter
✅ testMockReturned
✅ testIgnoreUnusedCtorArguments
✅ testAvoidInfiniteRecursionSelfReferences
✅ testWithSetters
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorJunit5Test.xml
10 tests were completed in 18s with 10 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorJunit5Test | 10✅ | 18s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorJunit5Test
✅ testSimpleClass
✅ testUtilWithoutAccessableCtor
✅ testMockFieldsInDependencyInjection
✅ testMockFieldsInDiWithCtor
✅ testFileTemplateCustomization
✅ testVariousFieldTypes
✅ testArrays
✅ testVerifyMethodCall
✅ testMockFieldsInDiWithSetter
✅ testMockReturned
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorSpecs2Test.xml
16 tests were completed in 28s with 16 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorSpecs2Test | 16✅ | 28s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorSpecs2Test
✅ testSimpleClass
✅ testScalaWithDependencies
✅ testScalaSealedCaseClassEnum
✅ testScalaGenerics
✅ testScalaEnumeration
✅ testBean
✅ testScalaDependencyReturnsFuture
✅ testScalaFuture
✅ testScalaObject
✅ testConstants
✅ testScalaRequireExecutionContext
✅ testVariousTypesOfArguments
✅ testVariousFieldTypes
✅ testArrays
✅ testScalaCaseClass
✅ testMockReturned
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorSpockParameterizedTest.xml
1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorSpockParameterizedTest | 1✅ | 2s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorSpockParameterizedTest
✅ testGenerics
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorSpockTest.xml
8 tests were completed in 16s with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorSpockTest | 8✅ | 16s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorSpockTest
✅ testGenerics
✅ testBean
✅ testCtorOverProps
✅ testMockFieldsInDependencyInjection
✅ testMockFieldsInDiWithCtor
✅ testFileTemplateCustomization
✅ testMockFieldsInDiWithSetter
✅ testMockReturned
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestMeGeneratorTestNgTest.xml
10 tests were completed in 18s with 10 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestMeGeneratorTestNgTest | 10✅ | 18s |
✅ com.weirddev.testme.intellij.generator.TestMeGeneratorTestNgTest
✅ testSimpleClass
✅ testUtilWithoutAccessableCtor
✅ testMockFieldsInDependencyInjection
✅ testMockFieldsInDiWithCtor
✅ testFileTemplateCustomization
✅ testVariousFieldTypes
✅ testArrays
✅ testVerifyMethodCall
✅ testMockFieldsInDiWithSetter
✅ testMockReturned
❌ build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest.xml
2 tests were completed in 468ms with 0 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest | 2❌ | 468ms |
❌ com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest
❌ testPopulateDateFieldsDoubleDigits
org.mockito.exceptions.base.MockitoException:
❌ testPopulateDateFieldsSingleDigits
org.mockito.exceptions.base.MockitoException:
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.icon.TemplateNameFormatterTest.xml
3 tests were completed in 22ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.icon.TemplateNameFormatterTest | 3✅ | 22ms |
✅ com.weirddev.testme.intellij.icon.TemplateNameFormatterTest
✅ replace Html where html=<html><i>JUnit4</i><img src='/icons/junit.png'>& <i>Mockito</i><img src='/icons/mockito.png'></html> then expect: <html><i>JUnit4</i><img src='file:/home/runner/work/testme-idea/testme-idea/build/resources/main/icons/junit.png'>& <i>Mockito</i><img src='file:/home/runner/work/testme-idea/testme-idea/build/resources/main/icons/mockito.png'></html>
✅ add prefix to html content where html=<html><i>JUnit4</i><img src='/icons/junit.png'>& <i>Mockito</i><img src='/icons/mockito.png'></html> then expect: <html>Copy of <i>JUnit4</i><img src='/icons/junit.png'>& <i>Mockito</i><img src='/icons/mockito.png'></html>
✅ add prefix to html content where html=JUnit4 & Mockito then expect: Copy of JUnit4 & Mockito
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.IconTokensReplacerTest.xml
5 tests were completed in 30ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.IconTokensReplacerTest | 5✅ | 30ms |
✅ com.weirddev.testme.intellij.IconTokensReplacerTest
✅ testStripLastToken
✅ testStripTokens
✅ testTokenize
✅ testMultipleTokens
✅ testTokenizeLast
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.GroovyTestBuilderImplTest.xml
26 tests were completed in 73ms with 26 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.GroovyTestBuilderImplTest | 26✅ | 73ms |
✅ com.weirddev.testme.intellij.template.context.GroovyTestBuilderImplTest
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 0, noOfSetters: 0, #0]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 1, noOfSetters: 0, #1]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 2, noOfSetters: 2, #2]
✅ test should Prefer Setters Over Ctor [result: true, noOfCtorArgs: 2, noOfSetters: 3, #3]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 4, noOfSetters: 3, #4]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 4, noOfSetters: 5, #5]
✅ test should Prefer Setters Over Ctor [result: true, noOfCtorArgs: 4, noOfSetters: 6, #6]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 5, noOfSetters: 6, #7]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 5, noOfSetters: 6, #8]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 5, noOfSetters: 7, #9]
✅ test should Prefer Setters Over Ctor [result: true, noOfCtorArgs: 5, noOfSetters: 8, #10]
✅ test should Prefer Setters Over Ctor [result: false, noOfCtorArgs: 10, noOfSetters: 14, #11]
✅ test should Prefer Setters Over Ctor [result: true, noOfCtorArgs: 10, noOfSetters: 15, #12]
✅ test should Optimize Constructor Optimization [result: false, nBeanUsages: 0, nTotalTypeUsages: 0, #0]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 1, nTotalTypeUsages: 0, #1]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 2, nTotalTypeUsages: 2, #2]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 2, nTotalTypeUsages: 3, #3]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 4, nTotalTypeUsages: 3, #4]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 4, nTotalTypeUsages: 5, #5]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 4, nTotalTypeUsages: 6, #6]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 5, nTotalTypeUsages: 6, #7]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 5, nTotalTypeUsages: 6, #8]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 5, nTotalTypeUsages: 7, #9]
✅ test should Optimize Constructor Optimization [result: false, nBeanUsages: 5, nTotalTypeUsages: 8, #10]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 10, nTotalTypeUsages: 14, #11]
✅ test should Optimize Constructor Optimization [result: true, nBeanUsages: 10, nTotalTypeUsages: 15, #12]
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.JavaTestBuilderImplTest.xml
29 tests were completed in 171ms with 29 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.JavaTestBuilderImplTest | 29✅ | 171ms |
✅ com.weirddev.testme.intellij.template.context.JavaTestBuilderImplTest
✅ resolveType Output type where canonicalName=java.util.Set<Fire> and replacementMap=[java.util.Set:java.util.HashSet<TYPES>] then expect: java.util.HashSet<Fire>
✅ resolveType Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.Set:java.util.HashSet<TYPES>] then expect: java.util.HashSet<List<Fire>>
✅ resolveType Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.SetZ:java.util.HashSet<TYPES>] then expect: new java.util.HashSet<List<Fire>>(java.util.Arrays.asList(<VAL>))
✅ resolveType Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[:] then expect: new java.util.HashSet<List<Fire>>(java.util.Arrays.asList(<VAL>))
✅ resolveType Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.Set:java.util.HashSet] then expect: java.util.HashSet
✅ resolveType Output type where canonicalName=java.util.Set<Fire> and replacementMap=[java.util.Set:java.util.Arrays.asList] then expect: java.util.Arrays.asList
✅ resolveType Output type where canonicalName=Set<Fire> and replacementMap=[Set:HashSet<TYPES>] then expect: HashSet<Fire>
✅ resolveType Output type where canonicalName=java.util.concurrent.Future and replacementMap=[:] then expect: <VAL>
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set<Fire> and replacementMap=[java.util.Set:java.util.HashSet<TYPES>] then expect: java.util.HashSet<Fire>
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.Set:java.util.HashSet<TYPES>] then expect: java.util.HashSet<List<Fire>>
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set.of(<VAL>) and replacementMap=[java.util.SetZ:java.util.HashSet<TYPES>] then expect: java.util.Set.of(<VAL>)
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set.of(<VAL>) and replacementMap=[:] then expect: java.util.Set.of(<VAL>)
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.Set:java.util.HashSet] then expect: java.util.HashSet
✅ resolveType JAVA 9 Output type where canonicalName=java.util.Set<Fire> and replacementMap=[java.util.Set:java.util.Arrays.asList] then expect: java.util.Arrays.asList
✅ resolveType JAVA 9 Output type where canonicalName=Set<Fire> and replacementMap=[Set:HashSet<TYPES>] then expect: HashSet<Fire>
✅ resolveType JAVA 9 Output type where canonicalName=java.util.concurrent.Future and replacementMap=[:] then expect: <VAL>
✅ resolveType Input type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.Set:java.util.HashSet<TYPES>] then expect: java.util.HashSet<List<Fire>>
✅ resolveType Input type where canonicalName=java.util.Set<List<Fire>> and replacementMap=[java.util.SetZ:java.util.HashSet<TYPES>] then expect: new java.util.HashSet<List<Fire>>(java.util.Arrays.asList(<VAL>))
✅ resolveType Input type where canonicalName=java.util.concurrent.Future and replacementMap=[] then expect: java.util.concurrent.CompletableFuture.completedFuture(<VAL>)
✅ renderJavaCallParam - generic collection [result: new java.util.LinkedList<java.util.List<com.example.foes.Fear>>(java.util.Arrays.asList(java.util.Arrays.<com.example.foes.Fear>asList(null))), type: Type(canonicalName=java.util.Queue<java.util.List<com.example.foes.Fear>>), #0]
✅ renderJavaCallParam - generic collection [result: new java.util.HashSet(java.util.Arrays.asList("paramName")), type: Type(canonicalName=java.util.Set), #1]
✅ renderJavaCallParam - generic collection [result: new java.util.HashMap<java.lang.String,com.example.foes.Fear>(){{put("paramName",null);}}, type: Type(canonicalName=java.util.Map<java.lang.String,com.example.foes.Fear>), #2]
✅ renderJavaCallParam - generic collection [result: new java.util.HashMap(){{put("paramName","paramName");}}, type: Type(canonicalName=java.util.Map), #3]
✅ renderJavaCallParam - generic collection [result: new java.util.TreeMap<java.lang.String,com.example.foes.Fear>(new java.util.HashMap<java.lang.String,com.example.foes.Fear>(){{put("paramName",null);}}), type: Type(canonicalName=java.util.NavigableMap<java.lang.String,com.example.foes.Fear>), #4]
✅ renderJavaCallParam - JAVA 9 generic collection [result: new java.util.LinkedList<>(java.util.List.of(java.util.List.of(null))), type: Type(canonicalName=java.util.Queue<java.util.List<com.example.foes.Fear>>), #0]
✅ renderJavaCallParam - JAVA 9 generic collection [result: java.util.Set.of("paramName"), type: Type(canonicalName=java.util.Set), #1]
✅ renderJavaCallParam - JAVA 9 generic collection [result: java.util.Map.of("paramName",null), type: Type(canonicalName=java.util.Map<java.lang.String,com.example.foes.Fear>), #2]
✅ renderJavaCallParam - JAVA 9 generic collection [result: java.util.Map.of("paramName","paramName"), type: Type(canonicalName=java.util.Map), #3]
✅ renderJavaCallParam - JAVA 9 generic collection [result: new java.util.TreeMap<>(java.util.Map.of("paramName",null)), type: Type(canonicalName=java.util.NavigableMap<java.lang.String,com.example.foes.Fear>), #4]
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.LanguageTest.xml
3 tests were completed in 6ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.LanguageTest | 3✅ | 6ms |
✅ com.weirddev.testme.intellij.template.context.LanguageTest
✅ safe Value Of where language=Scala then expect: Scala
✅ safe Value Of where language=scala then expect: Scala
✅ safe Value Of where language=unknown then expect: Java
❌ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
13 tests were completed in 957ms with 0 passed, 13 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest | 13❌ | 957ms |
❌ com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest
❌ get Init Mocks Method where mockitoCoreVersion=null
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=1.3.ga
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=1.3.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=3.3.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=3.3cust.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=3.4.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=3.4misc.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=4.1.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=4.1.ga
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=4.6.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=4.12.0
org.mockito.exceptions.base.MockitoException:
❌ get Init Mocks Method where mockitoCoreVersion=11.1.0
org.mockito.exceptions.base.MockitoException:
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.StringUtilsTest.xml
5 tests were completed in 24ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.StringUtilsTest | 5✅ | 24ms |
✅ com.weirddev.testme.intellij.template.context.StringUtilsTest
✅ testCapitalizeFirstLetter
✅ testCamelCaseToWords
✅ testRemoveSuffix
✅ testHasLine
✅ testDeCapitalizeFirstLetter
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.TypeTest.xml
2 tests were completed in 18ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.context.TypeTest | 2✅ | 18ms |
✅ com.weirddev.testme.intellij.template.context.TypeTest
✅ testGenericTypeCreation
✅ testComplexGenericTypeCreation
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.template.TemplateRegistryTest.xml
1 tests were completed in 36ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.template.TemplateRegistryTest | 1✅ | 36ms |
✅ com.weirddev.testme.intellij.template.TemplateRegistryTest
✅ testTemplateRegistry
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.TestMeAdditionalActionJunit4Test.xml
6 tests were completed in 52s with 6 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.TestMeAdditionalActionJunit4Test | 6✅ | 52s |
✅ com.weirddev.testme.intellij.TestMeAdditionalActionJunit4Test
✅ testInnerOfInnerStaticClass
✅ testInnerOfInnerClass
✅ testInnerClass
✅ testInnerStaticClass
✅ testInnerStaticClassWithMember
✅ testInnerStaticOfInnerStaticClass
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.utils.ClassNameUtilsSpec.xml
10 tests were completed in 14ms with 10 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.utils.ClassNameUtilsSpec | 10✅ | 14ms |
✅ com.weirddev.testme.intellij.utils.ClassNameUtilsSpec
✅ stripGenerics [canonicalName: java.util.Set, result: java.util.Set, #0]
✅ stripGenerics [canonicalName: java.util.Set<Fire>, result: java.util.Set, #1]
✅ stripGenerics [canonicalName: java.util.Set<List<Fire>>, result: java.util.Set, #2]
✅ extractGenerics [canonicalName: java.util.Set, result: , #0]
✅ extractGenerics [canonicalName: java.util.Set<Fire>, result: <Fire>, #1]
✅ extractGenerics [canonicalName: java.util.Set<List<Fire>>, result: <List<Fire>>, #2]
✅ array Dimensions where canonicalName=canonicalName then expect: 0
✅ array Dimensions where canonicalName=java.lang.String[] then expect: 1
✅ array Dimensions where canonicalName=java.lang.String[][] then expect: 2
✅ array Dimensions where canonicalName=java.lang.String[][][] then expect: 3
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.utils.ClassNameUtilsTest.xml
15 tests were completed in 31ms with 15 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.utils.ClassNameUtilsTest | 15✅ | 31ms |
✅ com.weirddev.testme.intellij.utils.ClassNameUtilsTest
✅ testExtractTargetPropertyNameForGetter
✅ testRemoveFromCamelCaseName
✅ testExtractTargetPropertyNameForSetter
✅ testStripArrayVarargsDesignatorRemoveArray
✅ testExtractContainerType
✅ testRemoveFromCamelCaseNameReturnNullWhenInvalid
✅ testVarargsTrue
✅ testStripArrayVarargsDesignatorRemoveVarargs
✅ testExtractTargetPropertyNameForIsGetter
✅ testExtractClassName
✅ testStripArrayVarargsDesignator
✅ testExtractPackageName
✅ testExtractPackageNameWhenNull
✅ testIsArray
✅ testVarargsFalse
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.utils.TemplateFileNameFormatterTest.xml
2 tests were completed in 17ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.utils.TemplateFileNameFormatterTest | 2✅ | 17ms |
✅ com.weirddev.testme.intellij.utils.TemplateFileNameFormatterTest
✅ template Name To File where name=<html>Copy of <i>Spock</i><img src='/icons/groovy.png'> & <i>Mockito</i><img src='/icons/mockito.png'></html>.groovy then expect: %3Chtml%3ECopy+of+%3Ci%3ESpock%3C%2Fi%3E%3Cimg+src%3D%27%2Ficons%2Fgroovy.png%27%3E+%26+%3Ci%3EMockito%3C%2Fi%3E%3Cimg+src%3D%27%2Ficons%2Fmockito.png%27%3E%3C%2Fhtml%3E.groovy
✅ file Name To template name where name=%3Chtml%3ECopy+of+%3Ci%3ESpock%3C%2Fi%3E%3Cimg+src%3D%27%2Ficons%2Fgroovy.png%27%3E+%26+%3Ci%3EMockito%3C%2Fi%3E%3Cimg+src%3D%27%2Ficons%2Fmockito.png%27%3E%3C%2Fhtml%3E.groovy then expect: <html>Copy of <i>Spock</i><img src='/icons/groovy.png'> & <i>Mockito</i><img src='/icons/mockito.png'></html>.groovy
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.utils.TestSubjectResolverUtilsTest.xml
1 tests were completed in 4s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.utils.TestSubjectResolverUtilsTest | 1✅ | 4s |
✅ com.weirddev.testme.intellij.utils.TestSubjectResolverUtilsTest
✅ testIsValidForTesting
✅ build/test-results/test/TEST-com.weirddev.testme.intellij.utils.TypeUtilsTest.xml
11 tests were completed in 18ms with 11 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.weirddev.testme.intellij.utils.TypeUtilsTest | 11✅ | 18ms |
✅ com.weirddev.testme.intellij.utils.TypeUtilsTest
✅ is Language Base Class where typeCanonicalName=java.lang.Object then expect: true
✅ is Language Base Class where typeCanonicalName=java.lang.Class then expect: true
✅ is Language Base Class where typeCanonicalName=groovy.lang.GroovyObjectSupport then expect: true
✅ is Language Base Class where typeCanonicalName=java.lang.Enum then expect: true
✅ is Language Base Class where typeCanonicalName=java.lang.String then expect: false
✅ is Language Base Class where typeCanonicalName=null then expect: false
✅ is Basic Type where qualifiedName=java.lang.String then expect: true
✅ is Basic Type where qualifiedName=scala.Predef.String then expect: true
✅ is Basic Type where qualifiedName=byte then expect: true
✅ is Basic Type where qualifiedName=java.lang.Object then expect: false
✅ is Basic Type where qualifiedName=null then expect: false
Annotations
github-actions / Test Results (2024.2.1,true)
com.weirddev.testme.intellij.generator.MockBuilderFactoryTest ► resolve Mockito Version where classpathJars=null then expect: null
Failed test found in:
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.xml
Error:
org.mockito.exceptions.base.MockitoException:
Raw output
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.intellij.openapi.diagnostic.Logger.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : JetBrains s.r.o.
JVM vendor version : 21.0.3+13-b509.11
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21.0.3+13-b509.11
JVM info : mixed mode
OS name : Linux
OS version : 6.5.0-1025-azure
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.intellij.openapi.diagnostic.Logger]
at com.weirddev.testme.intellij.generator.MockBuilderFactoryTest.setup(MockBuilderFactoryTest.groovy:17)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.intellij.openapi.diagnostic.Logger]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
... 1 more
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:280)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:213)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:389)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:349)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:328)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:53)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:96)
at org.mockito.Mockito.mock(Mockito.java:1965)
at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:66)
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:27)
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:24)
at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44)
at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72)
at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73)
at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47)
at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:82)
... 1 more
Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 18 (62) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3948)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2213)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:224)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:123)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3661)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:394)
at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:276)
... 23 more
github-actions / Test Results (2024.2.1,true)
com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest ► testPopulateDateFieldsDoubleDigits
Failed test found in:
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest.xml
Error:
org.mockito.exceptions.base.MockitoException:
Raw output
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.weirddev.testme.intellij.generator.MockBuilderFactory.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : JetBrains s.r.o.
JVM vendor version : 21.0.3+13-b509.11
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21.0.3+13-b509.11
JVM info : mixed mode
OS name : Linux
OS version : 6.5.0-1025-azure
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.generator.MockBuilderFactory]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
at com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest.<init>(TestTemplateContextBuilderTest.groovy:13)
at java.base@21.0.3/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base@21.0.3/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base@21.0.3/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:250)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:260)
at org.junit.runners.BlockJUnit4ClassRunner$2.runReflectiveCall(BlockJUnit4ClassRunner.java:309)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42)
at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:124)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:99)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:94)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:63)
at java.base@21.0.3/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base@21.0.3/java.lang.reflect.Method.invoke(Method.java:580)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92)
at jdk.proxy2/jdk.proxy2.$Proxy6.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:198)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:130)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:101)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:61)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.generator.MockBuilderFactory]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
... 56 more
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:280)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:213)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:389)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:349)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:328)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:53)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:96)
at org.mockito.Mockito.mock(Mockito.java:1965)
at org.mockito.Mockito.mock(Mockito.java:1880)
at org.mockito.Mockito$mock.call(Unknown Source)
... 56 more
Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 18 (62) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3948)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2213)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:224)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:123)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3661)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:394)
at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:276)
... 72 more
github-actions / Test Results (2024.2.1,true)
com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest ► testPopulateDateFieldsSingleDigits
Failed test found in:
build/test-results/test/TEST-com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest.xml
Error:
org.mockito.exceptions.base.MockitoException:
Raw output
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.weirddev.testme.intellij.generator.MockBuilderFactory.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : JetBrains s.r.o.
JVM vendor version : 21.0.3+13-b509.11
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21.0.3+13-b509.11
JVM info : mixed mode
OS name : Linux
OS version : 6.5.0-1025-azure
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.generator.MockBuilderFactory]
at com.weirddev.testme.intellij.generator.TestTemplateContextBuilderTest.<init>(TestTemplateContextBuilderTest.groovy:13)
at java.base@21.0.3/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base@21.0.3/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base@21.0.3/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:250)
at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:260)
at org.junit.runners.BlockJUnit4ClassRunner$2.runReflectiveCall(BlockJUnit4ClassRunner.java:309)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:42)
at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:80)
at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:72)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:124)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:99)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:94)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:63)
at java.base@21.0.3/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base@21.0.3/java.lang.reflect.Method.invoke(Method.java:580)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92)
at jdk.proxy2/jdk.proxy2.$Proxy6.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:198)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:130)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:101)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:61)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.generator.MockBuilderFactory]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
... 53 more
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:280)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:213)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:389)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:349)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:328)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:53)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:96)
at org.mockito.Mockito.mock(Mockito.java:1965)
at org.mockito.Mockito.mock(Mockito.java:1880)
at org.mockito.Mockito$mock.call(Unknown Source)
... 53 more
Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 18 (62) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3948)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2213)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:224)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:123)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3661)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:394)
at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:276)
... 69 more
github-actions / Test Results (2024.2.1,true)
com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest ► get Init Mocks Method where mockitoCoreVersion=null
Failed test found in:
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
build/test-results/test/TEST-com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.xml
Error:
org.mockito.exceptions.base.MockitoException:
Raw output
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.weirddev.testme.intellij.template.context.TestSubjectInspector.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : JetBrains s.r.o.
JVM vendor version : 21.0.3+13-b509.11
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21.0.3+13-b509.11
JVM info : mixed mode
OS name : Linux
OS version : 6.5.0-1025-azure
You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.
Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.template.context.TestSubjectInspector]
at com.weirddev.testme.intellij.template.context.MockitoMockBuilderTest.setup(MockitoMockBuilderTest.groovy:17)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class com.weirddev.testme.intellij.template.context.TestSubjectInspector]
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
... 1 more
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:280)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.mockClass(InlineBytecodeGenerator.java:213)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.lambda$mockClass$0(TypeCachingBytecodeGenerator.java:47)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:157)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:371)
at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:179)
at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:382)
at org.mockito.internal.creation.bytebuddy.TypeCachingBytecodeGenerator.mockClass(TypeCachingBytecodeGenerator.java:40)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMockType(InlineDelegateByteBuddyMockMaker.java:389)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.doCreateMock(InlineDelegateByteBuddyMockMaker.java:349)
at org.mockito.internal.creation.bytebuddy.InlineDelegateByteBuddyMockMaker.createMock(InlineDelegateByteBuddyMockMaker.java:328)
at org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker.createMock(InlineByteBuddyMockMaker.java:56)
at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:53)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:96)
at org.mockito.Mockito.mock(Mockito.java:1965)
at org.mockito.internal.configuration.MockAnnotationProcessor.processAnnotationForMock(MockAnnotationProcessor.java:66)
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:27)
at org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:24)
at org.mockito.internal.configuration.IndependentAnnotationEngine.createMockFor(IndependentAnnotationEngine.java:44)
at org.mockito.internal.configuration.IndependentAnnotationEngine.process(IndependentAnnotationEngine.java:72)
at org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:73)
at org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:47)
at org.mockito.MockitoAnnotations.openMocks(MockitoAnnotations.java:82)
... 1 more
Caused by: java.lang.IllegalArgumentException: Java 21 (65) is not supported by the current version of Byte Buddy which officially supports Java 18 (62) - update Byte Buddy or set net.bytebuddy.experimental as a VM property
at net.bytebuddy.utility.OpenedClassReader.of(OpenedClassReader.java:96)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3948)
at net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2213)
at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:224)
at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.make(AbstractInliningDynamicTypeBuilder.java:123)
at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:3661)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.transform(InlineBytecodeGenerator.java:394)
at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:610)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225)
at org.mockito.internal.creation.bytebuddy.InlineBytecodeGenerator.triggerRetransformation(InlineBytecodeGenerator.java:276)
... 23 more