Giter Site home page Giter Site logo

igor-baiborodine / campsite-booking Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 11.0 3.03 MB

This project contains the source code of a Spring Boot 3 REST API example application.

Java 96.22% Shell 2.20% Dockerfile 1.59%
spring-retry spring-data jpa swagger-ui lombok example restful-webservices campsite api derby-database

campsite-booking's People

Contributors

actions-user avatar denisbalan avatar dependabot[bot] avatar igor-baiborodine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

campsite-booking's Issues

Integrate with SonarCloud

Execute an inspection including test coverage at SonarCloud in manual mode, i.e., from the command line with the mvn command.

mvn test fails

Cloned the repo (on 10/6/2020) and, without modification, ran mvn test which failed. Find below report. I apologize in advance if my choice of JVM is the root of the problem...

By the way, package does build (mvn -DskipTests package) successfully and run correctly per the README - thanks!

[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.515 s <<< FAILURE! - in com.kiroule.campsitebooking.service.BookingServiceImplTest
[ERROR] com.kiroule.campsitebooking.service.BookingServiceImplTest Time elapsed: 0.515 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:

Mockito cannot mock this class: interface com.kiroule.campsitebooking.repository.BookingRepository.

Mockito can only mock non-private & non-final classes.
If you're not sure why you're getting this error, please report to the mailing list.

Java : 11
JVM vendor name : AdoptOpenJDK
JVM vendor version : 11.0.8+10
JVM name : OpenJDK 64-Bit Server VM
JVM version : 11.0.8+10
JVM info : mixed mode
OS name : Linux
OS version : 5.4.0-48-generic

Underlying exception : java.lang.UnsupportedOperationException: Cannot define class using reflection
Caused by: java.lang.UnsupportedOperationException: Cannot define class using reflection
Caused by: java.lang.IllegalStateException: Could not find sun.misc.Unsafe
Caused by: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String, [B, int, int, java.lang.ClassLoader, java.security.ProtectionDomain)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] BookingServiceImplTest.com.kiroule.campsitebooking.service.BookingServiceImplTest » Mockito
[INFO]
[ERROR] Tests run: 9, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.103 s
[INFO] Finished at: 2020-10-07T15:48:22Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project campsite-booking: There are test failures.
[ERROR]
[ERROR] Please refer to /opt/campsite-booking/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[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

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.