Code Monkey home page Code Monkey logo

Comments (5)

 avatar commented on June 9, 2024

Appears to be a me problem. I checked out your code and is running the test. Back to it then I guess. Versions of dependencies??

from code-examples.

 avatar commented on June 9, 2024

I've got junit 5 under spring-boot-starter-test

+- org.springframework.boot:spring-boot-starter-test:jar:2.6.3:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.6.3:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.6.3:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.6.0:test
[INFO] | | - net.minidev:json-smart:jar:2.4.7:compile
[INFO] | | - net.minidev:accessors-smart:jar:2.4.7:compile
[INFO] | | - org.ow2.asm:asm:jar:9.1:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:runtime
[INFO] | | - jakarta.activation:jakarta.activation-api:jar:1.2.2:runtime
[INFO] | +- org.assertj:assertj-core:jar:3.21.0:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.8.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | | +- org.junit.platform:junit-platform-commons:jar:1.8.2:test
[INFO] | | | - org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
[INFO] | | - org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
[INFO] | | - org.junit.platform:junit-platform-engine:jar:1.8.2:test
[INFO] | +- org.mockito:mockito-core:jar:4.0.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.11.22:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.11.22:test
[INFO] | | - org.objenesis:objenesis:jar:3.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:4.0.0:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:5.3.15:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.3.15:compile
[INFO] | +- org.springframework:spring-test:jar:5.3.15:test
[INFO] | - org.xmlunit:xmlunit-core:jar:2.8.4:test

from code-examples.

 avatar commented on June 9, 2024

and lombok

+- org.projectlombok:lombok:jar:1.18.22:compile (optional)

from code-examples.

 avatar commented on June 9, 2024

Possibly [INFO] | +- org.mockito:mockito-core:jar:4.0.0:test
isn't up to snuff in spring-boot?

versus

testCompile('org.mockito:mockito-junit-jupiter:2.23.0')

java is a special flavor of dep hell.
*** This is not the issue ****

from code-examples.

 avatar commented on June 9, 2024

Oh.
I've got

public final class ClassIAmMocking implements Closeable {
...

Needed: ...add a text file to the project's src/test/resources/mockito-extensions directory named org.mockito.plugins.MockMaker and add a single line of text:

mock-maker-inline

https://www.baeldung.com/mockito-final

from code-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.