GithubHelp home page GithubHelp logo

asarkar / cassandra-unit-spring Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 109 KB

License: Apache License 2.0

Kotlin 100.00%
annotation cassandra cassandra-server cassandra-unit integration-testing spring spring-boot testing

cassandra-unit-spring's People

Contributors

asarkar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cassandra-unit-spring's Issues

Example documentation

Hi, first of all thank you for providing us this library.

However I ran into several issues while trying to use it.

First, by just importing testImplementation("com.asarkar.spring:cassandra-unit-spring:2.0.0") I got the missing library error :

> Task :compileKotlin UP-TO-DATE
> Task :compileJava NO-SOURCE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :compileTestKotlin FAILED
e: D:\work\workspace\spring-data-cassandra\src\test\kotlin\org\rbleuse\springdatacassandra\AutoConfigureWithKnownPortsTest.kt: (4, 12): Unresolved reference: cassandraunit
e: D:\work\workspace\spring-data-cassandra\src\test\kotlin\org\rbleuse\springdatacassandra\AutoConfigureWithKnownPortsTest.kt: (21, 33): Unresolved reference: EmbeddedCassandraServerHelper
e: D:\work\workspace\spring-data-cassandra\src\test\kotlin\org\rbleuse\springdatacassandra\AutoConfigureWithKnownPortsTest.kt: (22, 33): Unresolved reference: EmbeddedCassandraServerHelper
e: D:\work\workspace\spring-data-cassandra\src\test\kotlin\org\rbleuse\springdatacassandra\AutoConfigureWithKnownPortsTest.kt: (27, 23): Unresolved reference: EmbeddedCassandraServerHelper
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileTestKotlin'.

By adding manually testImplementation("org.cassandraunit:cassandra-unit:4.3.1.0") I can fix the compilation problem, but running the test seems to not do anything and run forever without any log.
Running from Intellij or with ./gradlew clean build gives the same result.

My env is : Windows 11, Java 17, Kotlin 1.6, Spring-boot 2.6.3 and Gradle 7.4

Probably I did something wrong. Is there any example I can follow somewhere please ?

Here is my repo : https://github.com/rbleuse/spring-data-cassandra-unit

Server not started

Unless the user component scans the package containing CassandraUnitApplicationListener, it isn't found by Spring and the server not started. Ideally, it should be picked by an autoconfiguration,.

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.