Questions tagged [dbsetup]
DbSetup is a free, open-source Java API that helps you setup your database data to execute DAO/Repository unit tests.
dbsetup
11
questions
-1
votes
1
answer
39
views
In my Spring setup with DbSetUp + H2 database, queries with LIKE are not working
As the title suggests, what I want to do is test a class with database access in a Spring Boot application.
In the target class, I am using Specification as follows:
TestSpecification specification = ...
2
votes
0
answers
210
views
Command 'db:setup' not recognized"
When I try the command, I get below output, also there is an error at the bottom saying Error: Command 'db:setup' not recognized:
/usr/local/rvm/gems/ruby-3.0.0/gems/bundler-1.15.3/lib/bundler/...
0
votes
1
answer
348
views
Configuration DbSetup with Kotlin and Spring Boot
I'm developing Kotlin application with
gradle
Java 11
Spring Boot 2.3.6.RELEASE
DbSetup-kotlin:2.1.0
testcontainers:postgresql 1.15.0
After following this guide DbSetup Kotlin I'm facing problem ...
1
vote
2
answers
329
views
Spring data doesn't increment after DBsetup
I have such question. I'm using DBsetup for spring boot tests and postgresql database. And I'm using DBsetup to set user, but when I'm trying to set another user by spring data I have the next ...
0
votes
1
answer
3k
views
@DataJpaTest autowire dataSource
I'm using dbsetup framework to set up my database. I'm trying to test repository level (I'm using Spring data) using annotation @DataJpaTest. To set up a database using "dbsetup" I need to autowire ...
15
votes
4
answers
14k
views
How to insert UUID into RAW(16) column
I have the RAW(16) PK column in Oracle, and trying to insert into it using JDBC:
PreparedStatement stmt = connection.prepareStatement("insert into COUNTRY (id, state, version, code, name, ...
0
votes
1
answer
220
views
DbSetup : multiple SQL Update
How do I add multiple update sql statements? In this example for those with ID 2,3,4,5
public static final Operation INSERT_LANGUAGE_DATA =
Operations.sequenceOf(Operations.insertInto("LANGUAGE")...
0
votes
0
answers
197
views
DBSetup : SQL support
I am trying to use DBSetup for my testing. I was able to make it run with simple Inserts:
public static final Operation INSERT_CURRENCY_DATA =
Insert.into("CURRENCY")
.columns("ID", "...
0
votes
1
answer
241
views
Rollback changes in test after manual interaction with the datasource?
I'm using dbsetup for my db tests. The problem is I can't manage to get data rolled back after each test using the aproach which have always worked which is annotating the test case (or method) with @...
2
votes
1
answer
579
views
DBSetup - How to do a select statement
I was looking in to DBUnit for sometime until a nice chap on here pointed me to some application he made named DBSetup that was more light weight and easy.
I must admit 1) I have found it useful so ...
0
votes
1
answer
686
views
DbSetup simple example, SQLException occurs
There's very little information about DbSetup so I couldn't find an answer to this question anywhere else.
I need to test Data Access Layer and decided to use DbSetup for it. I tried to use DbSetup ...